Professional Documents
Culture Documents
Abstract. Intruders computers, who are spread across the Internet have become a major threat in our world,
The researchers proposed a number of techniques such as (firewall, encryption) to prevent such penetration
and protect the infrastructure of computers, but with this, the intruders managed to penetrate the computers.
IDS has taken much of the attention of researchers, IDS monitors the resources computer and sends reports
on the activities of any anomaly or strange patterns. The aim of this paper is to explain the stages of the
evolution of the idea of IDS and its importance to researchers and research centres, security, military and to
examine the importance of intrusion detection systems and categories , classifications, and where can put IDS
to reduce the risk to the network.
1. Introduction
Security is an important issue for all the networks of companies and institutions at the present time and
all the intrusions are trying in ways that successful access to the data network of these companies and Web
services and despite the development of multiple ways to ensure that the infiltration of intrusion to the
infrastructure of the network via the Internet, through the use of firewalls, encryption, etc.
But IDS is a relatively new technology of the techniques for intrusion detection methods that have emerged
in recent years. Intrusion detection system’s main role in a network is to help computer systems to prepare
and deal with the network attacks.
The purpose of IDS is to help computer systems on how to deal with attacks, and that IDS is collecting
information from several different sources within the computer systems and networks and compares this
information with pre-existing patterns of discrimination as to whether there are attacks or weaknesses.
+
Corresponding author. Tel.: + 919158797897
E-mail address: asmaa_zaid218@yahoo.com
6
born. Since then, several polar events in IDS technology have advanced intrusion detection to its current
state. James Anderson's seminal paper, was written for a government organization, introduced the notion that
audit trails contained vital information that could be valuable in tracking misuse and understanding of user
behaviour. With the release of this paper, the concept of "detecting" misuse and specific user events emerged.
His insight into audit data and its importance led to tremendous improvements in the auditing subsystems of
virtually every operating system. Anderson's hypothesize also provided the foundation for future intrusion
detection sstem design and development. His work was the start of host-based intrusion detection and IDS in
general.
In 1983, SRI International, and Dr. Dorothy Denning, began working on a government project that
launched a new effort into intrusion detection system development. Their goal was to analyze audit trails
from government mainframe computers and create profiles of users based upon their activities. One year
later, Dr. Denning helped to develop the first model for intrusion detection, the Intrusion Detection Expert
System (IDES), which provided the foundation for the IDS technology development that was soon to follow.
In 1984, SRI also developed a means of tracking and analyzing audit data containing authentication
information of users on ARPANET, the original Internet. Soon after, SRI completed a Navy SPAWAR
contract with the realization of the first functional intrusion detection system, IDES. Using her research and
development work at SRI, Dr. Denning published the decisive work, An Intrusion Detection Model, which
revealed the necessary information for commercial intrusion detection system development. Her paper is the
basis for most of the work in IDS that followed. The subsequent iteration of this tool was called the
Distributed Intrusion Detection System (DIDS). DIDS augmented the existing solution by tracking client
machines as well as the servers it originally monitored. Finally in 1989, the developers from the Haystack
project formed the commercial company, Haystack Labs, and released the last generation of the technology,
Stalker. Crosby Marks says that "Stalker was a host-based, pattern matching system that included robust
search capabilities to manually and automatically query the audit data." The Haystack advances, coupled
with the work of SRI and Denning, greatly advanced the development of host-based intrusion detection
technologies.
Commercial development of intrusion detection technologies began in the early 1990s. Haystack Labs
was the first commercial vendor of IDS tools, with its Stalker line of host-based products. SAIC was also
developing a form of host-based intrusion detection, called Computer Misuse Detection System (CMDS).
Simultaneously, the Air Force's Crypto logic Support Canter developed the Automated Security
Measurement System (ASIM) to monitor network traffic on the US Air Force's network. ASIM made
considerable progress in overcoming scalability and portability issues that previously plagued NID products.
Additionally, ASIM was the first solution to incorporate both a hardware and software solution to network
intrusion detection. ASIM is still currently in use and managed by the Air Force's Computer Emergency
Response Team (AFCERT) at locations all over the world. As often happened, the development group on the
ASIM project formed a commercial company in 1994, the Wheel Group. Their product, Net Ranger, was the
first commercially viable network intrusion detection device. The intrusion detection market began to gain in
popularity and truly generate revenues around 1997. In that year, the security market leader, ISS, developed
a network intrusion detection system called Real Secure. A year later, Cisco recognized the importance of
network intrusion detection and purchased the Wheel Group, attaining a security solution they could provide
to their customers. Similarly, the first visible host-based intrusion detection company, Centrex Corporation,
emerged as a result of a merger of the development staff from Haystack Labs and the departure of the CMDS
team from SAIC. From there, the commercial IDS world expanded its market-base and a roller coaster ride
of start-up companies, mergers, and acquisitions ensued.
The above chart from US-CERT shows how the cyber incidents rose in current internet network
environment; this gives requirement of IDS deployment in network security model.
Network intrusion detection actually deals with information passing on the wire between hosts. Typically
referred to as "packet-sniffers," network intrusion detection devices intercept packets travelling in and out in
network along various communication mediums and protocols, usually TCP/IP. Once captured, the packets
are analyzed in a number of different ways. Some IDS devices will simply compare the packet to a signature
7
database consisting of known attacks and malicious packet "fingerprints", while others will look for
anomalous packet activity that might indicate malicious behaviour.
The IDS basically monitors network traffic for activity that falls within the banned activity in the
network. The IDS main job is gives alert to network admins for allow them to take corrective action,
blocking access to vulnerable ports, denying access to specific IP address or shutting down services used to
allow attacks. This is nothing but front line weapon in the network admins war against hackers. This
information is then compared with predefined blueprints of known attacks and vulnerabilities.
8
This type is placed on one device such as server or workstation, where the data is analyzed locally to the
machine and are collecting this data from different sources. HIDS can use both anomaly and misuse
detection system.
5. Conclusion
An intrusion detection system is a part of the defensive operations that complements the defences such as
firewalls, UTM etc. The intrusion detection system basically detects attack signs and then alerts. According
to the detection methodology, intrusion detection systems are typically categorized as misuse detection and
anomaly detection systems. The deployment perspective, they are be classified in network based or host
based IDS. In current intrusion detection systems where information is collected from both network and host
resources. In terms of performance, an intrusion detection system becomes more accurate as it detects more
attacks and raises fewer false positive alarms.
6. References
[1] Computer Security Threat Monitoring and Surveillance. Fort Washington, J. P. Anderson, Pa. 1980.
[2] D. E. Denning. An intrusion-detection model. IEEE Transactions on Software Engineering. Feb. 1987, 13(2):222-
232,.
[3] L. E. Heberlein. A Network Security Monitor. Proceedings of the IEEE Computer Society Symposium. Research in
Security and Privacy. May 1990, pp. 296-303.
[4] The Evolution of Intrusion Detection Systems. Digital Integrity, P. I. Tetrad, LLC on November 16, 2001.
[5] Intrusion Detection: Host-Based and Network-Based Intrusion Detection Systems. H. Kozushko. on September 11,
2003.
9
Reg. No.:
Name :
Justify the reasons with appropriate parameters exist behind the comparison for given table 3-5.
1
10
2 Use a tabulation to relate the attack pattern components with your own example.
10
3 Demonstrate a security assurance case example in order to assert and specify the desired security
10
properties with neat schematic diagram.
4 Apply your own creative inputs and outputs for the respective techniques and participants
10
involved in the nine steps of the SQUARE process model.
5 Demonstrate a source code in C language with sample I/O, for insecure coding which can be
exploited by attackers such as ‘Buffer overflow Attacks’. 10
Page 1 of 1
Cyber Defence in Depth
What does cyber defense in depth
• Cyber defence in depth covers five important elements: detection,
protection, management, response and recovery.
Detection
• An edge device is any piece of hardware that controls data flow at the
boundary between two networks.
• Edge devices are pieces of equipment that serve to transmit data
between the local network and the cloud
• They are able to translate between the protocols, or languages, used
by local devices into the protocols used by the cloud where the data
will be further processed.
• Edge devices fulfill a variety of roles, depending on what type of
device they are, but they essentially serve as network entry -- or exit -
- points.
• Local devices use protocols like Bluetooth, wi-fi, Zigbee, and NFC
while the cloud uses protocols like AMQP, MQTT, CoAP, and HTTP.
• Cloud computing and the internet of things (IoT) have elevated the
role of edge devices, ushering in the need for more intelligence,
computing power and advanced services at the network edge. This
concept, where processes are decentralized and occur in a more
logical physical location, is referred to as edge computing.
•.
function
• transmission, routing, processing, monitoring, filtering, translation and
storage of data passing between networks.
• Edge devices are used by enterprises and service providers.
Types of edge devices
• edge router:
• Usually deployed to connect a campus network to the internet or a WAN, edge routers chiefly
function as gateways between network
• An edge router is a specialized router located at a network boundary that enables an internal
network to connect to external networks. They are primarily used at two demarcation points:
the wide area network (WAN) and the internet.
• The edge router typically sends or receives data directly to or from other organizations'
networks, using either static or dynamic routing capabilities. Handoffs between the campus
network and the internet or WAN edge primarily use Ethernet -- typically, Gigabit Ethernet
(GbE) over copper or over single or multimode fiber optics.
• Edge routers are often hardware devices, but their functions can also be performed by
software running on a standard x86 server.
Typical Corporate Deployment
Types of edge routers
Karen Scarfone
Peter Mell
NIST Special Publication 800-94 Guide to Intrusion Detection and
Prevention Systems (IDPS)
Karen Scarfone
Peter Mell
C O M P U T E R S E C U R I T Y
February 2007
The Information Technology Laboratory (ITL) at the National Institute of Standards and Technology
(NIST) promotes the U.S. economy and public welfare by providing technical leadership for the nation’s
measurement and standards infrastructure. ITL develops tests, test methods, reference data, proof of
concept implementations, and technical analysis to advance the development and productive use of
information technology. ITL’s responsibilities include the development of technical, physical,
administrative, and management standards and guidelines for the cost-effective security and privacy of
sensitive unclassified information in Federal computer systems. This Special Publication 800-series
reports on ITL’s research, guidance, and outreach efforts in computer security and its collaborative
activities with industry, government, and academic organizations.
iii
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Acknowledgements
The authors, Karen Scarfone and Peter Mell of the National Institute of Standards and Technology
(NIST), wish to thank their colleagues who reviewed drafts of this document and contributed to its
technical content. The authors would like to acknowledge John Connor, Tim Grance, Anoop Singhal, and
Murugiah Souppaya of NIST; Michael Gerdes, Ralph Martins, Angela Orebaugh, and Mike Zeberlein of
Booz Allen Hamilton; and Steve Sharma of Project Performance Corporation for their keen and insightful
assistance throughout the development of the document. The authors particularly want to thank Rebecca
Bace of KSR for her careful review of the publication and for her work on the predecessor publication,
NIST Special Publication 800-31, Intrusion Detection Systems. The authors would also like to express
their thanks to security experts Andrew Balinsky (Cisco Systems), Anton Chuvakin (LogLogic), Jay
Ennis (Network Chemistry), John Jerrim (Lancope), and Kerry Long (Center for Intrusion Monitoring
and Protection, Army Research Laboratory), as well as representatives from the Department of State and
Gartner, for their particularly valuable comments and suggestions. Additional acknowledgements will be
added to the final version of the publication.
Trademarks
All product names are registered trademarks or trademarks of their respective companies.
iv
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Table of Contents
Executive Summary..............................................................................................................ES-1
1. Introduction ......................................................................................................................1-1
1.1 Authority...................................................................................................................1-1
1.2 Purpose and Scope .................................................................................................1-1
1.3 Audience ..................................................................................................................1-1
1.4 Document Structure .................................................................................................1-1
2. Intrusion Detection and Prevention Principles .............................................................2-1
2.1 Uses of IDPS Technologies .....................................................................................2-1
2.2 Key Functions of IDPS Technologies ......................................................................2-2
2.3 Common Detection Methodologies..........................................................................2-3
2.3.1 Signature-Based Detection...........................................................................2-4
2.3.2 Anomaly-Based Detection ............................................................................2-4
2.3.3 Stateful Protocol Analysis.............................................................................2-5
2.4 Types of IDPS Technologies ...................................................................................2-6
2.5 Summary..................................................................................................................2-7
3. IDPS Technologies...........................................................................................................3-1
3.1 Components and Architecture .................................................................................3-1
3.1.1 Typical Components.....................................................................................3-1
3.1.2 Network Architectures ..................................................................................3-1
3.2 Security Capabilities ................................................................................................3-2
3.2.1 Information Gathering Capabilities ...............................................................3-2
3.2.2 Logging Capabilities .....................................................................................3-2
3.2.3 Detection Capabilities...................................................................................3-3
3.2.4 Prevention Capabilities.................................................................................3-4
3.3 Management ............................................................................................................3-4
3.3.1 Implementation .............................................................................................3-4
3.3.2 Operation and Maintenance .........................................................................3-6
3.3.3 Building and Maintaining Skills .....................................................................3-9
3.4 Summary................................................................................................................3-10
4. Network-Based IDPS........................................................................................................4-1
4.1 Networking Overview ...............................................................................................4-1
4.1.1 Application Layer ..........................................................................................4-1
4.1.2 Transport Layer ............................................................................................4-2
4.1.3 Network Layer ..............................................................................................4-2
4.1.4 Hardware Layer ............................................................................................4-3
4.2 Components and Architecture .................................................................................4-3
4.2.1 Typical Components.....................................................................................4-3
4.2.2 Network Architectures and Sensor Locations...............................................4-4
4.3 Security Capabilities ................................................................................................4-7
4.3.1 Information Gathering Capabilities ...............................................................4-7
4.3.2 Logging Capabilities .....................................................................................4-8
4.3.3 Detection Capabilities...................................................................................4-9
4.3.4 Prevention Capabilities...............................................................................4-12
4.4 Management ..........................................................................................................4-13
v
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
vi
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
7.3.2 Operation....................................................................................................7-10
7.4 Summary................................................................................................................7-10
8. Using and Integrating Multiple IDPS Technologies ......................................................8-1
8.1 The Need for Multiple IDPS Technologies...............................................................8-1
8.2 Integrating Different IDPS Technologies..................................................................8-2
8.2.1 Direct IDPS Integration.................................................................................8-2
8.2.2 Indirect IDPS Integration ..............................................................................8-3
8.3 Other Technologies with IDPS Capabilities .............................................................8-4
8.3.1 Network Forensic Analysis Tool (NFAT) Software .......................................8-4
8.3.2 Anti-Malware Technologies ..........................................................................8-5
8.3.3 Firewalls and Routers...................................................................................8-6
8.3.4 Honeypots ....................................................................................................8-7
8.4 Summary..................................................................................................................8-7
9. IDPS Product Selection ...................................................................................................9-1
9.1 General Requirements.............................................................................................9-1
9.1.1 System and Network Environments .............................................................9-1
9.1.2 Goals and Objectives ...................................................................................9-2
9.1.3 Security and Other IT Policies ......................................................................9-2
9.1.4 External Requirements .................................................................................9-3
9.1.5 Resource Constraints ...................................................................................9-3
9.2 Security Capability Requirements ............................................................................9-4
9.2.1 Information Gathering Capabilities ...............................................................9-4
9.2.2 Logging Capabilities .....................................................................................9-4
9.2.3 Detection Capabilities...................................................................................9-5
9.2.4 Prevention Capabilities.................................................................................9-6
9.3 Performance Requirements .....................................................................................9-6
9.4 Management Requirements.....................................................................................9-8
9.4.1 Design and Implementation..........................................................................9-8
9.4.2 Operation and Maintenance .......................................................................9-10
9.4.3 Training, Documentation, and Technical Support ......................................9-12
9.5 Life Cycle Costs .....................................................................................................9-12
9.6 Evaluating Products ...............................................................................................9-13
9.6.1 IDPS Testing Challenges ...........................................................................9-14
9.6.2 Recommendations for Performing IDPS Evaluations .................................9-15
9.7 Summary................................................................................................................9-18
List of Appendices
vii
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
List of Figures
List of Tables
viii
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Executive Summary
Intrusion detection is the process of monitoring the events occurring in a computer system or network and
analyzing them for signs of possible incidents, which are violations or imminent threats of violation of
computer security policies, acceptable use policies, or standard security practices. Intrusion prevention is
the process of performing intrusion detection and attempting to stop detected possible incidents. Intrusion
detection and prevention systems (IDPS) 1 are primarily focused on identifying possible incidents, logging
information about them, attempting to stop them, and reporting them to security administrators. In
addition, organizations use IDPSs for other purposes, such as identifying problems with security policies,
documenting existing threats, and deterring individuals from violating security policies. IDPSs have
become a necessary addition to the security infrastructure of nearly every organization.
IDPSs typically record information related to observed events, notify security administrators of important
observed events, and produce reports. Many IDPSs can also respond to a detected threat by attempting to
prevent it from succeeding. They use several response techniques, which involve the IDPS stopping the
attack itself, changing the security environment (e.g., reconfiguring a firewall), or changing the attack’s
content.
This publication describes the characteristics of IDPS technologies and provides recommendations for
designing, implementing, configuring, securing, monitoring, and maintaining them. The types of IDPS
technologies are differentiated primarily by the types of events that they monitor and the ways in which
they are deployed. This publication discusses the following four types of IDPS technologies:
Network-Based, which monitors network traffic for particular network segments or devices and
analyzes the network and application protocol activity to identify suspicious activity
Wireless, which monitors wireless network traffic and analyzes it to identify suspicious activity
involving the wireless networking protocols themselves
Network Behavior Analysis (NBA), which examines network traffic to identify threats that generate
unusual traffic flows, such as distributed denial of service (DDoS) attacks, certain forms of malware,
and policy violations (e.g., a client system providing network services to other systems)
Host-Based, which monitors the characteristics of a single host and the events occurring within that
host for suspicious activity.
Implementing the following recommendations should facilitate more efficient and effective intrusion
detection and prevention system use for Federal departments and agencies.
Organizations should ensure that all IDPS components are secured appropriately.
Securing IDPS components is very important because IDPSs are often targeted by attackers who want to
prevent the IDPSs from detecting attacks or want to gain access to sensitive information in the IDPSs,
such as host configurations and known vulnerabilities. IDPSs are composed of several types of
components, including sensors or agents, management servers, database servers, user and administrator
consoles, and management networks. All components’ operating systems and applications should be kept
fully up-to-date, and all software-based IDPS components should be hardened against threats. Specific
1
An intrusion detection system (IDS) is software that automates the intrusion detection process. An intrusion prevention system
(IPS) is software that has all the capabilities of an intrusion detection system and can also attempt to stop possible incidents.
IDS and IPS technologies offer many of the same capabilities, and administrators can usually disable prevention features in
IPS products, causing them to function as IDSs. Accordingly, for brevity the term intrusion detection and prevention system
(IDPS) is used throughout the rest of this guide to refer to both IDS and IPS technologies.
ES-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
protective actions of particular importance include creating separate accounts for each IDPS user and
administrator, restricting network access to IDPS components, and ensuring that IDPS management
communications are protected appropriately, such as encrypting them or transmitting them over a
physically or logically separate network. Administrators should maintain the security of the IDPS
components on an ongoing basis, including verifying that the components are functioning as desired,
monitoring the components for security issues, performing regular vulnerability assessments, responding
appropriately to vulnerabilities in the IDPS components, and testing and deploying IDPS updates.
Administrators should also back up configuration settings periodically and before applying updates to
ensure that existing settings are not inadvertently lost.
Organizations should consider using multiple types of IDPS technologies to achieve more
comprehensive and accurate detection and prevention of malicious activity.
The four primary types of IDPS technologies—network-based, wireless, NBA, and host-based—each
offer fundamentally different information gathering, logging, detection, and prevention capabilities. Each
technology type offers benefits over the others, such as detecting some events that the others cannot and
detecting some events with significantly greater accuracy than the other technologies. In many
environments, a robust IDPS solution cannot be achieved without using multiple types of IDPS
technologies. For most environments, a combination of network-based and host-based IDPS technologies
is needed for an effective IDPS solution. Wireless IDPS technologies may also be needed if the
organization determines that its wireless networks need additional monitoring or if the organization wants
to ensure that rogue wireless networks are not in use in the organization’s facilities. NBA technologies
can also be deployed if organizations desire additional detection capabilities for denial of service attacks,
worms, and other threats that NBAs are particularly well-suited to detecting. Organizations should
consider the different capabilities of each technology type along with other cost-benefit information when
selecting IDPS technologies.
Organizations planning to use multiple types of IDPS technologies or multiple products of the same
IDPS technology type should consider whether or not the IDPSs should be integrated.
Direct IDPS integration most often occurs when an organization uses multiple IDPS products from a
single vendor, by having a single console that can be used to manage and monitor the multiple products.
Some products can also mutually share data, which can speed the analysis process and help users to better
prioritize threats. A more limited form of direct IDPS integration is having one IDPS product provide
data for another IDPS product (but no data sharing in the opposite direction). Indirect IDPS integration is
usually performed with security information and event management (SIEM) software, which is designed
to import information from various security-related logs and correlate events among them. SIEM
software complements IDPS technologies in several ways, including correlating events logged by
different technologies, displaying data from many event sources, and providing supporting information
from other sources to help users verify the accuracy of IDPS alerts.
Before evaluating IDPS products, organizations should define the requirements that the products
should meet.
Evaluators need to understand the characteristics of the organization’s system and network environments,
so that a compatible IDPS can be selected that can monitor the events of interest on the systems and/or
networks. Evaluators should articulate the goals and objectives they wish to attain by using an IDPS,
such as stopping common attacks, identifying misconfigured wireless network devices, and detecting
misuse of the organization’s system and network resources. Evaluators should also review their existing
security policies, which serve as a specification for many of the features that the IDPS products need to
provide. In addition, evaluators should understand whether or not the organization is subject to oversight
ES-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
or review by another organization. If so, they should determine if that oversight authority requires IDPSs
or other specific system security resources. Resource constraints should also be taken into consideration
by evaluators. Evaluators also need to define specialized sets of requirements for the following:
Common product data sources include test lab or real-world product testing, vendor-provided
information, third-party product reviews, and previous IDPS experience from individuals within the
organization and trusted individuals at other organizations. When using data from other parties,
organizations should consider the fidelity of the data because it is often presented without an explanation
of how it was generated. There are several major challenges in performing in-depth hands-on IDPS
testing, such as the considerable resources needed and the lack of a standard test methodology and test
suites, which often make it infeasible. However, limited IDPS testing is helpful for evaluating security
requirements, performance, and operation and maintenance capabilities.
ES-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
ES-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
1. Introduction
1.1 Authority
The National Institute of Standards and Technology (NIST) developed this document in furtherance of its
statutory responsibilities under the Federal Information Security Management Act (FISMA) of 2002,
Public Law 107-347.
NIST is responsible for developing standards and guidelines, including minimum requirements, for
providing adequate information security for all agency operations and assets; but such standards and
guidelines shall not apply to national security systems. This guideline is consistent with the requirements
of the Office of Management and Budget (OMB) Circular A-130, Section 8b(3), “Securing Agency
Information Systems,” as analyzed in A-130, Appendix IV: Analysis of Key Sections. Supplemental
information is provided in A-130, Appendix III.
This guideline has been prepared for use by Federal agencies. It may be used by nongovernmental
organizations on a voluntary basis and is not subject to copyright, though attribution is desired.
Nothing in this document should be taken to contradict standards and guidelines made mandatory and
binding on Federal agencies by the Secretary of Commerce under statutory authority, nor should these
guidelines be interpreted as altering or superseding the existing authorities of the Secretary of Commerce,
Director of the OMB, or any other Federal official.
This publication seeks to assist organizations in understanding intrusion detection system (IDS) and
intrusion prevention system (IPS) technologies and in designing, implementing, configuring, securing,
monitoring, and maintaining intrusion detection and prevention systems (IDPS). It provides practical,
real-world guidance for each of four classes of IDPS products: network-based, wireless, network behavior
analysis, and host-based. The publication also provides an overview of complementary technologies that
can detect intrusions, such as security information and event management software and network forensic
analysis tools. It focuses on enterprise IDPS solutions, but most of the information in the publication is
also applicable to standalone and small-scale IDPS deployments. This publication replaces NIST Special
Publication 800-31, Intrusion Detection Systems.
1.3 Audience
This document has been created for computer security staff and program managers, computer security
incident response teams (CSIRT), and system and network administrators who are responsible for
managing or monitoring IDPS technologies. This document does not assume that the reader has previous
experience with any IDPS technologies, but it does assume that the reader has experience with
information security.
The remainder of this document is organized into the following nine major sections:
Section 2 provides an introduction to the basic concepts of intrusion detection and prevention.
Section 3 gives an overview of IDPS technologies, including typical components, general detection
methodologies, and implementation and operation guidance.
1-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
– Section 4: Network-based
– Section 5: Wireless
– Section 7: Host-based
Section 8 discusses other technologies with IDPS capabilities.
Section 9 provides recommendations for using and integrating multiple IDPS technologies within an
enterprise.
Section 10 gives guidance on IDPS product selection.
The document also contains appendices with supporting material. Appendices A and B contain a glossary
and acronym list, respectively. Appendix C lists print resources and online tools and resources that may
be useful references for gaining a better understanding of IDPSs. Appendix D contains an index for the
publication.
1-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Intrusion detection is the process of monitoring the events occurring in a computer system or network and
analyzing them for signs of possible incidents, which are violations or imminent threats of violation of
computer security policies, acceptable use policies, or standard security practices. Incidents have many
causes, such as malware (e.g., worms, spyware), attackers gaining unauthorized access to systems from
the Internet, and authorized users of systems who misuse their privileges or attempt to gain additional
privileges for which they are not authorized. Although many incidents are malicious in nature, many
others are not; for example, a person might mistype the address of a computer and accidentally attempt to
connect to a different system without authorization.
An intrusion detection system (IDS) is software that automates the intrusion detection process. An
intrusion prevention system (IPS) is software that has all the capabilities of an intrusion detection system
and can also attempt to stop possible incidents. This section provides an overview of IDS and IPS
technologies as a foundation for the rest of the publication. It first explains how IDS and IPS
technologies can be used. Next, it describes the key functions that IDS and IPS technologies perform and
the detection methodologies that they use. Finally, it provides an overview of the major classes of IDS
and IPS technologies.
IDS and IPS technologies offer many of the same capabilities, and administrators can usually disable
prevention features in IPS products, causing them to function as IDSs. Accordingly, for brevity the term
intrusion detection and prevention systems (IDPS) is used throughout the rest of this guide to refer to both
IDS and IPS technologies. 2 Any exceptions are specifically noted.
IDPSs are primarily focused on identifying possible incidents. For example, an IDPS could detect when
an attacker has successfully compromised a system by exploiting a vulnerability in the system. The IDPS
could then report the incident to security administrators, who could quickly initiate incident response
actions to minimize the damage caused by the incident. 3 The IDPS could also log information that could
be used by the incident handlers. 4 Many IDPSs can also be configured to recognize violations of security
policies. For example, some IDPSs can be configured with firewall ruleset-like settings, allowing them to
identify network traffic that violates the organization’s security or acceptable use policies. Also, some
IDPSs can monitor file transfers and identify ones that might be suspicious, such as copying a large
database onto a user’s laptop.
Many IDPSs can also identify reconnaissance activity, which may indicate that an attack is imminent.
For example, some attack tools and forms of malware, particularly worms, perform reconnaissance
activities such as host and port scans to identify targets for subsequent attacks. An IDPS might be able to
block reconnaissance and notify security administrators, who can take actions if needed to alter other
security controls to prevent related incidents. Because reconnaissance activity is so frequent on the
Internet, reconnaissance detection is often performed primarily on protected internal networks.
2
This term is used for the purposes of this publication. It has not been widely used in the security community, and the reason
for using it in this publication is strictly brevity, not to replace the well-established “IDS” and “IPS” terms.
3
If the IDPS had successfully prevented the attack, security administrators still might want to be notified of the attack. This
is particularly important if the target has a known vulnerability that the attack could have exploited. Attackers could
potentially use a different attack for the same vulnerability that the IDPS might not recognize.
4
A detailed discussion of incident response is outside the scope of this guide. For guidance on establishing an effective
incident response capability, see NIST Special Publication (SP) 800-61, Computer Security Incident Handling Guide, which
is available at http://csrc.nist.gov/publications/nistpubs/.
2-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
In addition to identifying incidents and supporting incident response efforts, organizations have found
other uses for IDPSs, including the following:
Identifying security policy problems. An IDPS can provide some degree of quality control for
security policy implementation, such as duplicating firewall rulesets and alerting when it sees
network traffic that should have been blocked by the firewall but was not because of a firewall
configuration error.
Documenting the existing threat to an organization. IDPSs log information about the threats that
they detect. Understanding the frequency and characteristics of attacks against an organization’s
computing resources is helpful in identifying the appropriate security measures for protecting the
resources. The information can also be used to educate management about the threats that the
organization faces.
Deterring individuals from violating security policies. If individuals are aware that their actions
are being monitored by IDPS technologies for security policy violations, they may be less likely to
commit such violations because of the risk of detection.
Because of the increasing dependence on information systems and the prevalence and potential impact of
intrusions against those systems, IDPSs have become a necessary addition to the security infrastructure of
nearly every organization.
There are many types of IDPS technologies, which are differentiated primarily by the types of events that
they can recognize and the methodologies that they use to identify incidents. In addition to monitoring
and analyzing events to identify undesirable activity, all types of IDPS technologies typically perform the
following functions:
Recording information related to observed events. Information is usually recorded locally, and
might also be sent to separate systems such as centralized logging servers, security information and
event management (SIEM) solutions, and enterprise management systems.
Notifying security administrators of important observed events. This notification, known as an
alert, occurs through any of several methods, including the following: e-mails, pages, messages on
the IDPS user interface, Simple Network Management Protocol (SNMP) traps, syslog messages, and
user-defined programs and scripts. A notification message typically includes only basic information
regarding an event; administrators need to access the IDPS for additional information.
Producing reports. Reports summarize the monitored events or provide details on particular events
of interest.
Some IDPSs are also able to change their security profile when a new threat is detected. For example, an
IDPS might be able to collect more detailed information for a particular session after malicious activity is
detected within that session. An IDPS might also alter the settings for when certain alerts are triggered or
what priority should be assigned to subsequent alerts after a particular threat is detected.
IPS technologies are differentiated from IDS technologies by one characteristic: IPS technologies can
respond to a detected threat by attempting to prevent it from succeeding. They use several response
techniques, which can be divided into the following groups:
The IPS stops the attack itself. Examples of how this could be done are as follows:
2-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
– Terminate the network connection or user session that is being used for the attack
– Block access to the target (or possibly other likely targets) from the offending user account, IP
address, or other attacker attribute
– Block all access to the targeted host, service, application, or other resource.
The IPS changes the security environment. The IPS could change the configuration of other
security controls to disrupt an attack. Common examples are reconfiguring a network device (e.g.,
firewall, router, switch) to block access from the attacker or to the target, and altering a host-based
firewall on a target to block incoming attacks. Some IPSs can even cause patches to be applied to a
host if the IPS detects that the host has vulnerabilities.
The IPS changes the attack’s content. Some IPS technologies can remove or replace malicious
portions of an attack to make it benign. A simple example is an IPS removing an infected file
attachment from an e-mail and then permitting the cleaned email to reach its recipient. A more
complex example is an IPS that acts as a proxy and normalizes incoming requests, which means that
the proxy repackages the payloads of the requests, discarding header information. This might cause
certain attacks to be discarded as part of the normalization process.
Another common attribute of IDPS technologies is that they cannot provide completely accurate
detection. When an IDPS incorrectly identifies benign activity as being malicious, a false positive has
occurred. When an IDPS fails to identify malicious activity, a false negative has occurred. It is not
possible to eliminate all false positives and negatives; in most cases, reducing the occurrences of one
increases the occurrences of the other. Many organizations choose to decrease false negatives at the cost
of increasing false positives, which means that more malicious events are detected but more analysis
resources are needed to differentiate false positives from true malicious events. Altering the
configuration of an IDPS to improve its detection accuracy is known as tuning.
Most IDPS technologies also offer features that compensate for the use of common evasion techniques.
Evasion is modifying the format or timing of malicious activity so that its appearance changes but its
effect is the same. Attackers use evasion techniques to try to prevent IDPS technologies from detecting
their attacks. For example, an attacker could encode text characters in a particular way, knowing that the
target understands the encoding and hoping that any monitoring IDPSs do not. Most IDPS technologies
can overcome common evasion techniques by duplicating special processing performed by the targets. If
the IDPS can “see” the activity in the same way that the target would, then evasion techniques will
generally be unsuccessful at hiding attacks.
IDPS technologies use many methodologies to detect incidents. Sections 2.3.1 through 2.3.3 discuss the
primary classes of detection methodologies: signature-based, anomaly-based, and stateful protocol
analysis, respectively. Most IDPS technologies use multiple detection methodologies, either separately or
integrated, to provide more broad and accurate detection.
2-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
A signature is a pattern that corresponds to a known threat. Signature-based detection is the process of
comparing signatures against observed events to identify possible incidents. 5 Examples of signatures are
as follows:
A telnet attempt with a username of “root”, which is a violation of an organization’s security policy
An e-mail with a subject of “Free pictures!” and an attachment filename of “freepics.exe”, which are
characteristics of a known form of malware
An operating system log entry with a status code value of 645, which indicates that the host’s auditing
has been disabled.
Signature-based detection is very effective at detecting known threats but largely ineffective at detecting
previously unknown threats, threats disguised by the use of evasion techniques, and many variants of
known threats. For example, if an attacker modified the malware in the previous example to use a
filename of “freepics2.exe”, a signature looking for “freepics.exe” would not match it.
Signature-based detection is the simplest detection method because it just compares the current unit of
activity, such as a packet or a log entry, to a list of signatures using string comparison operations.
Signature-based detection technologies have little understanding of many network or application
protocols and cannot track and understand the state of complex communications. For example, they
cannot pair a request with the corresponding response, such as knowing that a request to a Web server for
a particular page generated a response status code of 403, meaning that the server refused to fill the
request. They also lack the ability to remember previous requests when processing the current request.
This limitation prevents signature-based detection methods from detecting attacks that comprise multiple
events if none of the events contains a clear indication of an attack.
Anomaly-based detection is the process of comparing definitions of what activity is considered normal
against observed events to identify significant deviations. An IDPS using anomaly-based detection has
profiles that represent the normal behavior of such things as users, hosts, network connections, or
applications. The profiles are developed by monitoring the characteristics of typical activity over a period
of time. For example, a profile for a network might show that Web activity comprises an average of 13%
of network bandwidth at the Internet border during typical workday hours. The IDPS then uses statistical
methods to compare the characteristics of current activity to thresholds related to the profile, such as
detecting when Web activity comprises significantly more bandwidth than expected and alerting an
administrator of the anomaly. Profiles can be developed for many behavioral attributes, such as the
number of e-mails sent by a user, the number of failed login attempts for a host, and the level of processor
usage for a host in a given period of time.
The major benefit of anomaly-based detection methods is that they can be very effective at detecting
previously unknown threats. For example, suppose that a computer becomes infected with a new type of
malware. The malware could consume the computer’s processing resources, send large numbers of e-
5
Signature-based detection is sometimes referred to as misuse detection, but this publication does not use that term because it
implies that misuse is only detected using signatures, which is not true. Also, signature-based detection is considered by
some parties to include stateful protocol analysis, as described in Section 2.3.3. For the purposes of this publication,
signature-based detection is defined so as not to include stateful protocol analysis, but other publications may have different
definitions.
2-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
mails, initiate large numbers of network connections, and perform other behavior that would be
significantly different from the established profiles for the computer.
An initial profile is generated over a period of time (typically days, sometimes weeks) sometimes called a
training period. Profiles for anomaly-based detection can either be static or dynamic. Once generated, a
static profile is unchanged unless the IDPS is specifically directed to generate a new profile. A dynamic
profile is adjusted constantly as additional events are observed. Because systems and networks change
over time, the corresponding measures of normal behavior also change; a static profile will eventually
become inaccurate, so it needs to be regenerated periodically. Dynamic profiles do not have this problem,
but they are susceptible to evasion attempts from attackers. For example, an attacker can perform small
amounts of malicious activity occasionally, then slowly increase the frequency and quantity of activity. If
the rate of change is sufficiently slow, the IDPS might think the malicious activity is normal behavior and
include it in its profile. Malicious activity might also be observed by an IDPS while it builds its initial
profiles.
Inadvertently including malicious activity as part of a profile is a common problem with anomaly-based
IDPS products. (In some cases, administrators can modify the profile to exclude activity in the profile
that is known to be malicious.) Another problem with building profiles is that it can be very challenging
in some cases to make them accurate, because computing activity can be so complex. For example, if a
particular maintenance activity that performs large file transfers occurs only once a month, it might not be
observed during the training period; when the maintenance occurs, it is likely to be considered a
significant deviation from the profile and trigger an alert. Anomaly-based IDPS products often produce
many false positives because of benign activity that deviates significantly from profiles, especially in
more diverse or dynamic environments. Another noteworthy problem with the use of anomaly-based
detection techniques is that it is often difficult for analysts to determine why a particular alert was
generated and to validate that an alert is accurate and not a false positive, because of the complexity of
events and number of events that may have caused the alert to be generated.
Stateful protocol analysis is the process of comparing predetermined profiles of generally accepted
definitions of benign protocol activity for each protocol state against observed events to identify
deviations. 6 Unlike anomaly-based detection, which uses host or network-specific profiles, stateful
protocol analysis relies on vendor-developed universal profiles that specify how particular protocols
should and should not be used. The “stateful” in stateful protocol analysis means that the IDPS is capable
of understanding and tracking the state of network, transport, and application protocols that have a notion
of state. For example, when a user starts a File Transfer Protocol (FTP) session, the session is initially in
the unauthenticated state. Unauthenticated users should only perform a few commands in this state, such
as viewing help information or providing usernames and passwords. An important part of understanding
state is pairing requests with responses, so when an FTP authentication attempt occurs, the IDPS can
determine if it was successful by finding the status code in the corresponding response. Once the user has
authenticated successfully, the session is in the authenticated state, and users are expected to perform any
of several dozen commands. Performing most of these commands while in the unauthenticated state
would be considered suspicious, but in the authenticated state performing most of them is considered
benign.
6
Some vendors use the term “deep packet inspection” to refer to performing some type of stateful protocol analysis, often
combined with a firewall capability that can block communications determined to be malicious. This publication uses the
term “stateful protocol analysis” because it is appropriate for analyzing both network-based and host-based activity, whereas
“deep packet inspection” is an appropriate term for network-based activity only. Also, historically there has not been
consensus in the security community as to the meaning of “deep packet inspection”.
2-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Stateful protocol analysis can identify unexpected sequences of commands, such as issuing the same
command repeatedly or issuing a command without first issuing a command upon which it is dependent.
Another state tracking feature of stateful protocol analysis is that for protocols that perform
authentication, the IDPS can keep track of the authenticator used for each session, and record the
authenticator used for suspicious activity. This is helpful when investigating an incident. Some IDPSs
can also use the authenticator information to define acceptable activity differently for multiple classes of
users or specific users.
The “protocol analysis” performed by stateful protocol analysis methods usually includes reasonableness
checks for individual commands, such as minimum and maximum lengths for arguments. If a command
typically has a username argument, and usernames have a maximum length of 20 characters, then an
argument with a length of 1000 characters is suspicious. If the large argument contains binary data, then
it is even more suspicious.
Stateful protocol analysis methods use protocol models, which are typically based primarily on protocol
standards from software vendors and standards bodies (e.g., Internet Engineering Task Force [IETF]
Request for Comments [RFC]). The protocol models also typically take into account variances in each
protocol’s implementation. Many standards are not exhaustively complete in explaining the details of the
protocol, which causes variations among implementations. Also, many vendors either violate standards
or add proprietary features, some of which may replace features from the standards. For proprietary
protocols, complete details about the protocols are often not available, making it difficult for IDPS
technologies to perform comprehensive, accurate analysis. As protocols are revised and vendors alter
their protocol implementations, IDPS protocol models need to be updated to reflect those changes.
The primary drawback to stateful protocol analysis methods is that they are very resource-intensive
because of the complexity of the analysis and the overhead involved in performing state tracking for
many simultaneous sessions. Another serious problem is that stateful protocol analysis methods cannot
detect attacks that do not violate the characteristics of generally acceptable protocol behavior, such as
performing many benign actions in a short period of time to cause a denial of service. Yet another
problem is that the protocol model used by an IDPS might conflict with the way the protocol is
implemented in particular versions of specific applications and operating systems, or how different client
and server implementations of the protocol interact.
There are many types of IDPS technologies. For the purposes of this document, they are divided into the
following four groups based on the type of events that they monitor and the ways in which they are
deployed:
Network-Based, which monitors network traffic for particular network segments or devices and
analyzes the network and application protocol activity to identify suspicious activity. It can identify
many different types of events of interest. It is most commonly deployed at a boundary between
networks, such as in proximity to border firewalls or routers, virtual private network (VPN) servers,
remote access servers, and wireless networks. Section 4 contains extensive information on network-
based IDPS technologies.
Wireless, which monitors wireless network traffic and analyzes its wireless networking protocols to
identify suspicious activity involving the protocols themselves. It cannot identify suspicious activity
in the application or higher-layer network protocols (e.g., TCP, UDP) that the wireless network traffic
is transferring. It is most commonly deployed within range of an organization’s wireless network to
2-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
monitor it, but can also be deployed to locations where unauthorized wireless networking could be
occurring. More information on wireless IDPSs is presented in Section 5.
Network Behavior Analysis (NBA), which examines network traffic to identify threats that generate
unusual traffic flows, such as distributed denial of service (DDoS) attacks, certain forms of malware
(e.g., worms, backdoors), and policy violations (e.g., a client system providing network services to
other systems). NBA systems are most often deployed to monitor flows on an organization’s internal
networks, and are also sometimes deployed where they can monitor flows between an organization’s
networks and external networks (e.g., the Internet, business partners’ networks). NBA products are
discussed in more detail in Section 6.
Host-Based, which monitors the characteristics of a single host and the events occurring within that
host for suspicious activity. Examples of the types of characteristics a host-based IDPS might
monitor are network traffic (only for that host), system logs, running processes, application activity,
file access and modification, and system and application configuration changes. Host-based IDPSs
are most commonly deployed on critical hosts such as publicly accessible servers and servers
containing sensitive information. Section 7 contains additional information on host-based IDPSs.
Some forms of IDPS are more mature than others because they have been in use much longer. Network-
based IDPS and some forms of host-based IDPS have been commercially available for over ten years.
Network behavior analysis software is a somewhat newer form of IDPS that evolved in part from
products created primarily to detect DDoS attacks, and in part from products developed to monitor traffic
flows on internal networks. Wireless technologies are a relatively new type of IDPS, developed in
response to the popularity of wireless local area networks (WLAN) and the growing threats against
WLANs and WLAN clients.
2.5 Summary
Intrusion detection is the process of monitoring the events occurring in a computer system or network and
analyzing them for signs of possible incidents, which are violations or imminent threats of violation of
computer security policies, acceptable use policies, or standard security practices. Intrusion prevention is
the process of performing intrusion detection and attempting to stop detected possible incidents. Intrusion
detection and prevention systems (IDPS) are primarily focused on identifying possible incidents, logging
information about them, attempting to stop them, and reporting them to security administrators. In
addition, organizations use IDPSs for other purposes, such as identifying problems with security policies,
documenting existing threats, and deterring individuals from violating security policies. IDPSs have
become a necessary addition to the security infrastructure of nearly every organization.
There are many types of IDPS technologies, which are differentiated primarily by the types of events that
they can recognize and the methodologies that they use to identify possible incidents. This publication
discusses the following four types of IDPS technologies:
Network-Based, which monitors network traffic for particular network segments or devices and
analyzes the network and application protocol activity to identify suspicious activity.
Wireless, which monitors wireless network traffic and analyzes it to identify suspicious activity
involving the wireless networking protocols themselves.
Network Behavior Analysis (NBA), which examines network traffic to identify threats that generate
unusual traffic flows, such as DDoS attacks, scanning, and certain forms of malware.
Host-Based, which monitors the characteristics of a single host and the events occurring within that
host for suspicious activity.
2-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
IDPSs typically record information related to observed events, notify security administrators of important
observed events, and produce reports. Many IDPSs can also respond to a detected threat by attempting to
prevent it from succeeding. They use several response techniques, which involve the IDPS stopping the
attack itself, changing the security environment (e.g., reconfiguring a firewall), or changing the attack’s
content.
IDPSs cannot provide completely accurate detection; they all generate false positives (incorrectly
identifying benign activity as malicious) and false negatives (failing to identify malicious activity). Many
organizations choose to tune IDPSs so that false negatives are decreased and false positives increased,
which necessitates additional analysis resources to differentiate false positives from true malicious events.
Most IDPSs also offer features that compensate for the use of common evasion techniques, which modify
the format or timing of malicious activity to alter its appearance but not its effect, to attempt to avoid
detection by IDPSs.
Most IDPSs use multiple detection methodologies, either separately or integrated, to provide more broad
and accurate detection. The primary classes of detection methodologies are as follows:
Signature-based, which compares known threat signatures to observed events to identify incidents.
This is very effective at detecting known threats but largely ineffective at detecting unknown threats
and many variants on known threats. Signature-based detection cannot track and understand the state
of complex communications, so it cannot detect most attacks that comprise multiple events.
Anomaly-based detection, which compares definitions of what activity is considered normal against
observed events to identify significant deviations. This method uses profiles that are developed by
monitoring the characteristics of typical activity over a period of time. The IDPS then compares the
characteristics of current activity to thresholds related to the profile. Anomaly-based detection
methods can be very effective at detecting previously unknown threats. Common problems with
anomaly-based detection are inadvertently including malicious activity within a profile, establishing
profiles that are not sufficiently complex to reflect real-world computing activity, and generating
many false positives.
Stateful protocol analysis, which compares predetermined profiles of generally accepted definitions
of benign protocol activity for each protocol state against observed events to identify deviations.
Unlike anomaly-based detection, which uses host or network-specific profiles, stateful protocol
analysis relies on vendor-developed universal profiles that specify how particular protocols should
and should not be used. It is capable of understanding and tracking the state of protocols that have a
notion of state, which allows it to detect many attacks that other methods cannot. Problems with
stateful protocol analysis include that it is often very difficult or impossible to develop completely
accurate models of protocols, it is very resource-intensive, and it cannot detect attacks that do not
violate the characteristics of generally acceptable protocol behavior.
2-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
3. IDPS Technologies
This section provides an overview of IDPS technologies. The information presented in this section
applies to all types of IDPS products; additional information specific to each product type is presented in
Sections 4 through 7. This section first covers the major components of IDPS technologies and explains
the architectures typically used for deploying the components. It also provides a high-level description of
the security capabilities of the technologies, including the methodologies they use to identify suspicious
activity. The rest of the section discusses the management capabilities of the technologies, including
detailed recommendations for implementation and operation.
This section describes the major components of IDPS solutions and illustrates the most common network
architectures for these components.
Sensor or Agent. Sensors and agents monitor and analyze activity. The term sensor is typically used
for IDPSs that monitor networks, including network-based, wireless, and network behavior analysis
technologies. The term agent is typically used for host-based IDPS technologies.
Management Server. A management server is a centralized device that receives information from
the sensors or agents and manages them. 7 Some management servers perform analysis on the event
information that the sensors or agents provide and can identify events that the individual sensors or
agents cannot. Matching event information from multiple sensors or agents, such as finding events
triggered by the same IP address, is known as correlation. Management servers are available as both
appliance and software-only products. Some small IDPS deployments do not use any management
servers, but most IDPS deployments do. In larger IDPS deployments, there are often multiple
management servers, and in some cases there are two tiers of management servers.
Database Server. A database server is a repository for event information recorded by sensors,
agents, and/or management servers. Many IDPSs provide support for database servers.
Console. A console is a program that provides an interface for the IDPS’s users and administrators.
Console software is typically installed onto standard desktop or laptop computers. Some consoles are
used for IDPS administration only, such as configuring sensors or agents and applying software
updates, while other consoles are used strictly for monitoring and analysis. Some IDPS consoles
provide both administration and monitoring capabilities.
3.1.2 Network Architectures
IDPS components can be connected to each other through an organization’s standard networks or through
a separate network strictly designed for security software management known as a management network.
If a management network is used, each sensor or agent host has an additional network interface known as
a management interface that connects to the management network. Also, each sensor or agent host is
unable to pass any traffic between its management interface and any of its other network interfaces. The
7
Because this publication focuses on enterprise IDPS deployment, it assumes that management servers are used with sensors
and agents. However, some types of IDPS sensors and agents can be deployed standalone, and managed and monitored
directly by administrators without using a management server.
3-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
management servers, database servers, and consoles are attached to the management network only. This
architecture effectively isolates the management network from the production networks. The benefits of
doing this are to conceal the existence and identity of the IDPS from attackers; to protect the IDPS from
attack; and to ensure that the IDPS has adequate bandwidth to function under adverse conditions (e.g.,
worm attack or distributed denial of service [DDoS] on the monitored networks). Disadvantages of using
a management network include the additional costs in networking equipment and other hardware (e.g.,
PCs for the consoles) and the inconvenience for IDPS users and administrators of using separate
computers for IDPS management and monitoring.
If an IDPS is deployed without a separate management network, another way of improving IDPS security
is to create a virtual management network using a virtual local area network (VLAN) within the standard
networks. Using a VLAN provides protection for IDPS communications, but not as much protection as a
separate management network. For example, misconfiguration of the VLAN could lead to the exposure
of IDPS data. Another concern is that under adverse conditions, such as DDoS attacks or major malware
incidents, the network devices shared by the organization’s primary networks and VLAN might become
completely saturated, negatively impacting the availability and performance of the IDPS.
Most IDPS technologies can provide a wide variety of security capabilities. Sections 3.2.1 through 3.2.4
describe common security capabilities, divided into four categories: information gathering, logging,
detection, and prevention, respectively.
Some IDPS technologies offer information gathering capabilities, such as collecting information on hosts
or networks from observed activity. Examples include identifying hosts and the operating systems and
applications that they use, and identifying general characteristics of the network.
IDPSs typically perform extensive logging of data related to detected events. This data can be used to
confirm the validity of alerts, investigate incidents, and correlate events between the IDPS and other
logging sources. Data fields commonly used by IDPSs include event date and time, event type,
importance rating (e.g., priority, severity, impact, confidence), and prevention action performed (if any).
Specific types of IDPSs log additional data fields, such as network-based IDPSs performing packet
captures and host-based IDPSs recording user IDs. IDPS technologies typically permit administrators to
store logs locally and send copies of logs to centralized logging servers (e.g., syslog, security information
and event management software). Generally, logs should be stored both locally and centrally to support
the integrity and availability of the data (e.g., a compromise of the IDPS could allow attackers to alter or
destroy its logs). 8 Also, IDPSs should have their clocks synchronized using the Network Time Protocol
(NTP) or through frequent manual adjustments so that their log entries have accurate timestamps. 9
8
For additional information on log management, see NIST SP 800-92, Guide to Computer Security Log Management, which
is available at http://csrc.nist.gov/publications/nistpubs/.
9
NIST SP 800-86, Guide to Integrating Forensic Techniques into Incident Response, contains additional information on the
importance of clock synchronization for investigating events and correlating information across systems. The publication is
available at http://csrc.nist.gov/publications/nistpubs/.
3-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
IDPS technologies typically offer extensive, broad detection capabilities. Most products use a
combination of detection techniques, which generally supports more accurate detection and more
flexibility in tuning and customization. The types of events detected and the typical accuracy of detection
vary greatly depending on the type of IDPS technology. Most IDPSs require at least some tuning and
customization to improve their detection accuracy, usability, and effectiveness, such as setting the
prevention actions to be performed for particular alerts. Technologies vary widely in their tuning and
customization capabilities. Typically, the more powerful a product’s tuning and customization
capabilities are, the more its detection accuracy can be improved from the default configuration.
Organizations should carefully consider the tuning and customization capabilities of IDPS technologies
when evaluating products. Examples of such capabilities are as follows:
Thresholds. A threshold is a value that sets the limit between normal and abnormal behavior.
Thresholds usually specify a maximum acceptable level, such as x failed connection attempts in 60
seconds, or x characters for a filename length. Thresholds are most often used for anomaly-based
detection and stateful protocol analysis.
Blacklists and Whitelists. A blacklist is a list of discrete entities, such as hosts, TCP or UDP port
numbers, ICMP types and codes, applications, usernames, URLs, filenames, or file extensions, that
have been previously determined to be associated with malicious activity. Blacklists, also known as
hot lists, are typically used to allow IDPSs to recognize and block activity that is highly likely to be
malicious, and may also be used to assign a higher priority to alerts that match entries on the
blacklists. Some IDPSs generate dynamic blacklists that are used to temporarily block recently
detected threats (e.g., activity from an attacker’s IP address). A whitelist is a list of discrete entities
that are known to be benign. Whitelists are typically used on a granular basis, such as protocol-by-
protocol, to reduce or ignore false positives involving known benign activity from trusted hosts.
Whitelists and blacklists are most commonly used in signature-based detection and stateful protocol
analysis.
Alert Settings. Most IDPS technologies allow administrators to customize each alert type.
Examples of actions that can be performed on an alert type include the following:
– Toggling it on or off 10
– Specifying what information should be recorded and what notification methods (e.g., e-mail,
pager) should be used
10
In some IDPS technologies, turning off an alert also disables related detection capabilities; in other products, the detection
processing is still done but an alert message is not generated. For technologies in the first category, shutting off unneeded
alerts can reduce the load on the IDPS.
3-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Viewing the code can help analysts to determine why particular alerts were generated, helping to
validate alerts and identify false positives. The ability to edit all detection-related code and write new
code (e.g., new signatures) is necessary to fully customize certain types of detection capabilities. For
example, a particular alert might be generated by a complex series of events involving several code
modules; customizing the IDPS to understand organization-specific characteristics might not be
possible without editing the code directly. Editing the code requires programming and intrusion
detection skills; also, some IDPSs use proprietary programming languages, which would necessitate
the programmer learning a new language. Bugs introduced into the code during the customization
process could cause the IDPS to function incorrectly or fail altogether, so administrators should treat
code customization as they would any other alteration of production systems’ code.
Administrators should review tuning and customizations periodically to ensure that they are still accurate.
For example, whitelists and blacklists should be checked regularly and all entries validated to ensure that
they are still accurate and necessary. Thresholds and alert settings might need to be adjusted periodically
to compensate for changes in the environment and in threats. Edits to detection code might need to be
replicated whenever the product is updated (e.g., patched, upgraded). Administrators should also ensure
that any products collecting baselines for anomaly-based detection have their baselines rebuilt
periodically as needed to support accurate detection.
Most IDPSs offer multiple prevention capabilities; the specific capabilities vary by IDPS technology type.
IDPSs usually allow administrators to specify the prevention capability configuration for each type of
alert. This usually includes enabling or disabling prevention, as well as specifying which type of
prevention capability should be used. Some IDPS sensors have a learning or simulation mode that
suppresses all prevention actions and instead indicates when a prevention action would have been
performed. This allows administrators to monitor and fine-tune the configuration of the prevention
capabilities before enabling prevention actions, which reduces the risk of inadvertently blocking benign
activity.
3.3 Management
Most IDPS products offer similar management capabilities. This section discusses major aspects of
management—implementation, operation, and maintenance—and provides recommendations for
performing them effectively and efficiently. It also briefly discusses the skills needed for IDPS
management and provides recommendations for gaining these skills.
3.3.1 Implementation
Once an IDPS product has been selected, the administrators need to design an architecture, perform IDPS
component testing, and deploy and secure the IDPS components. Sections 3.3.1.1 through 3.3.1.3
provide more information on these actions.
The first step in IDPS implementation is designing an architecture. Architectural considerations include
the following:
3-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
How reliable the solution should be and what measures should be used to achieve that reliability, such
as having multiple sensors monitor the same activity in case a sensor fails, or using multiple
management servers so that a backup server can be used in case the primary server fails
Where the other components of the IDPS will be located (e.g., management servers, database servers,
consoles), and how many of each component are needed to achieve the necessary usability,
redundancy, and load balancing goals
With which other systems the IDPS needs to interface, including the following:
– Systems to which it provides data, such as security information and event management software,
centralized log servers, e-mail servers, and paging systems
– Systems that manage IDPS components, such as network management software (for a
management network) or patch management software (for keeping consoles’ operating systems
and applications fully up-to-date)
Whether or not a management network will be used; if so, what its design will be, and if not, how the
IDPS communications will be protected on the standard networks
What other security controls and technologies need to be altered to accommodate IDPS deployment,
such as changing firewall rulesets to allow IDPS components to communicate.
3.3.1.2 Component Testing and Deployment
Organizations should consider implementing the components in a test environment first, instead of a
production environment, to reduce the likelihood of implementation problems disrupting the production
networks. When the components are being deployed to production networks, organizations should
initially activate only a few IDPS sensors or agents, with their prevention capabilities disabled. Because a
new deployment is likely to generate a large number of false positives until fully tuned and customized,
activating many sensors or agents at once might overwhelm the management servers and consoles,
making it difficult for administrators to perform tuning and customization. Many false positives are
likely to be the same across sensors or agents, so it is helpful to identify such false positives either during
the testing process or when deploying the first few sensors or agents, so that those false positives can be
addressed before widespread deployment. A phased deployment of sensors or agents is also helpful in
identifying potential problems with scalability.
Implementing an IDPS can necessitate brief network or system outages for component installation. As
mentioned above, performing a deployment in a test environment can be very helpful in identifying likely
implementation problems, so that they can be mitigated appropriately when the production deployment
occurs.
Appliance-based IDPS components are typically simple to deploy. Administrators might need to perform
software updates or signature updates to ensure the IDPS software is current. Otherwise, administrators
usually just need to provide power and connect network cables, boot the appliance, and perform some
basic configuration (e.g., enter a product license key, assign a name to the sensor).
Software-based IDPS components usually take more time to deploy than appliance-based components.
The organization first needs to acquire the appropriate hardware, which might include purchasing high-
bandwidth network cards and otherwise ensuring that the hardware is robust enough for the IDPS. Next,
administrators need to install an operating system (OS) that is compatible with the IDPS software, and
3-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
then harden the host as much as possible. Hardening should include updating the OS, services, and
applications, including the IDPS software. Administrators also need to perform basic configuration of the
IDPS software, just as is done for appliance-based IDPS components.
After deploying either appliance-based or software-based IDPS components, considerable effort may be
needed to configure the products’ detection and prevention capabilities, depending on the type of IDPS
being deployed. Without performing this configuration work, some IDPSs might be capable of detecting
only a small number of older, easily identified attacks.
Securing IDPS components is very important because IDPSs are often targeted by attackers. If an
attacker can compromise an IDPS, it can be rendered useless in detecting subsequent attacks against other
hosts. Also, IDPSs often contain sensitive information such as host configurations and known
vulnerabilities that could be helpful in planning additional attacks. In addition to hardening software-
based IDPS components and ensuring that all IDPS components are fully up-to-date, administrators
should perform additional actions to ensure that the IDPS components themselves are secured
appropriately. Specific security recommendations are as follows:
Administrators should create separate accounts for each user and administrator of the IDPS, and
assign each account only the necessary privileges.
Administrators should configure firewalls, routers, and other packet filtering devices to limit direct
access to all IDPS components to only those hosts that need such access.
Administrators should ensure that all IDPS management communications are protected appropriately,
either through physical (e.g., management network) or logical (e.g., management VLAN) separation,
or through encryption of communications. If encryption is used for protection, it should be performed
using FIPS-approved encryption algorithms. 11 Many products encrypt their communications using
Transport Layer Security (TLS); for products that do not provide sufficient protection through
encryption, organizations should consider using a virtual private network (VPN) or other encrypted
tunneling method to protect the traffic.
Some organizations also require the use of strong authentication for remote access to IDPS components,
such as two-factor authentication. This provides an additional layer of security.
Nearly all IDPS products are designed to be operated and maintained through a graphical user interface
(GUI), also known as the console. The console typically permits administrators to configure and update
the sensors and management servers, as well as monitor their status (e.g., agent failure, packet dropping).
Administrators can also manage user accounts, customize reports, and perform many other functions
using the console. IDPS users can also perform many functions through the console, including
monitoring and analyzing the IDPS data and generating reports. Most IDPSs permit administrators to set
up individual user accounts for each administrator and user, and to grant each account only the privileges
necessary for each person’s role. The console often reflects this by showing different menus and options
based on the currently authenticated account’s designated role. Some products also provide finer-grained
11
Federal agencies must use Federal Information Processing Standard (FIPS) approved encryption algorithms contained in
validated cryptographic modules. The Cryptographic Module Validation Program (CMVP) at NIST coordinates FIPS
testing; the CMVP Web site is located at http://csrc.nist.gov/cryptval/. See http://csrc.nist.gov/cryptval/des.htm for
information on FIPS-approved symmetric key algorithms. FIPS 140-2, Security Requirements for Cryptographic Modules,
is available at http://csrc.nist.gov/publications/fips/fips140-2/fips1402.pdf.
3-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
access control, such as specifying for which sensors or agents particular users can monitor or analyze data
or generate reports or particular administrators can alter configurations. This allows a large IDPS
deployment to be divided into logical units for operational purposes.
Some IDPS products also offer command-line interfaces (CLI). Unlike GUI consoles, which are typically
used for remote management of sensors or agents and management servers, CLIs are typically used for
local management of those components. Sometimes a CLI can be reached remotely through an encrypted
connection established through secure shell (SSH) or other means. Consoles are typically much easier to
use than CLIs, and CLIs often provide only some of the functionality that consoles provide.
The rest of this section provides additional information on the operation and maintenance of IDPSs.
Section 3.3.2.1 describes how users can make effective use of consoles in their daily IDPS tasks. Section
3.3.2.2 provides more information on ongoing maintenance of the technologies, with Section 3.3.2.3
focusing specifically on acquiring and applying updates.
Most IDPS consoles offer many features to assist users in their daily tasks. For example, most consoles
offer drill-down capabilities, which means that when a user examines an alert, more details and
information are available in layers. 12 This allows users to see basic information on many alerts at once,
and to show additional information on particular events of interest as needed. Some products allow users
to see extensive supporting information, such as packet captures (both raw and parsed with a protocol
analyzer) and related alerts (e.g., other alerts for the same source or destination), as well as documentation
on the alert itself. Generally, the more data that the IDPS records, the easier it is for analysts to determine
what has happened. Some consoles also offer incident response features, such as turning an alert into an
incident case and providing workflow mechanisms that allow users to document additional information
on the alert and route the alert to particular users or groups of users for further review.
Most consoles also offer various reporting functions. For example, administrators or users might be able
to use the console to have certain reports run at set times and to e-mail or transfer the reports to the
appropriate users or hosts. Many consoles also allow users to generate reports as needed (including
reports for specific incidents) and to customize reports as needed. If an IDPS product stores its logs in a
database or in an easily parsed file format (e.g., comma-separated values in a text file), database queries
or scripts can also be used to generate custom reports, particularly if the console does not offer
sufficiently flexible report customization.
Administrators should maintain IDPSs on an ongoing basis. This should include the following:
Monitoring the IDPS components themselves for operational and security issues
Periodically verifying that the IDPS is functioning properly (e.g., processing events, alerting
appropriately on suspicious activity) 13
12
A detailed discussion of the analysis of IDPS data is outside the scope of this document. For more information, see NIST
SP 800-86, Guide to Integrating Forensic Techniques into Incident Response, which is available at
http://csrc.nist.gov/publications/nistpubs/. NIST SP 800-86 discusses the analysis of data from IDPSs and other sources of
security event information.
13
One way of verifying component functionality is to perform periodic testing of the IDPS, either in a test environment or a
production environment. Performing such testing in a production environment can inadvertently disrupt operations. See
Section 9 for additional information on IDPS testing.
3-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
There are two types of IDPS updates: software updates and signature updates. Software updates fix bugs
in the IDPS software or add new functionality, while signature updates add new detection capabilities or
refine existing detection capabilities (e.g., reducing false positives). For many IDPSs, signature updates
cause program code to be altered or replaced, so they are really a specialized form of software update.
For other IDPSs, signatures are not written in code, so a signature update is a change to the configuration
data for the IDPS.
Software updates can include any or all IDPS components, including sensors, agents, management
servers, and consoles. Software updates for sensors and management servers, particularly appliance-
based devices, are often applied by replacing an existing IDPS CD with a new one and rebooting the
device. Many IDPSs run the software directly from the CD, so that no software installation is required.
Other components, such as agents, require an administrator to install software or apply patches, either
manually on each host or automatically through IDPS management software. Some vendors make
software and signature updates available for download from their Web sites or other servers; often, the
administrator interfaces for IDPSs have features for downloading and installing such updates.
Administrators should verify the integrity of updates before applying them, because updates could have
been inadvertently or intentionally altered or replaced. The recommended verification method depends
on the update’s format, as follows:
Files downloaded from a Web site or FTP site. Administrators should compare file checksums
provided by the vendor with checksums that they compute for the downloaded files.
Update downloaded automatically through the IDPS user interface. If an update is downloaded
as a single file or a set of files, either checksums provided by the vendor should be compared to
checksums generated by the administrator, or the IDPS user interface itself should perform some sort
of integrity check. In some cases, updates might be downloaded and installed as one action,
precluding checksum verification; the IDPS user interface should check each update’s integrity as
part of this.
Removable media (e.g., CD, DVD). Vendors may not provide a specific method for customers to
verify the legitimacy of removable media apparently sent by the vendors. If media verification is a
concern, administrators should contact their vendors to determine how the media can be verified, such
as comparing vendor-provided checksums to checksums computed for files on the media, or verifying
digital signatures on the media’s contents to ensure they are valid. Administrators should also
consider scanning the media for malware, with the caveat that false positives might be triggered by
IDPS signatures for malware on the media.
IDPSs are typically designed so that applying software and signature updates has no effect on existing
tuning and customization settings. The primary exception is code customization, which often has to be
repeated when code updates from the vendor are installed. For any IDPS, administrators should back up
configuration settings periodically and before applying software or signature updates to ensure that
existing settings are not inadvertently lost.
3-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Administrators should test software and signature updates before applying them except for emergency
situations (e.g., a signature identifies a new, active threat that is damaging the organization and cannot
otherwise be detected or blocked). It is beneficial to have at least one sensor or agent host (one for each
type of agent) that is used strictly for testing updates. New detection capabilities can often cause large
numbers of alerts to be triggered, so testing signature updates on a single sensor or agent host, even
briefly (e.g., loading the update and observing how the IDPS functions when monitoring typical activity),
can help to identify signatures that are likely to be problematic and should possibly be disabled. In non-
emergency situations, software and signature updates should be tested and deployed using the same
practices that would be used for updating any other major security controls, such as firewalls and
antivirus software. When updates are deployed into production, administrators should be ready to disable
particular signatures or perform other minor reconfigurations as needed.
Various skills are needed for IDPS implementation, operation, and maintenance, including the following:
The administrators implementing IDPS components need to understand the basics of system
administration, network administration, and information security.
The administrators tuning and customizing the IDPS need reasonably comprehensive knowledge of
information security and IDPS principles. An understanding of incident response principles and the
organization’s incident response policies and procedures is also recommended. Administrators
should also have an understanding of the network protocols, applications, and operating systems to be
monitored by the IDPS.
Programming skills might also be needed for extensive code customization, report writing, and other
tasks.
Skills in IDPS principles can be built and maintained through many methods, including training, technical
conferences, books and other technical references, and mentoring programs. Knowledge of specific IDPS
products can also be gained through several methods, including the following:
Vendor Training. Many vendors of IDPS products offer one or more training courses for people
that will be administering or using their products. Training courses are often hands-on, permitting
attendees to learn how to use the technology in a non-production environment.
Product Documentation. Most products offer several manuals, such as an installation guide, a
user’s guide, and an administrator’s guide. Some also offer separate guides or databases that provide
supplemental information for alerts and signatures.
Technical Support. Most vendors offer technical support for their customers, either as part of
purchasing a product or for an additional fee. Support is used primarily to resolve problems and
clarify the capabilities of the product to its users and administrators.
Professional Services. Some vendors offer professional services, which is essentially consulting
services provided by the vendor. For example, an organization could pay a vendor to write custom
signatures or reports, or to assist administrators in understanding how to tune and customize their
sensors effectively.
User Communities. Some products have active user communities, which typically function through
mailing lists or online forums. Users can exchange information and code with each other, and assist
each other in troubleshooting problems. Although user communities can be a source of information,
administrators and users should be cautious when using them, because posting details about an
3-9
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
organization’s IDPS configuration or problems could inadvertently reveal sensitive information about
the organization’s security infrastructure, systems, and networks.
3.4 Summary
The typical components in an IDPS solution are sensors or agents, management servers, database servers,
and consoles. Sensors and agents monitor and analyze activity; sensors are used to monitor networks and
agents to monitor hosts. Management servers receive information from sensors or agents and manage
them. Database servers are repositories for event information recorded by the sensors or agents and
management servers. Consoles are programs that provide interfaces for IDPS users and administrators.
These components can be connected to each other through an organization’s standard networks or through
a separate network strictly designed for security software management known as a management network.
A management network helps to protect the IDPS from attack and to ensure it has adequate bandwidth
under adverse conditions. A virtual management network can be created using a virtual local area
network (VLAN); this provides protection for IDPS communications, but not as much protection as a
management network would provide.
Most IDPSs can provide a wide variety of security capabilities. Some products offer information
gathering capabilities, such as collecting information on hosts or networks from observed activity. IDPSs
also typically perform extensive logging of data related to detected events. This data can be used to
confirm the validity of alerts, investigate incidents, and correlate events between the IDPS and other
logging sources. Generally, logs should be stored both locally and centrally to support the integrity and
availability of the data.
IDPSs typically offer extensive, broad detection capabilities. The types of events detected and the typical
accuracy of detection vary greatly depending on the type of IDPS technology. Most IDPSs require at
least some tuning and customization to improve their detection accuracy, usability, and effectiveness.
Typically, the more powerful a product’s tuning and customization capabilities are, the more its detection
accuracy can be improved from the default configuration. Examples of these capabilities are thresholds,
blacklists and whitelists, alert settings, and code editing. Organizations should carefully consider the
tuning and customization capabilities of IDPSs when evaluating products. Administrators should review
tuning and customizations periodically to ensure that they are still accurate. Administrators should also
ensure that any products collecting baselines for anomaly-based detection have those baselines rebuilt
periodically as needed to support accurate detection.
Most IDPSs offer multiple prevention capabilities; the specific capabilities vary by IDPS technology type.
IDPSs usually allow administrators to specify the prevention capability configuration for each type of
alert. This includes enabling or disabling prevention, as well as specifying which type of prevention
capability should be used.
Once an IDPS product has been selected, the administrators need to design an architecture, perform IDPS
component testing, and deploy and secure the IDPS components. There are many architectural
considerations, including component placement, solution reliability, interoperability with other systems,
management network architecture, and necessary changes to other security controls. Before performing a
production implementation, organizations should consider implementing the components in a test
environment first to reduce the likelihood of implementation problems disrupting production. When the
components are being deployed to production networks, organizations should initially activate only a few
IDPS sensors or agents. Because a new deployment is likely to generate a large number of false positives
until fully tuned and customized, activating many sensors or agents at once might overwhelm the
management servers and consoles, making it difficult for administrators to perform tuning and
customization.
3-10
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
In addition to hardening software-based IDPS components and ensuring that all IDPS components are
fully up-to-date, administrators should perform additional actions to ensure that the IDPS components
themselves are secured appropriately. Examples include creating separate accounts for each IDPS user
and administrator, restricting network access to IDPS components, and ensuring that IDPS management
communications are protected appropriately. All encryption used for protection should be performed
using FIPS-approved encryption algorithms.
Administrators should maintain IDPSs on an ongoing basis. This should include monitoring the IDPS
components for operational and security issues, performing regular vulnerability assessments, responding
appropriately to vulnerabilities in the IDPS components, and testing and deploying IDPS software and
signature updates. Administrators should verify the integrity of updates before applying them, because
updates could have been inadvertently or intentionally altered or replaced. Administrators should test
software and signature updates before applying them, except for emergency situations. Administrators
should also back up configuration settings periodically and before applying software or signature updates
to ensure that existing settings are not inadvertently lost.
3-11
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
3-12
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
4. Network-Based IDPS
A network-based IDPS monitors network traffic for particular network segments or devices and analyzes
network, transport, and application protocols to identify suspicious activity. This section provides a
detailed discussion of network-based IDPS technologies. First, it contains a brief overview of TCP/IP,
which is background material for understanding the rest of Section 4. Next, it covers the major
components of network-based IDPSs and explains the architectures typically used for deploying the
components. It also examines the security capabilities of the technologies in depth, including the
methodologies they use to identify suspicious activity. The rest of the section discusses the management
capabilities of the technologies and provides recommendations for implementation and operation.
TCP/IP is widely used throughout the world to provide network communications. TCP/IP
communications are composed of four layers that work together. When a user wants to transfer data
across networks, the data is passed from the highest layer through intermediate layers to the lowest layer,
with each layer adding more information. The lowest layer sends the accumulated data through the
physical network; the data is then passed up through the layers to its destination. Essentially, the data
produced by a layer is encapsulated in a larger container by the layer below it. The four TCP/IP layers,
from highest to lowest, are shown in Figure 4-1.
Application Layer. This layer sends and receives data for particular applications, such as
Domain Name System (DNS), Hypertext Transfer Protocol (HTTP), and Simple Mail Transfer
Protocol (SMTP).
Transport Layer. This layer provides connection-oriented or connectionless services for
transporting application layer services between networks. The transport layer can optionally
ensure the reliability of communications. Transmission Control Protocol (TCP) and User
Datagram Protocol (UDP) are commonly used transport layer protocols.
Internet Protocol (IP) Layer (also known as Network Layer). This layer routes packets
across networks. IPv4 is the fundamental network layer protocol for TCP/IP. Other commonly
used protocols at the network layer are IPv6, Internet Control Message Protocol (ICMP), and
Internet Group Management Protocol (IGMP).
Hardware Layer (also known as Data Link Layer). This layer handles communications on the
physical network components. The best known data link layer protocol is Ethernet.
The four TCP/IP layers work together to transfer data between hosts. Network-based IDPSs typically
perform most of their analysis at the application layer. They also analyze activity at the transport and
network layers both to identify attacks at those layers and to facilitate the analysis of the application layer
activity (e.g., a TCP port number may indicate which application is being used). Some network-based
IDPSs also perform limited analysis at the hardware layer. Sections 4.1.1 through 4.1.4 describe each
layer in greater detail.
The application layer enables applications to transfer data between an application server and client. An
example of an application layer protocol is Hypertext Transfer Protocol (HTTP), which transfers data
between a Web server and a Web browser. Other common application layer protocols include Domain
Name System (DNS), File Transfer Protocol (FTP), Simple Mail Transfer Protocol (SMTP), and Simple
4-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Network Management Protocol (SNMP). There are hundreds of unique application layer protocols in
common use, and many more that are not so common. Regardless of the protocol in use, application data
is generated and then passed to the transport layer for further processing.
The transport layer is responsible for packaging data so that it can be transmitted between hosts. Most
applications that communicate over networks rely on the transport layer to ensure reliable delivery of
data. Generally, this is accomplished by using TCP. When loss of some application data is not a concern
(e.g., streaming audio, video), or the application itself ensures reliable delivery of data, UDP is typically
used. UDP is connectionless; one host simply sends data to another host without any preliminary
negotiations. Each TCP or UDP packet has a source port number and a destination port number. One of
the ports is associated with a server application on one system; the other port is associated with a
corresponding client application on the other system. Client systems typically select any available port
number for application use, whereas server systems usually have a static port number dedicated to each
application. Although UDP and TCP ports are very similar, they are distinct from each other and are not
interchangeable.
The network layer, also known as the IP layer, is responsible for handling the addressing and routing of
data that it receives from the transport layer. After the network layer has encapsulated the transport layer
data, the resulting logical units are referred to as packets. Each packet contains a header, which is
composed of various fields that specify characteristics of the transport protocol in use; optionally, packets
may also contain a payload, which holds the application data. The IP header contains a field called IP
Version, which indicates which version of IP is in use. Typically this is set to 4 for IPv4; but the use of
IPv6 is increasing, so this field may be set to 6 instead. 14 Other significant IP header fields are as
follows:
Source and Destination IP Addresses. These are the “from” and “to” addresses that are intended to
indicate the endpoints of the communication. 15 Examples of IP addresses are 10.3.1.70 (IPv4) and
1000::2F:8A:400:427:9BD1 (IPv6).
IP Protocol Number. This indicates which network or transport layer protocol the IP payload
contains. 16 Commonly used IP numbers include 1 (ICMP), 6 (TCP), 17 (UDP), and 50
(Encapsulating Security Payload [ESP]).
The network layer is also responsible for providing error and status information involving the addressing
and routing of data; it does this with ICMP. ICMP is a connectionless protocol that makes no attempt to
guarantee that its error and status messages are delivered. Because it is designed to transfer limited
information, not application data, ICMP does not have ports; instead, it has message types, which indicate
the purpose of each ICMP message. 17 Some message types also have message codes, which can be
thought of as subtypes. For example, the ICMP message type Destination Unreachable has several
14
There are other possible IP version numbers as well, although none are commonly used. The official list of valid IP Version
field values is available at http://www.iana.org/assignments/version-numbers. This document assumes the use of IPv4,
unless otherwise specified.
15
IP addresses are often inaccurate or misleading for identifying the actual endpoints of communication.
16
The official list of valid IP Protocol Number values is available at http://www.iana.org/assignments/protocol-numbers.
17
The current list of valid ICMP types is available at http://www.iana.org/assignments/icmp-parameters.
4-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
possible message codes that indicate what is unreachable (e.g., network, host, protocol). Most ICMP
message types are not intended to elicit a response. 18
As the name implies, the hardware layer, also called the data link layer, involves the physical components
of the network, including cables, routers, switches, and network interface cards (NIC). The hardware
layer also includes various hardware layer protocols, with Ethernet being the most widely used. Ethernet
relies on the concept of a media access control (MAC) address, which is a unique six-byte value (such as
00-02-B4-DA-92-2C) that is permanently assigned to a particular NIC. 19 Each frame, the logical unit at
the hardware layer, contains two MAC addresses, which indicate the MAC address of the NIC that just
routed the frame and the MAC address of the next NIC to which the frame is being sent. As a frame
passes through networking equipment (such as routers and firewalls) on its way between the original
source host and the final destination host, the MAC addresses are updated to refer to the local source and
destination. Several separate hardware layer transmissions may be linked together within a single
network layer transmission.
In addition to the MAC addresses, each frame also contains an EtherType value, which indicates the
protocol that the frame’s payload contains (typically IP or Address Resolution Protocol [ARP]). 20 When
IP is used, each IP address maps to a particular MAC address. (Because multiple IP addresses can map to
a single MAC address, a MAC address does not necessarily uniquely identify an IP address.)
This section describes the major components of typical network-based IDPSs and illustrates the most
common network architectures for these components. It also provides recommendations for the
placement of network-based IDPS sensors.
A typical network-based IDPS is composed of sensors, one or more management servers, multiple
consoles, and optionally one or more database servers (if the network-based IDPS supports their use). All
of these components are similar to other types of IDPS technologies, except for the sensors. A network-
based IDPS sensor monitors and analyzes network activity on one or more network segments. The
network interface cards that will be performing monitoring are placed into promiscuous mode, which
means that they will accept all incoming packets that they see, regardless of their intended destinations.
Most IDPS deployments use multiple sensors, with large deployments having hundreds of sensors.
Sensors are available in two formats:
18
ICMP is designed to limit responses, particularly to error messages. If ICMP had not been designed in this way, message
loops could occur. For example, if Host A received an ICMP error message from Host B and responded with an error
message, and Host B responded to that error message with an error message, the two hosts could continue sending error
messages regarding the error messages.
19
Various software utilities are publicly available that allow people to configure systems to spoof other MAC addresses.
There have also been cases in which manufacturers accidentally created NICs with duplicate MAC addresses.
20
EtherType value 0x0800 is IP, while 0x0806 is ARP. See http://www.iana.org/assignments/ethernet-numbers for more
information on EtherType values.
4-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Appliances often use a customized, hardened operating system (OS) that administrators are not
intended to access directly.
Software Only. Some vendors sell sensor software without an appliance. Administrators can install
the software onto hosts that meet certain specifications. The sensor software might include a
customized OS, or it might be installed onto a standard OS just as any other application would.
4.2.2 Network Architectures and Sensor Locations
Organizations should consider using management networks for their network-based IDPS deployments
whenever feasible. If an IDPS is deployed without a separate management network, organizations should
consider whether or not a VLAN is needed to protect the IDPS communications.
In addition to choosing the appropriate network for the components, administrators also need to decide
where the IDPS sensors should be located. Sensors can be deployed in one of two modes:
Inline. An inline sensor is deployed so that the network traffic it is monitoring must pass through it,
much like the traffic flow associated with a firewall. In fact, some inline sensors are hybrid
firewall/IDPS devices, while others are simply IDPSs. The primary motivation for deploying IDPS
sensors inline is to enable them to stop attacks by blocking network traffic. Inline sensors are
typically placed where network firewalls and other network security devices would be placed—at the
divisions between networks, such as connections with external networks and borders between
different internal networks that should be segregated. Inline sensors that are not hybrid firewall/IDPS
devices are often deployed on the more secure side of a network division so that they have less traffic
to process. Figure 4-2 shows such a deployment. Sensors can also be placed on the less secure side
of a network division to provide protection for and reduce the load on the dividing device, such as a
firewall.
4-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Passive. A passive sensor is deployed so that it monitors a copy of the actual network traffic; no
traffic actually passes through the sensor. Passive sensors are typically deployed so that they can
monitor key network locations, such as the divisions between networks, and key network segments,
such as activity on a demilitarized zone (DMZ) subnet. Passive sensors can monitor traffic through
various methods, including the following:
– Spanning Port. Many switches have a spanning port, which is a port that can see all network
traffic going through the switch. Connecting a sensor to a spanning port can allow it to monitor
traffic going to and from many hosts. Although this monitoring method is relatively easy and
inexpensive, it can also be problematic. If a switch is configured or reconfigured incorrectly, the
spanning port might not be able to see all the traffic. Another problem with spanning ports is that
their use can be resource-intensive; when a switch is under heavy loads, its spanning port might
4-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
not be able to see all traffic, or spanning might be temporarily disabled. Also, many switches
have only one spanning port, and there is often a need to have multiple technologies, such as
network monitoring tools, network forensic analysis tools, and other IDPS sensors, monitor the
same traffic.
– Network Tap. A network tap is a direct connection between a sensor and the physical network
media itself, such as a fiber optic cable. The tap provides the sensor with a copy of all network
traffic being carried by the media. Installing a tap generally involves some network downtime,
and problems with a tap could cause additional downtime. Also, unlike spanning ports, which are
usually already present throughout an organization, network taps need to be purchased as add-ons
to the network.
– IDS Load Balancer. An IDS load balancer is a device that aggregates and directs network
traffic to monitoring systems, including IDPS sensors. A load balancer can receive copies of
network traffic from one or more spanning ports or network taps and aggregate traffic from
different networks (e.g., reassemble a session that was split between two networks). The load
balancer then distributes copies of the traffic to one or more listening devices, including IDPS
sensors, based on a set of rules configured by an administrator. The rules tell the load balancer
which types of traffic to provide to each listening device. Common configurations include the
following:
• Send all traffic to multiple IDPS sensors. This could be done for high availability or to
have multiple types of IDPS sensors perform concurrent analysis of the same activity.
• Dynamically split the traffic among multiple IDPS sensors based on volume. This is
typically done to perform load balancing so that no sensor is overwhelmed with the
amount of traffic and corresponding analysis.
• Split the traffic among multiple IDPS sensors based on IP addresses, protocols, or
other characteristics. This could be done for load balancing purposes, such as having
one IDPS sensor dedicated to Web activity and another IDPS sensor monitoring all other
activity. Splitting traffic could also be done to perform more detailed analysis of certain
types of traffic (e.g., activity involving the most important hosts).
Splitting traffic among multiple IDPS sensors can cause a reduction in detection accuracy if
related events or portions of a single event are seen by different sensors. For example, suppose
that two sensors each see different steps of an attack; if each step is considered benign on its own
but the two steps in sequence are malicious, then the attack might not be recognized.
Figure 4-3 shows examples of passive sensors connected to the monitored network using IDS load
balancers, network taps, and spanning ports.
As explained in Section 4.3.4, most techniques for having a sensor prevent intrusions require that the
sensor be deployed in inline mode, not passive. Because passive techniques monitor a copy of the traffic,
they typically provide no reliable way for a sensor to stop the traffic from reaching its destination. In
some cases, a passive sensor can place packets onto a network to attempt to disrupt a connection, but such
methods are generally less effective than inline methods. Generally, organizations should deploy sensors
inline if prevention methods will be used and passive if they will not.
4-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Network-based IDPS products provide a wide variety of security capabilities. Sections 4.3.1 through
4.3.4 describe common security capabilities, divided into four categories: information gathering, logging,
detection, and prevention, respectively. Some network-based IDPS products also provide some security
information and event management (SIEM) capabilities; see Section 8.2.2 for information on SIEM.
Some network-based IDPSs offer limited information gathering capabilities, which means that they can
collect information on hosts and the network activity involving those hosts. Examples of information
gathering capabilities are as follows:
4-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Identifying Hosts. An IDPS sensor might be able to create a list of hosts on the organization’s
network arranged by IP address or MAC address. The list can be used as a profile to identify new
hosts on the network.
Identifying Operating Systems. An IDPS sensor might be able to identify the OSs and OS versions
used by the organization’s hosts through various techniques. For example, the sensor could track
which ports are used on each host, which could indicate a particular OS or OS family (e.g., Windows,
Unix). Another technique is to analyze packet headers for certain unusual characteristics or
combinations of characteristics that are exhibited by particular OSs; this is known as passive
fingerprinting. Some sensors can also identify application versions (as described below), which in
some cases implies which OS is in use. Knowing which OS versions are in use can be helpful in
identifying potentially vulnerable hosts.
Identifying Applications. For some applications, an IDPS sensor can identify the application
versions in use by keeping track of which ports are used and monitoring certain characteristics of
application communications. For example, when a client establishes a connection with a server, the
server might tell the client what application server software version it is running, and vice versa.
Information on application versions can be used to identify potentially vulnerable applications, as
well as unauthorized use of some applications.
Identifying Network Characteristics. Some IDPS sensors collect general information about
network traffic related to the configuration of network devices and hosts, such as the number of hops
between two devices. This information can be used to detect changes to the network configuration.
4.3.2 Logging Capabilities
Network-based IDPSs typically perform extensive logging of data related to detected events. This data
can be used to confirm the validity of alerts, to investigate incidents, and to correlate events between the
IDPS and other logging sources. Data fields commonly logged by network-based IDPSs include the
following:
21
In the console, the event or alert type often links to supporting information for the specific vulnerability or exploit, such as
references for additional information and associated Common Vulnerabilities and Exposures (CVE) numbers.
4-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Network-based IDPSs typically offer extensive and broad detection capabilities. Most products use a
combination of signature-based detection, anomaly-based detection, and stateful protocol analysis
techniques to perform in-depth analysis of common protocols; organizations should use network-based
IDPS products that use such a combination of techniques. The detection methods are usually tightly
interwoven; for example, a stateful protocol analysis engine might parse activity into requests and
responses, each of which is examined for anomalies and compared to signatures of known bad activity.
Some products also use the same techniques and provide the same functionality as network behavior
analysis (NBA) software; see Section 6 for additional information.
The types of events most commonly detected by network-based IDPS sensors include the following:
Application layer reconnaissance and attacks (e.g., banner grabbing, buffer overflows, format
string attacks, password guessing, malware transmission). Most network-based IDPSs analyze
several dozen application protocols. Commonly analyzed ones include Dynamic Host Configuration
Protocol (DHCP), DNS, Finger, FTP, HTTP, 22 Internet Message Access Protocol (IMAP), Internet
Relay Chat (IRC), Network File System (NFS), Post Office Protocol (POP), rlogin/rsh, Remote
Procedure Call (RPC), Session Initiation Protocol (SIP), Server Message Block (SMB), SMTP,
SNMP, Telnet, and Trivial File Transfer Protocol (TFTP), as well as database protocols, instant
messaging applications, and peer-to-peer file sharing software.
Transport layer reconnaissance and attacks (e.g., port scanning, unusual packet fragmentation,
SYN floods). The most frequently analyzed transport layer protocols are TCP and UDP.
Network layer reconnaissance and attacks (e.g., spoofed IP addresses, illegal IP header values).
The most frequently analyzed network layer protocols are IPv4, ICMP, and IGMP. Many products
are also adding support for IPv6 analysis. The level of IPv6 analysis that network-based IDPSs can
22
Although network-based IDPSs can analyze HTTP protocol activity, they usually cannot perform analysis on the use of Web
services, such as Simple Object Access Protocol (SOAP) and Extensible Markup Language (XML) messages carried over
HTTP. Security technologies known as XML gateways or XML firewalls have been created specifically to analyze Web
services activity. In addition to providing intrusion prevention functions, these technologies also perform firewalling,
authentication and authorization services, access control, and audit logging. More information on XML gateways is
available from NIST SP 800-95, Guide to Web Services Security (DRAFT), which is available at
http://csrc.nist.gov/publications/drafts.html.
4-9
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
perform varies considerably among products. Some products provide no IPv6 support or can simply
alert administrators that IPv6 activity is present. Other products can do basic processing of IPv6 and
tunneled IPv6 traffic, such as recording source and destination IP addresses, and extracting payloads
(e.g., HTTP, SMTP) for in-depth analysis. Some products can do full analysis of the IPv6 protocol,
such as confirming the validity of IPv6 options, to identify anomalous use of the protocol.
Organizations with a current or future need to monitor IPv6 activity should carefully evaluate the
IPv6 analysis capabilities of network-based IDPS products. 23
Unexpected application services (e.g., tunneled protocols, backdoors, hosts running unauthorized
application services). These are usually detected through stateful protocol analysis methods, which
can determine if the activity in a connection is consistent with the expected application protocol, or
through anomaly detection methods, which can identify changes in network flows and open ports on
hosts.
Policy violations (e.g., use of inappropriate Web sites, use of forbidden application protocols). Some
types of security policy violations can be detected by IDPSs that allow administrators to specify the
characteristics of activity that should not be permitted, such as TCP or UDP port numbers, IP
addresses, Web site names, and other pieces of data that can be identified by examining network
traffic.
Some IDPSs can also monitor the initial negotiation conducted when establishing encrypted
communications to identify client or server software that has known vulnerabilities or is misconfigured.
This can include application layer protocols such as secure shell (SSH) and Secure Sockets Layer (SSL),
and network layer virtual private networking protocols such as IP Security (IPsec).
Network-based IDPS sensors can often determine if an attack is likely to succeed. For example, as
described in Section 4.3.3.3, sensors might know which Web server software versions are running on
each of the organization’s Web servers. If an attacker launches an attack against a Web server that is not
vulnerable to the attack, then the sensor might produce a low-priority alert; if the server is thought to be
vulnerable, then the sensor might produce a high-priority alert. IDPS sensors are typically configured to
stop attacks whether or not they are likely to succeed, but an IDPS might still log the activity with
different priority levels depending on what its outcome probably would have been if not blocked.
Historically, network-based IDPSs have been associated with high rates of false positives and false
negatives. Most of the early technologies relied primarily on signature-based detection, which by itself is
accurate only for detecting relatively simple well-known threats. Newer technologies use a combination
of detection methods to increase accuracy and the breadth of detection, and generally the rates of false
positives and false negatives have declined. Another common problem with network-based IDPSs’
accuracy is that they typically require considerable tuning and customization to take into account the
characteristics of the monitored environment.
False positives and false negatives for network-based IDPS sensors can only be reduced somewhat
because of the complexity of the activities being monitored. A single sensor is often monitoring traffic
involving hundreds or thousands of internal and external hosts. The number and variety of OSs and
applications in use over the monitored network can be immense; also, OSs and applications are constantly
being changed. This makes it impossible for a sensor to understand everything it sees.
23
NIST SP 500-267, A Profile for IPv6 in the U.S. Government, Version 1.0 (DRAFT), provides recommendations for the
IPv6-handling capabilities of network-based IDPS products. The draft is available at http://www.antd.nist.gov/.
4-10
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Even worse, sensors have to monitor activity for many different combinations of servers and clients. For
example, an organization could use 10 different types and versions of Web servers, which users could
access with 50 different types and versions of Web browsers. Each combination of browser and server
could have unique communication characteristics (e.g., sequence of commands, response codes) that
could impact the accuracy of analysis. Also, different configurations and customizations could be applied
to the browsers and servers. Security controls between the servers and clients that alter network activity,
such as firewalls and proxy servers, could cause additional difficulties for sensors.
Ideally, network-based IDPSs would be able to interpret all network activity just as the endpoints do. For
example, different types of Web servers can interpret the same Web request in different ways. Stateful
protocol analysis techniques often attempt to do this by replicating the processing performed by common
types of clients and servers. This allows the sensors to improve their detection accuracy slightly. Many
attackers employ client and server-specific processing characteristics, such as handling character
encodings, in their attacks as evasion techniques. Organizations should use network-based IDPSs that can
compensate for the use of common evasion techniques.
As mentioned in Section 4.3.3.2, network-based IDPSs usually require extensive tuning and
customization to improve their detection accuracy. Examples of tuning and customization capabilities are
thresholds for port scans and application authentication attempts, blacklists and whitelists for host IP
addresses and usernames, and alert settings. Some products also provide code editing features, which is
usually limited to signatures but in some cases may allow access to additional code, such as programs
used to perform stateful protocol analysis.
Some network-based IDPSs can use information regarding the organization’s hosts to improve detection
accuracy. For example, an IDPS might allow administrators to specify the IP addresses used by the
organization’s Web servers, mail servers, and other common types of hosts, and also specify the types of
services provided by each host (e.g., the Web server application type and version run by each Web
server). This allows the IDPS to better prioritize alerts; for example, an alert for an Apache attack
directed at an Apache Web server would have a higher priority than the same attack directed at a different
type of Web server. Some network-based IDPSs can also import the results of vulnerability scans and use
them to determine which attacks would likely be successful if not blocked. This allows the IDPS to make
better decisions on prevention actions and prioritize alerts more accurately.
Although network-based IDPSs offer extensive detection capabilities, they do have some significant
limitations. Three of the most important are analyzing encrypted network traffic, handling high traffic
loads, and withstanding attacks against the IDPSs themselves. These limitations are discussed below.
Network-based IDPSs cannot detect attacks within encrypted network traffic, including virtual private
network (VPN) connections, HTTP over SSL (HTTPS), and SSH sessions. As previously mentioned,
some network-based IDPSs can do some analysis of the setup of encrypted connections, which can
identify that the client or server software has known vulnerabilities or is misconfigured. To ensure that
sufficient analysis is performed on payloads within encrypted network traffic, organizations should use
IDPSs that can analyze the payloads before they are encrypted or after they are decrypted. Examples
include placing network-based IDPS sensors to monitor unencrypted traffic (e.g., traffic that entered an
organization through a VPN gateway and has since been decrypted) and using host-based IDPS software
to monitor activity within the source or destination host.
4-11
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Network-based IDPSs may be unable to perform full analysis under high loads. Passive IDPS sensors
might drop some packets, which could cause some incidents to go undetected, especially if stateful
protocol analysis methods are in use. For inline IDPS sensors, dropping packets under high loads causes
disruptions in network availability; also, delays in processing packets could cause unacceptably high
latency. To avoid this, organizations using inline IDPS sensors should select ones that can recognize high
load conditions and either pass certain types of network traffic through the sensor without performing full
analysis (i.e., partial or no analysis) or drop low-priority traffic to reduce load. Many vendors attempt to
optimize their sensors to provide better performance under high loads by taking measures such as using
specialized hardware (e.g., high-bandwidth network cards) and recompiling components of their software
to incorporate settings and other customizations made by administrators. Although vendors typically rate
their sensors by maximum bandwidth capability, the actual capacity of any product depends on several
factors, including the following:
The network, transport, and application layer protocols in use, and the depth of analysis performed for
each protocol. Vendors often rate their products based on their ability to perform reasonable analysis
of a “typical” mix of protocols. The level of analysis that an individual organization wants to perform
and the organization’s mix of protocols may vary significantly from the tested conditions.
The longevity of connections. For example, a sensor might have less overhead for one long-term
connection than several consecutive short-term connections.
The number of simultaneous connections. Sensors usually are limited as to how many connections
for which they can track state.
IDPS sensors are susceptible to various types of attacks. Attackers can generate unusually large volumes
of traffic, such as distributed denial of service (DDoS) attacks, and anomalous activity (e.g., unusually
fragmented packets) to attempt to exhaust a sensor’s resources or cause it to crash. Another attack
technique, known as blinding, generates network traffic that is likely to trigger many IDPS alerts in a
short period of time; typically, the network traffic is specially crafted to take advantage of typical
configurations of IDPS sensors. In many cases, the blinding traffic is not intended to actually attack any
targets. An attacker runs the “real” attack separately at the same time as the blinding traffic. The
attacker’s goal is that the blinding traffic will either cause the IDPS to fail in some way or generate so
many alerts that the alerts for the real attack will go unnoticed. Many IDPS sensors can recognize the use
of common DDoS and blinding tools and techniques; the sensors can alert administrators to the attack and
then ignore the rest of the activity, reducing the load on the sensors. Organizations should select products
that offer features that make them resistant to failure due to attack.
Network-based IDPS sensors offer various prevention capabilities, including the following (grouped by
sensor type):
Passive Only
– Ending the Current TCP Session. A passive sensor can attempt to end an existing TCP session
by sending TCP reset packets to both endpoints; this is sometimes called session sniping. 24 The
sensor does this to make it appear to each endpoint that the other endpoint is trying to end the
connection. The goal is for one of the endpoints to terminate the connection before an attack can
succeed. Unfortunately, in many cases the reset packets are not received in time because the
24
An inline sensor could potentially use this technique, but it is much weaker than other methods that inline sensors can
perform, so in practice session sniping is rarely used on inline sensors.
4-12
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
attack traffic has to be monitored and analyzed, the attack detected, and the packets sent across
networks to the endpoints. Also, since this technique is only applicable to TCP, it cannot be used
for attacks carried in other types of packets, including UDP and ICMP. Session sniping is not
widely used any more because other, newer prevention capabilities are more effective.
Inline Only
– Performing Inline Firewalling. Most inline IDPS sensors offer firewall capabilities that can be
used to drop or reject suspicious network activity.
– Throttling Bandwidth Usage. If a particular protocol is being used inappropriately, such as for
a DoS attack, malware distribution, or peer-to-peer file sharing, some inline IDPS sensors can
limit the percentage of network bandwidth that the protocol can use. This prevents the activity
from negatively impacting bandwidth usage for other resources.
– Altering Malicious Content. As described in Section 2.2, some inline IDPS sensors can sanitize
part of a packet, which means that malicious content is replaced with benign content and the
sanitized packet sent to its destination. A sensor that acts as a proxy might perform automatic
normalization of all traffic, such as repackaging application payloads in new packets. This has
the effect of sanitizing some attacks involving packet headers and some application headers,
whether or not the IDPS has detected an attack. Some sensors can also strip infected attachments
from e-mails and remove other discrete pieces of malicious content from network traffic.
Both Passive and Inline
– Reconfiguring Other Network Security Devices. Many IDPS sensors can instruct network
security devices such as firewalls, routers, and switches to reconfigure themselves to block
certain types of activity or route it elsewhere. This can be helpful in several situations, such as
keeping an external attacker out of a network and quarantining an internal host that has been
compromised (e.g., moving it to a quarantine VLAN). This prevention technique is useful only
for network traffic that can be differentiated by packet header characteristics typically recognized
by network security devices, such as IP addresses and port numbers.
– Running a Third-Party Program or Script. Some IDPS sensors can run an administrator-
specified script or program when certain malicious activity is detected. This could trigger any
prevention action desired by the administrator, such as reconfiguring other security devices to
block the malicious activity. Third-party programs or scripts are most commonly used when the
IDPS does not support the prevention actions that administrators want to have performed.
Most IDPS sensors allow administrators to specify the prevention capability configuration for each type
of alert. This usually includes enabling or disabling prevention, as well as specifying which prevention
capability should be used. Some IDPS sensors have a learning or simulation mode that suppresses all
prevention actions, and instead indicates when a prevention action would have been performed. This
allows administrators to monitor and fine-tune the prevention capabilities’ configuration before enabling
them, which reduces the risk of inadvertently blocking benign activity.
4.4 Management
Most network-based IDPS products offer similar management capabilities. This section discusses major
aspects of management—implementation, operation, and maintenance—and provides recommendations
for performing them effectively and efficiently.
4-13
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
4.4.1 Implementation
Once a network-based IDPS product has been selected, the administrators need to design an architecture,
perform IDPS component testing, secure the IDPS components, and then deploy them. The following
items list additions to the material presented in Section 3.3.1:
Architecture Design. A consideration specific to network-based IDPSs is where the sensors should
be placed on the network, which includes deciding how many sensors are needed, which sensors
should be inline and which should be passive, and how passive sensors should be connected to the
network (e.g., IDS load balancer, network tap, switch spanning port).
Component Testing and Deployment. Implementing a network-based IDPS can necessitate brief
network outages, particularly when deploying inline sensors. However, passive sensor deployment
can also cause outages for several reasons, including installation of network taps and IDS load
balancers, and reconfiguration of switches to activate spanning port functions.
Securing the IDPS Components. Administrators should ensure that for both passive and inline
sensors, IP addresses are not assigned to the network interfaces used to monitor network traffic,
except for network interfaces also used for IDPS management. Operating a sensor without IP
addresses assigned to its monitoring interfaces is known as operating in stealth mode. Stealth mode
improves the security of the IDPS sensors because it prevents other hosts from initiating connections
to them. This conceals the sensors from attackers and thus limits their exposure to attacks. However,
attackers may be able to identify the existence of an IDPS sensor and determine which product is in
use by analyzing the characteristics of its prevention actions. Such analysis might include monitoring
protected networks, and determining which scan patterns trigger particular responses and what values
are set in certain packet header fields.
4.4.2 Operation and Maintenance
The operation and maintenance of network-based IDPSs is performed in the same manner as that
documented in the general information provided in Section 3.3.2.
4.5 Summary
A network-based IDPS monitors network traffic for particular network segments or devices and analyzes
network, transport, and application protocols to identify suspicious activity. Network-based IDPS
components are similar to other types of IDPS technologies, except for the sensors. A network-based
IDPS sensor monitors and analyzes network activity on one or more network segments. Sensors are
available in two formats: appliance-based sensors, which are comprised of specialized hardware and
software optimized for IDPS sensor use, and software-only sensors, which can be installed onto hosts that
meet certain specifications.
Organizations should consider using management networks for their network-based IDPS deployments
whenever feasible. If an IDPS is deployed without a separate management network, organizations should
consider whether or not a VLAN is needed to protect the IDPS communications. In addition to choosing
the appropriate network for the components, administrators also need to decide where the IDPS sensors
should be located. Sensors can be deployed in one of two modes: inline sensors are deployed so that the
network traffic they monitor must pass through them, while passive sensors are deployed so that they
monitor copies of the actual network traffic. Generally, organizations should deploy inline sensors if
prevention methods will be used and passive sensors if they will not.
4-14
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Network-based IDPSs provide a wide variety of security capabilities. Some products can collect
information on hosts such as which OSs they use and which application versions they use that
communicate over networks. Network-based IDPSs can also perform extensive logging of data related to
detected events; most can also perform packet captures. Network-based IDPSs usually offer extensive
and broad detection capabilities. Most products use a combination of signature-based detection, anomaly-
based detection, and stateful protocol analysis to perform in-depth analysis of common protocols;
organizations should use network-based IDPS products that provide such a combination of detection
features, because the combination increases detection accuracy. Organizations should also use network-
based IDPSs that can compensate for the use of common evasion techniques, which further improves
detection accuracy.
Network-based IDPSs have some significant limitations. They cannot detect attacks within encrypted
network traffic; accordingly, either they should be deployed where they can monitor traffic before
encryption or after decryption, or host-based IDPSs should be used on endpoints to monitor unencrypted
activity. Network-based IDPSs are often unable to perform full analysis under high loads; organizations
using inline sensors should select those that can recognize high load conditions and either pass certain
types of traffic without performing full analysis or drop low-priority traffic to reduce load. Another
limitation of network-based IDPSs is that they are susceptible to various types of attacks, most involving
large volumes of traffic. Organizations should select products that offer features designed to make them
resistant to failure due to attack. Organizations should also ensure that IP addresses are not assigned to
the network interfaces of passive or inline sensors used to monitor network traffic, except for network
interfaces used for both traffic monitoring and IDPS management.
Network-based IDPS sensors offer various prevention capabilities. Many passive sensors can attempt to
end TCP sessions by resetting them, but this technique often does not work in time, and it is not
applicable to non-TCP sessions, such as UDP and ICMP. Inline sensor-specific techniques include
performing inline firewalling, throttling bandwidth usage, and altering malicious content, all of which are
helpful for certain circumstances. Both passive and inline sensors can reconfigure other network security
devices; they can also run third-party programs or scripts to initiate additional prevention actions.
4-15
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
4-16
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
5. Wireless IDPS
A wireless IDPS monitors wireless network traffic and analyzes its wireless networking protocols to
identify suspicious activity involving the protocols themselves. This section provides a detailed
discussion of wireless IDPS technologies. First, it contains a brief overview of wireless networking,
which is background material for understanding the rest of the section. Next, it covers the major
components of wireless IDPSs and explains the architectures typically used for deploying the
components. It also examines the security capabilities of the technologies in depth, including the
methodologies they use to identify and stop suspicious activity. The rest of the section discusses the
management capabilities of the technologies, including recommendations for implementation and
operation.
Wireless networking enables devices with wireless capabilities to use computing resources without being
physically connected to a network. The devices simply need to be within a certain distance (known as the
range) of the wireless network infrastructure. A wireless local area network (WLAN) is a group of
wireless networking nodes within a limited geographic area that is capable of exchanging data through
radio communications. WLANs are typically used by devices within a fairly limited range, such as an
office building or corporate campus, and are implemented as extensions to existing wired local area
networks (LAN) to provide enhanced user mobility.
This section provides a brief introduction to wireless networking. Section 5.1.1 provides an overview of
the most commonly used WLAN standards. Section 5.1.2 discusses the fundamental components of
WLANs. Finally, Section 5.1.3 briefly examines the major threats against WLANs. This material is
intended only to provide a high-level overview of wireless networking as background information for the
wireless IDPS material in the rest of the section. 25
Most WLANs use the Institute of Electrical and Electronics Engineers (IEEE) 802.11 family of WLAN
standards. 26 The most commonly used WLAN radio transmission standards are IEEE 802.11b and IEEE
802.11g, which use the 2.4 gigahertz (GHz) band, and IEEE 802.11a, which uses the 5 GHz band. IEEE
802.11a, b, and g include security features known collectively as Wired Equivalent Privacy (WEP).
Unfortunately, WEP has several well-documented security problems. To overcome these, IEEE 802.11i
was created; it specifies security components that work in conjunction with IEEE 802.11a, b, and g.
Another set of WLAN standards has been created by a non-profit industry consortium of WLAN
equipment and software vendors called the Wi-Fi Alliance. 27 While IEEE was working on finalizing the
802.11i standard, the Alliance created an interim solution called Wi-Fi Protected Access (WPA).
Published in October 2002, WPA is essentially a subset of the draft IEEE 802.11i requirements available
at that time. WPA provides stronger security for WLAN communications than WEP. In conjunction
25
This publication does not address IDPS technologies for other forms of wireless networking, such as Bluetooth. Bluetooth
IDPS products have just started to become available, and as of late 2006 they offer few capabilities (device detection,
service enumeration, limited vulnerability scanning). It also does not address technologies based on the IEEE 802.11n
WLAN standard, which as of late 2006 has not been finalized. It is expected that the recommendations in this section
should generally be applicable to wireless IDPS technologies for IEEE 802.11n-based WLANs.
26
For more information on the IEEE 802.11 standards and other aspects of wireless network security, see NIST SP 800-97,
Establishing Wireless Robust Security Networks: A Guide to IEEE 802.11i, and NIST SP 800-48, Wireless Network
Security: 802.11, Bluetooth and Handheld Devices (http://csrc.nist.gov/publications/nistpubs/index.html).
27
For more information on the Wi-Fi Alliance, visit their Web site at http://www.wi-fi.org/.
5-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
with the ratification of the IEEE 802.11i amendment, the Wi-Fi Alliance introduced WPA2, its term for
interoperable equipment that is capable of supporting IEEE 802.11i requirements. WPA2 offers stronger
security controls than either WPA or WEP.
Station (STA). A STA is a wireless endpoint device. Typical examples of STAs are laptop
computers, personal digital assistants (PDA), mobile phones, and other consumer electronic devices
with IEEE 802.11 capabilities.
Access Point (AP). 28 An AP logically connects STAs with a distribution system (DS), which is
typically an organization’s wired infrastructure. The DS is the means by which STAs can
communicate with the organization’s wired LANs and external networks such as the Internet. Figure
5-1 shows an example of how APs, STAs, and DSs are related.
Some WLANs also use wireless switches. A wireless switch is a device that acts as an intermediary
between APs and the DS. The purpose of the switch is to assist administrators in managing the WLAN
infrastructure. In WLANs without wireless switches, the APs connect directly to the DS.
The IEEE 802.11 standard also defines the following two WLAN architectures:
Ad Hoc Mode. The ad hoc mode does not use APs. Ad hoc mode, also known as peer-to-peer mode,
involves two or more STAs communicating directly with one another.
Infrastructure Mode. In infrastructure mode, an AP connects wireless STAs to a DS, typically a
wired network.
28
Technically, APs are also STAs. Some literature distinguishes between AP STAs and non-AP STAs. In this document, the
term STA refers to non-AP STAs only.
5-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Each AP and STA on a WLAN can be identified by its media access control (MAC) address, which is a
unique 48-bit value that is assigned to a wireless network interface card. Part of the MAC address can be
used to identify the card’s vendor; the rest of the address acts as a serial number from the vendor. Ideally,
MAC addresses could be used to uniquely identify every wireless device; however, it is relatively trivial
to spoof a MAC address.
Nearly all organization WLANs use infrastructure mode. Each AP in a WLAN has a name assigned to it
called a service set identifier (SSID). The SSID allows STAs to distinguish one WLAN from another.
SSIDs are broadcast in plaintext by APs, so any listening wireless device can easily learn the SSID for
each WLAN in its range. 29 Organizations may have no WLANs, one WLAN, or multiple WLANs. Also,
many organizations have facilities that are within range of other organizations’ WLANs.
Although wireless and wired networks face the same general types of threats, the relative risk of some
threats varies significantly. For example, wireless attacks typically require the attacker or a device placed
by the attacker to be within close physical proximity to the wireless network; many attacks on wired
networks can be performed remotely from any location. However, many WLANs are configured so that
they do not require any authentication or require only weak forms of authentication; this makes it much
easier for local attackers to perform several types of attacks, such as a man-in-the-middle attack.
Most WLAN threats involve an attacker with access to the radio link between a STA and an AP (or
between two STAs, in ad hoc mode). Many attacks rely on an attacker’s ability to intercept network
communications or inject additional messages into them. This highlights the most significant difference
between protecting wireless and wired LANs: the relative ease of accessing and altering network
communications. In a wired LAN, an attacker would have to gain physical access to the LAN or remotely
compromise systems on the LAN; in a wireless LAN, an attacker simply needs to be within range of the
WLAN infrastructure. 30
This section describes the major components of typical wireless IDPS solutions and illustrates the most
common network architectures for these components. It also provides recommendations for the
placement of certain components.
The typical components in a wireless IDPS are the same as a network-based IDPS: consoles, database
servers (optional), management servers, and sensors. All of the components except sensors have
essentially the same functionality for both types of IDPSs. Wireless sensors perform the same basic role
as network-based IDPS sensors, but they function very differently because of the complexities of
monitoring wireless communications.
Unlike a network-based IDPS, which can see all packets on the networks it monitors, a wireless IDPS
works by sampling traffic. There are two frequency bands to monitor (2.4 GHz and 5 GHz), and each
29
Two WLANs within range of each other could have the same SSID. In such a case, the WLANs could be distinguished
through the MAC addresses of their APs.
30
More details on threats against WLANs are available from NIST SP 800-97, Establishing Wireless Robust Security
Networks: A Guide to IEEE 802.11i and NIST SP 800-48, Wireless Network Security: 802.11, Bluetooth and Handheld
Devices (http://csrc.nist.gov/publications/nistpubs/index.html).
5-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
band is separated into channels. 31 It is not currently possible for a sensor to monitor all traffic on a band
simultaneously; a sensor has to monitor a single channel at a time. When the sensor is ready to monitor a
different channel, the sensor must shut its radio off, change the channel, then turn its radio on. The longer
a single channel is monitored, the more likely it is that the sensor will miss malicious activity occurring
on other channels. To avoid this, sensors typically change channels frequently, which is known as
channel scanning, so that they can monitor each channel a few times per second. To reduce or eliminate
channel scanning, specialized sensors are available that use several radios and high-power antennas, with
each radio/antenna pair monitoring a different channel. Because of their higher sensitivities, the high-
power antennas also have a larger monitoring range than regular antennas. Some implementations
coordinate scanning patterns among sensors with overlapping ranges so that each sensor needs to monitor
fewer channels. 32
Dedicated. A dedicated sensor is a device that performs wireless IDPS functions but does not pass
network traffic from source to destination. Dedicated sensors are often completely passive,
functioning in a radio frequency (RF) monitoring mode to sniff wireless network traffic. Some
dedicated sensors perform analysis of the traffic they monitor, while other sensors forward the
network traffic to a management server for analysis. The sensor is typically connected to the wired
network (e.g., Ethernet cable between the sensor and a switch). Dedicated sensors are usually
designed for one of two deployment types:
– Fixed—the sensor is deployed to a particular location. Such sensors are typically dependent on
the organization’s infrastructure (e.g., power, wired network). 33 Fixed sensors are usually
appliance-based.
31
IEEE 802.11b and g support 14 channels: 11 authorized for U.S. use and 3 authorized for international use. IEEE 802.11a
supports 12 channels authorized for U.S. use and 4 channels authorized for international use. Some attackers use unusual
channels or non-IEEE 802.11 frequency bands, such as 900 MHz or 4.9 GHz, because their activity is less likely to be
detected than the use of the typical WLAN frequencies and channels. For example, an attacker who can gain unauthorized
physical access to a wired network could install a wireless device that can subsequently transmit information from the
organization to the attacker over an atypical frequency. Spectrum analyzer products can monitor activity on different
frequency bands to identify attacks and to find benign sources of interference, such as cordless phones and microwaves. As
of mid-2006, few IDPS products offer any spectrum analysis capabilities. However, several companies offer mobile
handheld spectrum analyzers that can monitor common bands. A detailed discussion of them is outside the scope of this
document.
32
Organizations need to determine which channels should be monitored. As previously explained, attackers often use unusual
channels, such as IEEE 802.11a, b, or g channels that are not authorized for U.S. use. Although monitoring these channels
can detect such activity, it could reduce the percentage of time monitoring the channels that are used both by the
organization’s WLANs and also typical rogue WLANs, such as unauthorized access points. Organizations should consider
the likelihood of the possible threats and choose a channel scanning plan that best addresses the threats.
33
Some sensors can use the IEEE 802.3af protocol, also known as Power over Ethernet (PoE). This allows a sensor to receive
its electrical power through the same Ethernet cable that connects it to the wired network. PoE is implemented in some
dedicated sensors and access points. More information on PoE is available at http://www.ieee802.org/3/af/index.html
34
Mobile sensors may be part of an enterprise wireless IDPS solution or may be standalone devices, managed and monitored
directly by an administrator.
5-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
malicious activity. If the IDPS only needs to monitor a single band and channel, a bundled solution
might provide reasonable security and network availability. If the IDPS has to monitor multiple
bands or channels, then the sensor needs to perform channel scanning, which will disrupt the AP
functions of the sensor by making it temporarily unavailable on its primary band and channel.
Bundled with a Wireless Switch. Wireless switches are intended to assist administrators with
managing and monitoring wireless devices; some of these switches also offer some wireless IDPS
capabilities as a secondary function. Wireless switches typically do not offer detection capabilities as
strong as bundled APs or dedicated sensors.
Because dedicated sensors can focus on detection and do not need to carry wireless traffic, they typically
offer stronger detection capabilities than wireless sensors bundled with APs or wireless switches.
However, dedicated sensors are often more expensive to acquire, install, and maintain than bundled
sensors because bundled sensors can be installed on existing hardware, whereas dedicated sensors involve
additional hardware and software. Organizations should consider both security and cost when selecting
wireless IDPS sensors.
Some vendors also have host-based wireless IDPS sensor software that can be installed on STAs, such as
laptops. The sensor software detects attacks within range of the STAs, as well as misconfigurations of the
STAs, and reports this information to management servers. The sensor software may also be able to
enforce security policies on the STAs, such as limiting access to wireless interfaces. More information on
host-based IDPS products is presented in Section 7.
Wireless IDPS components are typically connected to each other through a wired network, as shown in
Figure 5-2. As with a network-based IDPS, a separate management network or the organization’s
standard networks can be used for wireless IDPS component communications. Because there should
already be a strictly controlled separation between the wireless and wired networks, using either a
management network or a standard network should be acceptable for wireless IDPS components. Also,
some wireless IDPS sensors (particularly mobile ones) are used standalone and do not need wired
network connectivity.
5-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Choosing sensor locations for a wireless IDPS deployment is a fundamentally different problem than
choosing locations for any other type of IDPS sensor. If the organization uses WLANs, wireless sensors
should be deployed so that they monitor the RF range of the organization’s WLANs (both APs and
STAs), which often includes mobile components such as laptops and PDAs. Many organizations also
want to deploy sensors to monitor physical regions of their facilities where there should be no WLAN
activity, as well as channels and bands that the organization’s WLANs should not use, as a way of
detecting rogue APs and ad hoc WLANs. Other considerations for selecting wireless sensor locations
include the following:
Physical Security. Sensors are often deployed into open locations (e.g., hallway ceilings, conference
rooms) because their range is much greater there than in closed locations (e.g., wiring closets).
Sensors are sometimes deployed outdoors as well. 35 Generally, sensors in open interior locations and
external locations are more susceptible to physical threats than other sensors. If the physical threats
are significant, organizations might need to select sensors with anti-tamper features or deploy sensors
where they are less likely to be physically accessed (e.g., within view of a security camera).
35
Special sensors are available for outdoor use that offer better resistance to environmental threats than regular sensors.
5-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Sensor Range. The actual range of a sensor varies based on the surrounding facilities (e.g., walls,
doors). Some wireless IDPS vendors offer modeling software that can analyze building floor plans
and the attenuation characteristics of walls, doors, and other facility components to determine
effective locations for sensors. Sensor range can also vary based on the location of people within the
facility and other changing characteristics, so sensors should be deployed so that their ranges have
some overlap (e.g., at least 20%).
Wired Network Connections. The sensors typically need to be connected to the wired network. If
there is a need to deploy sensors in an area where there is no wired network, then it might be
necessary to extend the wired network into that area. This is generally a concern only if the
organization wants to monitor portions of their facilities that are outside the range of the WLAN.
Cost. Ideally, an organization could deploy sensors throughout its facilities to perform full wireless
monitoring. However, the number of sensors needed to do so can be quite large, especially in wide-
open campus environments. Organizations should compare WLAN threats to the cost of sensor
purchases, deployment, and maintenance, and develop a solution that creates an acceptable level of
risk. For example, an organization might decide to deploy fixed sensors throughout the range of the
organization’s WLANs, and to do periodic checks of other areas using mobile sensors.
AP and Wireless Switch Locations. If a bundled solution (e.g., wireless IDPS software on an AP)
would meet the organization’s other requirements, then the locations of APs and wireless switches are
particularly important because the wireless IDPS software could potentially be deployed onto those
devices.
5.3 Security Capabilities
Wireless IDPSs provide several types of security capabilities. Because wireless IDPS is a relatively new
form of IDPS, capabilities currently vary widely among products; over time, product capabilities should
become more consistent. Sections 5.3.1 through 5.3.4 describe common security capabilities, divided into
four categories: information gathering, logging, detection, and prevention, respectively.
Most wireless IDPSs can collect information on wireless devices. Examples of these information
gathering capabilities are as follows:
Identifying WLAN Devices. Most IDPS sensors can create and maintain an inventory of observed
WLAN devices, including APs, WLAN clients, and ad hoc (peer-to-peer) clients. The inventory is
usually based on SSIDs and the MAC addresses of the devices’ wireless network cards; the first
portion of each MAC address identifies the vendor of the card. 36 Some sensors can also use
fingerprinting techniques on observed traffic to verify the vendor, instead of relying on the MAC
information (which could be spoofed). The inventory can be used as a profile to identify new WLAN
devices and the removal of existing devices.
Identifying WLANs. Most IDPS sensors keep track of observed WLANs, identifying them by their
SSIDs. Administrators can then tag each entry as being an authorized WLAN, a benign neighboring
WLAN (e.g., another organization in the same building), or a rogue WLAN. This information can be
used to identify new WLANs, as well as to prioritize responses to identified events.
36
Some STAs transmit multiple SSIDs while trying to identify previously accessed WLANs.
5-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Wireless IDPSs typically perform extensive logging of data related to detected events. This data can be
used to confirm the validity of alerts, to investigate incidents, and to correlate events between the IDPS
and other logging sources. Data fields commonly logged by wireless IDPSs include the following:
Wireless IDPSs can detect attacks, misconfigurations, and policy violations at the WLAN protocol level,
primarily examining IEEE 802.11a, b, g, and i protocol communication. Wireless IDPSs do not examine
communications at higher levels (e.g., IP addresses, application payloads). Some products perform only
simple signature-based detection, while others use a combination of signature-based detection, anomaly-
based detection, and stateful protocol analysis techniques; organizations should use wireless IDPS
products that use such a combination of techniques, to achieve broader and more accurate detection. This
section discusses the following aspects of detection capabilities:
The types of events most commonly detected by wireless IDPS sensors include the following:
Unauthorized WLANs and WLAN devices. Through their information gathering capabilities, most
wireless IDPS sensors can detect rogue APs, unauthorized STAs, and unauthorized WLANs (both
infrastructure mode and ad hoc mode).
Poorly secured WLAN devices. Most wireless IDPS sensors can identify APs and STAs that are not
using the proper security controls. This includes detecting misconfigurations and the use of weak
WLAN protocols and protocol implementations. This is accomplished by identifying deviations from
organization-specific policies for settings such as encryption, authentication, data rates, SSID names,
and channels. For example, a sensor could detect that a STA is using WEP instead of WPA2 or IEEE
37
Some products may use identifiers from the Wireless Vulnerabilities & Exploits (WVE) database, which contains
information on wireless protocol and product vulnerabilities and known exploits for these vulnerabilities. The WVE
database is located at http://www.wve.org/.
5-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
802.11i. The majority of types of events that can be detected by wireless IDPSs fall into this
detection category.
Unusual usage patterns. Some sensors can use anomaly-based detection methods to detect unusual
WLAN usage patterns. For example, if many more STAs than usual are using a particular AP, or
there is a much higher than usual amount of network traffic between a STA and AP, one of the
devices might have been compromised, or unauthorized parties might be using the WLAN. Many
sensors can identify failed attempts to join the WLAN, such as alerting on several failed attempts in a
short period of time, which could indicate an attempt to gain unauthorized access to the WLAN.
Some sensors can also alert if any WLAN activity is detected during off-hours periods.
The use of wireless network scanners (e.g., war driving tools). Such scanners are used to identify
unsecured or weakly secured WLANs. Wireless IDPS sensors can detect only the use of active
scanners—scanners that generate wireless network traffic. They cannot detect the use of passive
sensors that simply monitor and analyze observed traffic. 38
Denial of service (DoS) attacks and conditions (e.g., network interference). DoS attacks include
logical attacks such as flooding, which involves sending large numbers of messages to an AP at a
high rate, and physical attacks such as jamming, which involves emitting electromagnetic energy on
the WLAN’s frequencies to make the frequencies unusable by the WLAN. DoS attacks can often be
detected through stateful protocol analysis and anomaly detection methods, which can determine if
the observed activity is consistent with the expected activity. Many denial of service attacks are
detected by counting events during periods of time and alerting when threshold values are exceeded.
For example, a large number of events involving the termination of wireless network sessions can
indicate a DoS attack.
Impersonation and man-in-the-middle attacks. Some wireless IDPS sensors can detect when a
device is attempting to spoof the identity of another device. This is done by identifying differences in
the characteristics of the activity, such as certain values in frames.
Most wireless IDPS sensors can identify the physical location of a detected threat by using
triangulation—estimating the threat’s approximate distance from multiple sensors by the strength of the
threat’s signal received by each sensor, then calculating the physical location at which the threat would be
the estimated distance from each sensor. This allows an organization to send physical security staff to the
location to address the threat. Wireless IDPS products that can use building floor plans can also
determine if the threat is inside or outside a building, or if it is in a public area or secured area. This
information is helpful not only in finding and stopping the threat, but also in prioritizing the response to
the threat. Wireless IDPS sensors can set the priority of alerts based in part on the location of each threat.
Handheld IDPS sensors can also be used to pinpoint a threat’s location, particularly if fixed sensors do
not offer triangulation capabilities or if the threat is moving.
Compared to other forms of IDPS, wireless IDPS is generally more accurate; this is largely due to its
limited scope (analyzing wireless networking protocols). False positives are most likely to be caused by
anomaly-based detection methods, especially if threshold values are not properly maintained. Although
many alerts might occur based on benign activity, such as another organization’s WLAN being within
range of the organization’s WLANs, these alerts are not truly false positives because they are accurately
detecting an unknown WLAN within the organization’s facilities.
38
In many cases, the most effective way to identify the use of passive scanners is through physical security controls, such as
seeing individuals with computers and antennas in proximity to the organization’s facilities.
5-9
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Wireless IDPS technologies usually require some tuning and customization to improve their detection
accuracy. The main effort is in specifying which WLANs, APs, and STAs are authorized, and in entering
the policy characteristics into the wireless IDPS software. Because wireless IDPSs are only examining
wireless network protocols, not higher level protocols (e.g., application), there are generally not a large
number of alert types, and consequently not many customizations or tunings available. Some wireless
IDPSs offer industry-specific templates that can be helpful in establishing base policies.
Wireless IDPSs offer some customization features. Most have thresholds that can be used for anomaly-
based detection. Blacklists and whitelists are used to hold lists of known malicious and benign WLAN
devices, respectively. The lists can also be used to record authorized or unauthorized WLAN NIC
vendors; alerts can be generated when any NICs not on the authorized list are used for APs or STAs.
Individual alerts can be customized, just as they can for network-based IDPSs. Code editing is not
available for most products, although some vendors allow administrators to enter complex logical
expressions to tune certain detection capabilities.
Besides reviewing tuning and customizations periodically to ensure that they are still accurate,
administrators should also ensure that changes to building plans are incorporated occasionally. This is
needed for accurate identification of the physical location of threats and accurate planning of sensor
deployments.
Although wireless IDPSs offer robust detection capabilities, they do have some significant limitations.
Three of the most important are being unable to detect certain wireless protocol attacks, being susceptible
to evasion techniques, and being unable to withstand attacks against the IDPSs themselves. These
limitations are discussed in detail below.
Wireless IDPSs cannot detect certain types of attacks against wireless networks. An attacker can
passively monitor wireless traffic, which is not detectable by wireless IDPSs. If weak security methods
are being used (e.g., WEP), the attacker can then perform offline processing of that collected traffic to
find the encryption key used to provide security for the wireless traffic. With this key, the attacker can
decrypt the traffic that was already collected, as well as any other traffic that is collected from the same
WLAN. Wireless IDPSs cannot fully compensate for the use of insecure wireless networking protocols.
Another problem with some wireless IDPS sensors is the use of evasion techniques. Attackers can
identify the wireless IDPS product in use by various means, including a physical survey of the area in
which the sensors are deployed, and the use of fingerprinting techniques that can identify the product in
use by the characteristics of its prevention actions (see Section 5.3.4 for information on prevention).
Once an attacker has identified the product, evasion techniques can be used that take advantage of the
product’s channel scanning scheme. One example is performing attacks in very short bursts on channels
that are not currently being monitored. An attacker could also launch attacks on two channels at the same
time. If the wireless IDPS sensor detects the first attack, it cannot detect the second attack unless it scans
away from the channel of the first attack. Another drawback of channel scanning is the impact it could
have on network forensics. Since each sensor sees only a fraction of the activity on each channel, the
forensic data is quite incomplete, making it considerably more difficult to analyze.
Wireless IDPS sensors are also susceptible to attack. The same denial of service attacks (both logical and
physical) that attempt to disrupt WLANs can also disrupt sensor functions. Sensors are also often
particularly susceptible to physical attack because they are usually located in hallways, conference rooms,
5-10
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
and other open areas. Some sensors have anti-tamper features, such as being designed to look like fire
alarms or regular APs, that can reduce the likelihood that they will be attacked. All sensors are
susceptible to physical attacks such as jamming that disrupt RF; there is no defense against such attacks
other than to establish a physical perimeter around the facility so that attackers cannot get close enough to
the WLAN to jam it.
Wireless. Some sensors can terminate connections between a rogue or misconfigured STA and an
authorized AP or between an authorized STA and a rogue or misconfigured AP through the air. This
is typically done by sending messages to the endpoints, telling them to deassociate the current
session. The sensor then refuses to permit a new connection to be established.
Wired. Some sensors can instruct a switch on the wired network to block network activity involving
a particular STA or AP based on the device’s MAC address or switch port. For example, if a STA is
sending attacks to a server on the wired network, a sensor could direct a wired switch to block all
activity to and from the STA. This technique is only effective for blocking the malicious STA or
AP’s wired network communications. It will not stop a STA or AP from continuing to perform
malicious actions through wireless protocols.
Most IDPS sensors allow administrators to specify the prevention capability configuration for each type
of alert. This usually includes enabling or disabling prevention, as well as specifying which type of
prevention capability should be used. Some IDPS sensors have a learning or simulation mode that
suppresses all prevention actions, and instead indicates when a prevention action would have been
performed. This allows administrators to monitor and fine-tune the prevention capabilities’ configuration
before enabling prevention, which reduces the risk of performing prevention actions on benign activity.
An important consideration is the effect that prevention actions can have on sensor monitoring. For
example, if a sensor is transmitting signals to terminate connections, it may not be able to perform
channel scanning to monitor other communications until it has completed the prevention action. To
mitigate this, some sensors have two radios—one for monitoring and detection, and another for
performing prevention actions. When selecting sensors, organizations should consider what prevention
actions may need to be performed and how the sensor’s detection capabilities could be affected by
performing prevention actions.
5.4 Management
Most wireless IDPS products offer similar management capabilities. This section discusses major aspects
of management—implementation, operation, and maintenance—and provides recommendations for
performing them effectively and efficiently.
5.4.1 Implementation
Once a wireless IDPS product has been selected, the administrators need to design an architecture,
perform IDPS component testing, secure the IDPS components, and then deploy them. The only addition
to the material presented in Section 3.3.1 involves component testing and deployment. Implementing a
wireless IDPS can necessitate brief wireless network outages if existing APs or wireless switches need to
be upgraded or have IDPS software installed. Generally, the deployment of dedicated sensors causes no
network outages.
5-11
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
The operation and maintenance of a wireless IDPS solution is nearly identical to that of a network-based
IDPS solution. Wireless IDPS consoles offer similar management, monitoring, analysis, and reporting
capabilities. One significant difference is that wireless IDPS consoles can display the physical location of
threats. A minor difference is that because wireless IDPS sensors detect a relatively small variety of
events, compared to other types of IDPSs, they tend to have signature updates less frequently.
5.5 Summary
A wireless IDPS monitors wireless network traffic and analyzes its wireless networking protocols to
identify suspicious activity. The typical components in a wireless IDPS are the same as a network-based
IDPS: consoles, database servers (optional), management servers, and sensors. However, unlike a
network-based IDPS sensor, which can see all packets on the networks it monitors, a wireless IDPS
sensor works by sampling traffic because it can only monitor a single channel at a time. The longer a
single channel is monitored, the more likely it is that the sensor will miss malicious activity occurring on
other channels. To avoid this, sensors typically change channels frequently, so that they can monitor each
channel a few times per second.
Wireless sensors are available in multiple forms. A dedicated sensor is a fixed or mobile device that
performs wireless IDPS functions but does not pass network traffic from source to destination. The other
wireless sensor forms are bundled with access points (AP) or wireless switches. Because dedicated
sensors can focus on detection and do not need to carry wireless traffic, they typically offer stronger
detection capabilities than wireless sensors bundled with access points or wireless switches. However,
dedicated sensors are often more expensive to acquire, install, and maintain than bundled sensors because
bundled sensors can be installed on existing hardware, whereas dedicated sensors involve additional
hardware and software. Organizations should consider both security and cost when selecting wireless
IDPS sensors.
Wireless IDPS components are typically connected to each other through a wired network. Because there
should already be a strictly controlled separation between the wireless and wired networks, using either a
management network or a standard network should be acceptable for wireless IDPS components.
Choosing sensor locations for a wireless IDPS deployment is a fundamentally different problem than
choosing locations for any other type of IDPS sensor. If the organization uses wireless local area
networks (WLAN), wireless sensors should be deployed so that they monitor the range of the WLANs.
Many organizations also want to deploy sensors to monitor parts of their facilities where there should be
no WLAN activity, as well as channels and bands that the organization’s WLANs should not use. Other
considerations for selecting sensor locations include physical security, sensor range, wired network
connection availability, cost, and AP and wireless switch locations.
Wireless IDPSs provide several types of security capabilities. Most can collect information on observed
wireless devices and WLANs and perform extensive logging of event data. Wireless IDPSs can detect
attacks, misconfigurations, and policy violations at the WLAN protocol level. Organizations should use
wireless IDPS products that use a combination of detection techniques to achieve broader and more
accurate detection. Examples of events detected by wireless IDPSs are unauthorized WLANs and WLAN
devices, poorly secured WLAN devices, unusual usage patterns, the use of active wireless network
scanners, denial of service attacks, and impersonation and man-in-the-middle attacks. Most wireless
IDPS sensors can also identify the physical location of a detected threat by using triangulation.
Compared to other forms of IDPS, wireless IDPS is generally more accurate; this is largely due to its
limited scope (analyzing wireless networking protocols). Wireless IDPSs usually require some tuning
5-12
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
and customization to improve their detection accuracy. The main effort is in specifying which WLANs,
APs, and STAs are authorized, and in entering the policy characteristics into the wireless IDPS software.
Besides reviewing tuning and customizations periodically to ensure that they are still accurate,
administrators should also ensure that changes to building plans are incorporated occasionally. This is
needed for accurate identification of the physical location of threats and accurate planning of sensor
deployments.
Although wireless IDPSs offer robust detection capabilities, they do have some significant limitations.
Wireless IDPSs cannot detect certain types of attacks against wireless networks, such as attacks involving
passive monitoring and offline processing of wireless traffic. Wireless IDPSs are also susceptible to
evasion techniques, especially those involving knowledge of a product’s channel scanning scheme.
Channel scanning can also impact network forensics because each sensor sees only a fraction of the
activity on each channel. Wireless IDPS sensors are also susceptible to denial of service attacks and
physical attacks.
Wireless IDPS sensors can offer intrusion prevention capabilities. Some sensors can instruct endpoints to
terminate a session and prevent a new session from being established. Some sensors can instruct a switch
on the wired network to block network activity for a particular wireless endpoint; however, this method
can only block wired network communications and will not stop an endpoint from continuing to perform
malicious actions through wireless protocols. Most IDPS sensors allow administrators to specify the
prevention capability configuration for each type of alert. Prevention actions can affect sensor
monitoring; for example, if a sensor is transmitting signals to terminate connections, it may not be able to
perform channel scanning to monitor other communications until it has completed the prevention action.
To mitigate this, some sensors have two radios—one for monitoring and detection, and another for
performing prevention actions. When selecting sensors, organizations should consider what prevention
actions may need to be performed and how the sensor’s detection capabilities could be affected by
performing prevention actions.
5-13
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
5-14
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
A network behavior analysis (NBA) system examines network traffic or statistics on network traffic to
identify unusual traffic flows, such as distributed denial of service (DDoS) attacks, certain forms of
malware (e.g., worms, backdoors), and policy violations (e.g., a client system providing network services
to other systems). 39 This section provides a detailed discussion of NBA technologies. First, it covers the
major components of the NBA technologies and explains the architectures typically used for deploying
the components. It also examines the security capabilities of the technologies in depth, including the
methodologies they use to identify suspicious activity. The rest of the section discusses the management
capabilities of the technologies, including recommendations for implementation and operation.
This section describes the major components of typical NBA solutions and illustrates the most common
network architectures for these components. It also provides recommendations for the placement of
certain components.
NBA solutions usually have sensors and consoles, with some products also offering management servers
(which are sometimes called analyzers). NBA sensors are usually available only as appliances. Some
sensors are similar to network-based IDPS sensors in that they sniff packets to monitor network activity
on one or a few network segments. Other NBA sensors do not monitor the networks directly, but instead
rely on network flow information provided by routers and other networking devices. Flow refers to a
particular communication session occurring between hosts. There are many standards for flow data
formats, including NetFlow 40 and sFlow. 41 Typical flow data particularly relevant to intrusion detection
and prevention includes the following:
As with a network-based IDPS, a separate management network or the organization’s standard networks
can be used for NBA component communications. If sensors that collect network flow data from other
devices are used, the entire NBA solution can be logically separated from the standard networks. Figure
6-1 shows an example of an NBA network architecture.
39
Some vendors refer to NBA technology as network behavior anomaly detection (NBAD) software, network behavior
analysis and response software, or network anomaly detection software.
40
More information on NetFlow is available from RFC 3954, Cisco Systems NetFlow Services Export Version 9
(http://www.ietf.org/rfc/rfc3954.txt) and from the Cisco Web site at
http://www.cisco.com/en/US/products/ps6645/products_ios_protocol_option_home.html.
41
More information on sFlow is available at http://www.sflow.org/.
6-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
In addition to choosing the appropriate network for the components, administrators also need to decide
where the sensors should be located. Most NBA sensors can be deployed in passive mode only, using the
same connection methods (e.g., network tap, switch spanning port) as network-based IDPSs. Passive
sensors that are performing direct network monitoring should be placed so that they can monitor key
network locations, such as the divisions between networks, and key network segments, such as
demilitarized zone (DMZ) subnets. Inline sensors are typically intended for network perimeter use, so
they would be deployed in close proximity to the perimeter firewalls, often between the firewall and the
Internet border router to limit incoming attacks that could overwhelm the firewall.
6-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
NBA products provide a variety of security capabilities. Sections 6.2.1 through 6.2.4 describe common
security capabilities, divided into four categories: information gathering, logging, detection, and
prevention, respectively. Some NBA products also provide security information and event management
(SIEM) capabilities; see Section 8.2.2 for information on SIEM.
NBA technologies offer extensive information gathering capabilities, because knowledge of the
characteristics of the organization’s hosts is needed for most of the NBA product’s detection techniques.
NBA sensors can automatically create and maintain lists of hosts communicating on the organization’s
monitored networks. They can monitor port usage, perform passive fingerprinting, and use other
techniques to gather detailed information on the hosts. (As described in Section 6.2.3.1, most products
also allow administrators to specify detailed firewall ruleset-like policies for host-to-host
communications, including permitted or forbidden port numbers.) Information typically collected for
each host includes the following:
IP address
Operating system
What services it is providing, including the IP protocols and TCP and UDP ports it uses to do so
Other hosts with which it communicates, and what services it uses and which IP protocols and TCP or
UDP ports it contacts on each host.
NBA sensors constantly monitor network activity for changes to this information. Additional information
on each host’s flows is also collected on an ongoing basis; this is discussed in Section 6.2.3.
NBA technologies typically perform extensive logging of data related to detected events. This data can
be used to confirm the validity of alerts, to investigate incidents, and to correlate events between the NBA
solution and other logging sources. Data fields commonly logged by NBA software include the
following:
6-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Some NBA sensors that directly monitor network traffic are able to log limited payload information from
packets, such as authenticated user identifiers. This allows actions to be traced to specific user accounts.
NBA technologies typically have the capability to detect several types of malicious activity. Most
products use primarily anomaly-based detection, along with some stateful protocol analysis techniques, to
analyze network flows. Most NBA technologies offer no signature-based detection capability, other than
allowing administrators to manually set up custom filters that are essentially signatures to detect or stop
specific threats. This section discusses the following aspects of NBA software detection capabilities:
The types of events most commonly detected by NBA sensors include the following:
Denial of service (DoS) attacks (including distributed denial of service [DDoS] attacks). These
attacks typically involve significantly increased bandwidth usage or a much larger number of packets
or connections to or from a particular host than usual. By monitoring these characteristics, anomaly
detection methods can determine if the observed activity is significantly different than the expected
activity. Some NBA sensors are aware of the characteristics of common DoS tools and methods,
which can help them to recognize the threats more quickly and prioritize them more accurately.
Scanning. Scanning can be detected by atypical flow patterns at the application layer (e.g., banner
grabbing), transport layer (e.g., TCP and UDP port scanning), and network layer (e.g., ICMP
scanning).
Worms. Worms spreading among hosts can be detected in more than one way. Some worms
propagate quickly and use large amounts of bandwidth. Worms can also be detected because they can
cause hosts to communicate with each other that typically do not, and they can also cause hosts to use
ports that they normally do not use. Many worms also perform scanning; this can be detected as
previously explained.
Unexpected application services (e.g., tunneled protocols, backdoors, use of forbidden application
protocols). These are usually detected through stateful protocol analysis methods, which can
determine if the activity within a connection is consistent with the expected application protocol.
Policy violations. Most NBA sensors allow administrators to specify detailed policies, such as which
hosts or groups of hosts a particular system may or may not contact, and what types of activity are
permissible only during certain hours or days of the week. Most sensors also detect many possible
policy violations automatically, such as detecting new hosts or new services running on hosts, which
could be unauthorized.
Most NBA sensors can reconstruct a series of observed events to determine the origin of a threat. For
example, if worms infect a network, NBA sensors can analyze the worm’s flows and find the host on the
organization’s network that first transmitted the worm to other hosts.
6-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Because NBA sensors work primarily by detecting significant deviations from normal behavior, they are
most accurate at detecting attacks that generate large amounts of network activity in a short period of time
(e.g., DDoS attacks) and attacks that have unusual flow patterns (e.g., worms spreading among hosts).
NBA sensors are less accurate at detecting small-scale attacks, particularly if they are conducted slowly
and if they do not violate the administrator-set policies (e.g., the attack uses common ports and protocols).
Detection accuracy also varies over time. Because NBA technologies use primarily anomaly-based
detection methods, they cannot detect many attacks until they reach a point where their activity is
significantly different from what is expected. If a DoS attack starts slowly and increases in volume over
time, it is likely to be detected by NBA sensors, but the point during the attack at which the NBA
software detects it may vary considerably among NBA products. By configuring sensors to be more
sensitive to anomalous activity, alerts will be generated more quickly when attacks occur, but more false
positives are also likely to be triggered. Conversely, if sensors are configured to be less sensitive to
anomalous activity, there will be fewer false positives, but alerts will be generated more slowly, allowing
attacks to occur for longer periods of time.
False positives can also be caused by benign changes in the environment. For example, if a new service
is added to a host and a few hosts start using it, an NBA sensor is likely to detect this as anomalous.
However, typically this would be a low-priority alert, and not reported as an attack, so it is debatable
whether this can truly be considered a false positive. If a major service is moved from one host to another
and a thousand hosts start using it one day, that might inadvertently trigger an alert.
NBA technologies rely primarily on observing network traffic and developing baselines of expected flows
and inventories of host characteristics. NBA products automatically update their baselines on an ongoing
basis. As a result, typically there is not much tuning or customization to be done, other than updating
firewall ruleset-like policies that are offered by most products. Also, administrators might adjust
thresholds periodically (e.g., how much additional bandwidth usage should trigger an alert) to take into
account changes to the environment. Thresholds can often be set on a per-host basis or for administrator-
defined groups of hosts. Most NBA products also offer whitelist and blacklist capabilities for hosts and
services. Another common feature of NBA products is customization of each alert (e.g., specifying which
prevention option it should trigger). Unlike network-based IDPSs, code editing features are generally not
applicable to NBA products.
A few NBA products offer limited signature-based detection capabilities. The supported signatures tend
to be very simple, and primarily look for particular values in certain IP, TCP, UDP, or ICMP header
fields. This capability is most helpful for inline NBA sensors because they can use the signatures to find
and block attacks that a firewall or router might not be capable of blocking. For example, suppose that
there is a DDoS attack that uses a flood of specially crafted HTTP traffic against a Web server. A
firewall or router might not be able to block the attack without blocking all HTTP activity to the Web
server, but an inline NBA sensor could be configured with a customized signature to block just the attack
activity if it has a unique set of characteristics. On the other hand, an inline NBA sensor might be able to
block the attack anyway because of its flow patterns.
Besides reviewing tuning and customizations periodically to ensure that they are still accurate,
administrators should also ensure that significant changes to hosts, such as new hosts and new services,
are reflected in NBA settings. Although it might not feasible to automatically link NBA systems with
6-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
change management systems, administrators could review change management records regularly and
adjust host inventory information in the NBA to prevent false positives.
NBA technologies offer strong detection capabilities for certain types of threats, but they also have
significant limitations. Some of these limitations are described in Section 6.2.3.2. An important
limitation is the delay in detecting attacks. Some delay is inherent in anomaly detection methods that are
based on deviations from a baseline, such as increased bandwidth usage or additional connection
attempts. However, NBA technologies often have additional delay caused by their data sources,
especially when they rely on flow data from routers and other network devices. This data is often
transferred to the NBA system in batches; depending on the product’s capabilities, network capacity, and
administrator preferences, this could occur relatively frequently (e.g., every minute, every two minutes) or
relatively infrequently (e.g., every 15 minutes, every 30 minutes). Because of this delay, attacks that
occur quickly, such as malware infestations and DoS attacks, may not be detected until they have already
disrupted or damaged systems.
This delay can be avoided by using sensors that do their own packet captures and analysis instead of
relying on flow data from other devices. However, performing packet captures and analysis is much more
resource-intensive than analyzing flow data. A single sensor can analyze flow data from many networks,
or perform direct monitoring (packet captures) itself generally for a few networks at most. Therefore, to
do direct monitoring instead of using flow data, organizations might have to purchase more powerful
sensors and/or more sensors.
NBA sensors offer various intrusion prevention capabilities, including the following (grouped by sensor
type):
Passive Only
– Ending the Current TCP Session. A passive NBA sensor can attempt to end an existing TCP
session by sending TCP reset packets to both endpoints.
Inline Only
– Performing Inline Firewalling. Most inline NBA sensors offer firewall capabilities that can be
used to drop or reject suspicious network activity.
Both Passive and Inline
– Reconfiguring Other Network Security Devices. Many NBA sensors can instruct network
security devices such as firewalls and routers to reconfigure themselves to block certain types of
activity or route it elsewhere, such as a quarantine virtual local area network (VLAN).
– Running a Third-Party Program or Script. Some NBA sensors can run an administrator-
specified script or program when certain malicious activity is detected.
Most NBA sensors allow administrators to specify the prevention capability configuration for each type
of alert. This usually includes enabling or disabling prevention, as well as specifying which type of
prevention capability should be used. Most NBA system implementations use prevention capabilities in a
limited fashion or not at all because of false positives; blocking a single false positive could cause major
6-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
disruptions in network communications. Prevention capabilities are most often used for NBA sensors
when blocking a specific known threat, such as a new worm.
6.3 Management
Most NBA products offer similar management capabilities. This section discusses major aspects of
management—implementation, operation, and maintenance—and provides recommendations for
performing them effectively and efficiently.
6.3.1 Implementation
Once an NBA product has been selected, the administrators need to design an architecture, perform NBA
component testing, secure the NBA components, and then deploy them. The only addition to the material
presented in Section 3.3.1 involves component testing and deployment. When NBA components are
being deployed to production networks, organizations should typically install the sensors in a relatively
short period of time, so that they can all build their inventories and generate their initial baselines at the
same time. Detection accuracy is likely to be decreased during implementation and initial usage because
the sensors will have substantially incomplete information about their environment until they have
monitored it for days or weeks. Other than that, deployment of NBA sensors and consoles is essentially
the same as it is for network-based IDPS sensors and consoles.
NBA products are designed to be operated and maintained through consoles, which typically have very
similar capabilities to the consoles for network-based IDPSs. A key difference is that NBA consoles
usually offer visualization tools that can display the flow of attacks through an organization’s networks.
These tools can show a user which hosts were affected by an attack, the sequence of hosts that an attack
passed through, and the first host to be involved in the attack. Some NBA products also offer command-
line interfaces.
Ongoing maintenance of NBA products is also very similar to that for network-based IDPSs. The
primary exception is the application of updates. Because most NBA products do not use signatures,
administrators only need to test and apply updates to the NBA software itself. Because NBA sensors are
appliance-based, updating them usually involves replacing an existing CD and either rebooting the sensor
or installing software from the CD. For NBA products that do have signature capabilities, administrators
should also acquire, test, and apply signature updates in the same way that network-based IDPS signature
updates are performed.
6.4 Summary
A network behavior analysis (NBA) system examines network traffic or statistics on network traffic to
identify unusual traffic flows. NBA solutions usually have sensors and consoles, with some products also
offering management servers. Some sensors are similar to network-based IDPS sensors in that they sniff
packets to monitor network activity on one or a few network segments. Other NBA sensors do not
monitor the networks directly, but instead rely on network flow information provided by routers and other
networking devices.
Most NBA sensors can be deployed in passive mode only, using the same connection methods (e.g.,
network tap, switch spanning port) as network-based IDPSs. Passive sensors that are performing direct
network monitoring should be placed so that they can monitor key network locations, such as the
divisions between networks, and key network segments, such as DMZ subnets. Inline sensors are
6-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
typically intended for network perimeter use, so they would be deployed in close proximity to the
perimeter firewalls, often in front to limit incoming attacks that could overwhelm the firewalls.
NBA products provide a variety of security capabilities. They offer extensive information gathering
capabilities, collecting detailed information on each observed host and constantly monitoring network
activity for changes to this information. NBA technologies typically perform extensive logging of data
related to detected events. They also typically have the capability to detect several types of malicious
activity, including DoS attacks, scanning, worms, unexpected application services, and policy violations,
such as a client system providing network services to other systems. Because NBA sensors work
primarily by detecting significant deviations from normal behavior, they are most accurate at detecting
attacks that generate large amounts of network activity in a short period of time and attacks that have
unusual flow patterns. Most NBA sensors can also reconstruct a series of observed events to determine
the origin of a threat.
NBA products automatically update their baselines on an ongoing basis. As a result, typically there is not
much tuning or customization to be done, other than updating firewall ruleset-like policies that most
products support. A few NBA products offer limited signature customization capabilities; these are most
helpful for inline sensors because they can use the signatures to find and block attacks that a firewall or
router might not be capable of blocking. Besides reviewing tuning and customizations periodically to
ensure that they are still accurate, administrators should also ensure that significant changes to hosts are
incorporated, such as new hosts and new services. Generally it is not feasible to automatically link NBA
systems with change management systems, but administrators could review change management records
regularly and adjust host inventory information in the NBA to prevent false positives.
NBA technologies have some significant limitations. They are delayed in detecting attacks because of
their data sources, especially when they rely on flow data from routers and other network devices. This
data is often transferred to the NBA in batches from every minute to a few times an hour. Attacks that
occur quickly may not be detected until they have already disrupted or damaged systems. This delay can
be avoided by using sensors that do their own packet captures and analysis; however, this is much more
resource-intensive than analyzing flow data. Also, a single sensor can analyze flow data from many
networks, while a single sensor can generally directly monitor only a few networks at once. Therefore, to
do direct monitoring instead of using flow data, organizations might have to purchase more powerful
sensors and/or more sensors.
6-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
7. Host-Based IDPS
A host-based IDPS monitors the characteristics of a single host and the events occurring within that host
for suspicious activity. Examples of the types of characteristics a host-based IDPS might monitor are
wired and wireless network traffic (only for that host), system logs, running processes, file access and
modification, and system and application configuration changes. This section provides a detailed
discussion of host-based IDPS technologies. First, it covers the major components of the technologies
and explains the architectures typically used for deploying the components. It also examines the security
capabilities of the technologies in depth, including the methodologies they use to identify suspicious
activity. The rest of the section discusses the management capabilities of the technologies, including
recommendations for implementation and operation.
This section describes the major components of typical host-based IDPSs and illustrates the most
common network architectures for these components. It also provides recommendations for selecting
which hosts should use host-based IDPSs. This section also describes how host-based IDPSs can affect a
host’s internal architecture, such as intercepting process calls.
Most host-based IDPSs have detection software known as agents installed on the hosts of interest. Each
agent monitors activity on a single host and if IDPS capabilities are enabled, also performs prevention
actions. Section 7.2.2 discusses the types of activity monitored by host-based IDPSs. The agents
transmit data to management servers, which may optionally use database servers for storage. 42 Consoles
are used for management and monitoring.
Some host-based IDPS products use dedicated appliances running agent software instead of installing
agent software on individual hosts. Each appliance is positioned to monitor the network traffic going to
and from a particular host. Technically, these appliances could be considered network-based IDPSs,
because they are deployed inline to monitor network traffic. However, they usually monitor activity for
only one specific type of application, such as a Web server or database server, so they are more
specialized than a standard network-based IDPS. Also, the software running on the appliance often has
the same or similar functionality as the host-based agents. Therefore, host-based IDPS products using
appliance-based agents are included in this section.
A server. Besides monitoring the server’s operating system (OS), the agent may also monitor some
common applications.
A client host (desktop or laptop). Agents designed to monitor users’ hosts usually monitor the OS
and common client applications such as e-mail clients and Web browsers.
An application service. Some agents perform monitoring for a specific application service only,
such as a Web server program or a database server program. This type of agent is also known as an
application-based IDPS.
42
Because this publication focuses on enterprise IDPS deployment, it assumes that agents send their data to management
servers; however, some agents can be deployed standalone, and managed and monitored directly by the host’s administrators
without using a management server.
7-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Most products do not have agents for other types of hosts, such as network devices (e.g., firewalls,
routers, switches).
The network architecture for host-based IDPS deployments is typically very simple. Because the agents
are deployed to existing hosts on the organization’s networks, the components usually communicate over
those networks instead of using a separate management network. Most products encrypt their
communications, preventing eavesdroppers from accessing sensitive information. Appliance-based
agents are typically deployed inline immediately in front of the hosts that they are protecting. Figure 7-1
shows an example of a host-based IDPS deployment architecture.
7-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Host-based IDPS agents are most commonly deployed to critical hosts such as publicly accessible servers
and servers containing sensitive information. However, because agents are available for various server
and desktop/laptop operating systems, as well as specific server applications, organizations could
potentially deploy agents to most of their servers and desktops/laptops. Some organizations use host-
based IDPS agents primarily to analyze activity that cannot be monitored by other security controls. For
example, network-based IDPS sensors cannot analyze the activity within encrypted network
communications, but host-based IDPS agents installed on endpoints can see the unencrypted activity.
Organizations should consider the following additional criteria when selecting agent locations:
To provide intrusion prevention capabilities, most IDPS agents alter the internal architecture of the hosts
on which they are installed. This is typically done through a shim, which is a layer of code placed
between existing layers of code. A shim intercepts data at a point where it would normally be passed
from one piece of code to another. The shim can then analyze the data and determine whether or not it
should be allowed or denied. Host-based IDPS agents may use shims for several types of resources,
including network traffic, filesystem activity, system calls, Windows registry activity, and common
applications (e.g., e-mail, Web).
Some host-based IDPS agents do not alter the host architecture. Instead, they monitor activity without
shims, or they analyze the artifacts of activity, such as log entries and file modifications. Although less
intrusive to the host, reducing the possibility of the IDPS interfering with the host’s normal operations,
these methods are also generally less effective at detecting threats and often cannot perform any
prevention actions.
One of the important decisions in selecting a host-based IDPS solution is whether to install agents on
hosts or use agent-based appliances. From a detection and prevention perspective, installing agents on
hosts is generally preferable because the agents have direct access to the hosts’ characteristics, often
allowing them to perform more comprehensive and accurate detection and prevention. However, agents
often support only a few common OSs; if a host does not use a supported OS, an appliance can be
deployed instead. Another reason to use an appliance instead of installing an agent on a host is
performance; if an agent would negatively impact the performance of the monitored host too much, it
might be necessary to offload the agent’s functions to an appliance.
Host-based IDPSs provide a variety of security capabilities. Sections 7.2.1 through 7.2.4 describe
common security capabilities, divided into four categories: logging, detection, prevention, and other,
respectively.
7-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Host-based IDPSs typically perform extensive logging of data related to detected events. This data can be
used to confirm the validity of alerts, to investigate incidents, and to correlate events between the host-
based IDPS and other logging sources. Data fields commonly logged by host-based IDPSs include the
following:
Most host-based IDPSs have the capability to detect several types of malicious activity. They often use a
combination of signature-based detection techniques to identify known attacks, and anomaly-based
detection techniques with policies or rulesets to identify previously unknown attacks. This section
discusses the following aspects of host-based IDPS detection capabilities:
The types of events detected by host-based IDPSs vary considerably based primarily on the detection
techniques that they use. Some host-based IDPS products offer several of these detection techniques,
while others focus on a few or one. For example, several products only analyze network traffic, and other
products only check the integrity of a host’s critical files. Specific techniques commonly used in host-
based IDPSs include the following:
Code Analysis. Agents might use one or more of the techniques listed below to identify malicious
activity by analyzing attempts to execute code. All of these techniques are helpful at stopping
malware and can also prevent other attacks, such as some that would permit unauthorized access,
code execution, or escalation of privileges.
– Code behavior analysis. Before code is run normally on a host, it can first be executed in a
virtual environment or a sandbox to analyze its behavior and compare it to profiles or rules of
known good and bad behavior. For example, when a particular piece of code is executed, it might
attempt to gain administrator-level privileges or to overwrite a system executable.
– Buffer overflow detection. Attempts to perform stack and heap buffer overflows can be
detected by looking for their typical characteristics, such as certain sequences of instructions and
attempts to access portions of memory other than those allocated to the process.
7-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
– System call monitoring. The agent knows which applications and processes should be calling
which other applications and processes or performing certain actions. For example, an agent
could recognize a process attempting to intercept keystrokes, such as a keylogger. Another
example is an agent that restricts component object model (COM) object loading, such as
permitting a PDA application, but not other applications, to access an e-mail client’s address
book. Agents can also restrict which drivers can be loaded, which can prevent the installation of
rootkits and other attacks.
– Application and library lists. An agent might monitor each application and library (e.g.,
dynamic link library [DLL]) that a user or process attempts to load and compare that information
to lists of authorized and unauthorized applications and libraries. This can be used not only to
restrict which applications and libraries can be used, but which versions of them can be used.
Network Traffic Analysis. This is often similar to what a network-based IDPS does; some products
can analyze both wired and wireless network traffic. In addition to network, transport, and
application layer protocol analysis, agents may include special processing for common applications,
such as popular e-mail clients. Traffic analysis also allows the agent to extract files sent by
applications such as e-mail, Web, and peer-to-peer file sharing, which can then be checked for
malware.
Network Traffic Filtering. Agents often include a host-based firewall that can restrict incoming and
outgoing traffic for each application on the system, preventing unauthorized access and acceptable
use policy violations (e.g., use of inappropriate external services). Some of these firewalls can
generate and use a list of the hosts with which this host should be communicating, particularly within
the organization.
Filesystem Monitoring. Filesystem monitoring can be performed using several different techniques,
including the ones listed below. Administrators should be aware that some products base their
monitoring on filenames, so if users or attackers alter filenames, filesystem monitoring techniques
might be made ineffective.
– File integrity checking. This involves periodically generating message digests or other
cryptographic checksums for critical files, comparing them to reference values, and identifying
differences. File integrity checking can only determine after-the-fact that a file has already been
changed, such as a system binary being replaced by a Trojan horse or a rootkit.
– File attribute checking. This is periodically checking the attributes of important files, such as
ownership and permissions, for changes. Like file integrity checking, it can only determine after-
the-fact that a change has occurred.
– File access attempts. An agent with a filesystem shim can monitor all attempts to access critical
files, such as system binaries, and stop attempts that are suspicious. The agent has a set of
policies regarding file access, so the agent compares those policies to the characteristics of the
current attempt, including which user or application is trying to access each file, and what type of
access has been requested (read, write, execute). 43 This could be used to prevent some forms of
malware from being installed, such as rootkits and Trojan horses, as well as preventing many
other types of malicious activity involving file access, modification, replacement, or deletion.
43
On Windows systems, many configuration settings reside in a set of special files known as the registry. Some agents have
special registry shims that restrict access to critical portions of the registry, especially those frequently used by malware.
7-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Log Analysis. Some agents can monitor and analyze OS and application logs to identify malicious
activity. 44 These logs may contain information on system events, which are operational actions
performed by OS components (e.g., shutting down the system, starting a service); audit records,
which contain security event information such as successful and failed authentication attempts and
security policy changes; and application events, which are significant operational actions performed
by applications, such as application startup and shutdown, application failures, and major application
configuration changes.
Network Configuration Monitoring. Some agents can monitor a host’s current network
configuration and detect changes to it. Typically all network interfaces on the host are monitored,
including wired, wireless, virtual private network (VPN), and modem. Examples of significant
network configuration changes are network interfaces being placed in promiscuous mode, additional
TCP or UDP ports being used on the host, or additional network protocols being used, such as non-IP
protocols. These changes could indicate that the host has already been compromised and is being
configured for use in future attacks or for transferring data.
Organizations should determine which aspects of hosts need to be monitored and select IDPS products
that provide adequate monitoring and analysis for them.
Because host-based IDPSs often have extensive knowledge of hosts’ characteristics and configurations, a
host-based IDPS agent can often determine whether or not an attack against a host would succeed if not
stopped. Agents can use this knowledge to select prevention actions and to assign appropriate priorities
to alerts.
Like any other IDPS technology, host-based IDPSs often cause false positives and false negatives.
However, the accuracy of detection is more challenging for host-based IDPSs because several of the
possible detection techniques, such as log analysis and filesystem monitoring, do not have knowledge of
the context under which detected events occurred. For example, a host may be rebooted, a new
application installed, or a system file replaced. These actions could be done by malicious activity, or they
could be part of normal host operation and maintenance. The events themselves are detected accurately,
but their benign or malicious nature cannot always be determined without additional context. Some
products, particularly those intended for desktop/laptop use, prompt users to provide context, such as
whether or not the user is currently upgrading a particular application. If a user does not respond to the
prompt in a set period of time (typically a few minutes), the agent chooses a default action (allow or
deny).
Host-based IDPSs that use combinations of several detection techniques should generally be capable of
achieving more accurate detection than products that use one or a few techniques. Because each
technique can monitor different aspects of a host, using more techniques allows agents to collect more
information on the activities occurring. This provides a more complete picture of the events, and may
also provide additional context that can be helpful in assessing the intent of certain events.
Host-based IDPSs usually require considerable tuning and customization. For example, many rely on
observing host activity and developing baselines or profiles of expected behavior. Others need to be
44
Some products only perform log analysis and log management activities, such as log consolidation. Although these
products are often referred to as host-based IPS, some of them are actually security information and event management
(SIEM) products. Section 9 contains additional information on SIEM.
7-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
configured with detailed policies that define exactly how each application on a host should behave. As
the host environment changes, administrators should ensure that host-based IDPS policies are updated to
take those changes into account. Generally it is not feasible to automatically link host-based IDPSs with
change management systems, but administrators could review change management records regularly and
adjust host configuration and policy information in the host-based IDPS to prevent false positives.
Policies can often be set on a per-host basis or for groups of hosts, which provides flexibility. Some
products also permit multiple policies to be configured on a host for multiple environments; this is most
helpful for hosts that function in multiple environments, such as a laptop used both within an organization
and from external locations. Host-based IDPSs also offer whitelist and blacklist capabilities for hosts
(e.g., IP addresses of other hosts with which a host might communicate), applications, ports, filenames,
and other host characteristics. In fact, some products automatically update agents with the latest whitelist
and blacklist information, based on reports from other agents of newly detected malicious activity.
Another common feature of host-based IDPSs is customizing each alert, such as specifying which
response option should be performed for an alert.
The sophistication of signature capabilities for host-based IDPSs varies widely depending on the
detection techniques used by each product.
Host-based IDPSs have some significant limitations. Some of these limitations are described in Section
7.2.2.2. Other important limitations include the following:
Alert Generation Delays. Although agents generate alerts on a real-time basis for most detection
techniques, some techniques are used periodically to identify events that have already happened.
Such techniques might only be applied hourly or even just a few times a day, causing significant
delay in identifying certain events.
Centralized Reporting Delays. Many host-based IDPSs are intended to forward their alert data to
the management servers on a periodic basis, not in a near-real-time fashion. Alert data is typically
transferred in batches every 15 to 60 minutes to reduce overhead for the IDPS components and the
network. Smaller host-based IDPS implementations can usually transfer data more often, but for
larger implementations, vendors typically recommend less frequent transfers. This can cause delays
in initiating response actions, which especially increases the impact of incidents that spread quickly,
such as malware infestations.
Host Resource Usage. Unlike the other IDPS technologies, host-based IDPSs involve running
agents on the hosts being monitored. These agents can consume considerable host resources,
including memory, processor usage, and disk storage. The agents’ operation, particularly the shims,
can also cause slowdowns in operations such as network and filesystem usage. Testing of host
resource usage should be performed when evaluating host-based IDPS products for possible purchase.
Conflicts with Existing Security Controls. Installing an agent can cause existing host security
controls to be disabled automatically, such as personal firewalls, if those controls are perceived to
duplicate functionality provided by the agent. Installing an agent can also cause conflicts with other
security controls, especially those that use shims to intercept host activity (e.g., personal firewalls,
VPN clients). For some products, a network shim is optional, although it does permit greater
functionality, especially in prevention actions. To identify any potential conflicts, implementers
should test agents on hosts that are running the host security controls used on the hosts to which the
agents would be deployed.
7-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Rebooting Hosts. For many host-based IDPS products, agent software upgrades and some agent
configuration changes can necessitate rebooting the monitored hosts. As with other problems
mentioned earlier, implementers should perform extensive testing of this before selecting products
and consider the impact that reboots could have on the effectiveness of the agents (e.g., agents being
unable to detect the latest threats because important hosts could not be rebooted).
7.2.3 Prevention Capabilities
Host-based IDPS agents offer various intrusion prevention capabilities. Because the capabilities vary
based on the detection techniques used by each product, the following items describe the capabilities by
detection technique.
Code Analysis. The code analysis techniques can prevent code from being executed, including
malware and unauthorized applications. Some host-based IDPSs can also stop network applications
from invoking shells, which could be used to attempt to perform certain types of attacks. If
configured and tuned well, code analysis can be very effective, particularly at stopping previously
unknown attacks.
Network Traffic Analysis. This can stop incoming network traffic from being processed by the host
and outgoing network traffic from exiting it. This might be done to stop network, transport, and
application layer attacks (and in some cases, wireless networking protocol attacks), as well as to stop
the use of unauthorized applications and protocols. Analysis can also identify malicious files being
downloaded or transferred and prevent those files from being placed on the host. The network traffic
might be dropped or rejected, and the host’s personal firewall (which might be built into the agent)
could be reconfigured to shun additional traffic related to the suspicious traffic. Network traffic
analysis is effective at stopping many known and previously unknown attacks.
Network Traffic Filtering. Working as a host-based firewall, this can stop unauthorized access and
acceptable use policy violations (e.g., use of inappropriate external services). It is effective only
against stopping activity that is identifiable by IP address and TCP port, UDP port, or ICMP type and
code.
Filesystem Monitoring. This can prevent files from being accessed, modified, replaced, or deleted,
which could stop malware installation, including Trojan horses and rootkits, as well as other attacks
involving inappropriate file access. This technique can provide an additional layer of access control
to supplement the existing access control technologies on a host.
Other host-based IDPS detection techniques, such as log analysis, network configuration monitoring, and
file integrity and attribute checking, generally do not support prevention actions because they identify
events well after they have occurred.
Some host-based IDPSs offer non-IDPS capabilities such as antivirus software, spam filtering, and Web
or e-mail content filtering. It is outside the scope of this guide to discuss these capabilities, which are
often provided by bundling separate products with the IDPS software. This section focuses on those
additional product capabilities that are more closely tied to host-based IDPS functionality. Examples of
these capabilities are as follows:
Removable Media Restriction. Some products can enforce restrictions on the use of removable
media, both USB-based (e.g., flash drive) and traditional (e.g., CD, floppy disk). This can prevent
7-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
malware or other unwanted files from being transferred to a host, and can also stop sensitive files
from being copied from the host to removable media.
Audiovisual Device Monitoring. A few host-based IDPS products can detect when a host’s
audiovisual devices, such as microphones, cameras, or IP-based phones are activated or used. This
could indicate that the host has been compromised by an attacker.
Host Hardening. Some host-based IDPSs can automatically harden hosts on an ongoing basis. For
example, if an application is reconfigured, causing a particular security function to be disabled, the
IDPS could detect this and enable the security function.
Process Status Monitoring. Some products monitor the status of processes or services running on a
host, and if they detect that one has stopped, they restart it automatically. Some products can also
monitor the status of security programs such as antivirus software.
Network Traffic Sanitization. Some agents, particularly those deployed on appliances, can sanitize
the network traffic that they monitor. For example, an appliance-based agent could act as a proxy and
rebuild each request and response that is directed through it. This can be effective at neutralizing
certain unusual activity, particularly in packet headers and application protocol headers. Sanitization
performed by an appliance can also reduce the amount of reconnaissance the attackers can perform on
the host it is protecting. Examples include hiding the servers’ OS fingerprints and application error
messages. Some products can also prevent sensitive information such as social security numbers and
credit card numbers from being displayed on Web server pages.
7.3 Management
Most host-based IDPSs offer similar management capabilities. This section discusses major aspects of
management—implementation, operation, and maintenance—and provides recommendations for
performing them effectively and efficiently.
7.3.1 Implementation
Once a host-based IDPS product has been selected, the administrators need to design an architecture,
perform IDPS component testing, secure the IDPS components, and then deploy them. The following
items list additions to the material presented in Section 3.3.1:
Component Testing and Deployment. After the host-based IDPS components have been evaluated
in a test environment, organizations should implement a small pilot in the production environment.
This allows administrators to perform tuning and customization activities on a small set of production
hosts in preparation for a larger deployment. The prevention features should be disabled during the
pilot and the subsequent production implementation until the agents have been sufficiently tuned and
customized.
Securing the Components. If the management servers or consoles must authenticate to each agent
host to manage the agents or collect their data, organizations should ensure that the authentication
mechanisms can be managed and secured properly. For example, if passwords are needed, there are
security concerns with using a single password for all agent hosts; if a separate password is used for
each agent host, the passwords can be difficult to track and maintain for hundreds or thousands of
agents. If cryptographic keys are used for authentication, key management can present challenges in
issuing and distributing keys.
7-9
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
7.3.2 Operation
Host-based IDPSs should be operated according to the recommendations presented in Section 3.3.2. The
only exception is in updating the agents. Some agents can periodically check the management server for
updates and automatically retrieve and install or apply those updates. Other agents cannot do this,
requiring an administrator to manually check for, transfer, and install or apply updates. In many cases, an
agent’s update capability is related to the type of operating system on which it is deployed.
7.4 Summary
Host-based IDPSs monitors the characteristics of a single host and the events occurring within that host
for suspicious activity. Examples of the types of characteristics a host-based IDPS might monitor are
wired and wireless network traffic, system logs, running processes, file access and modification, and
system and application configuration changes. Most host-based IDPSs have detection software known as
agents installed on the hosts of interest. Each agent monitors activity on a single host and if prevention
capabilities are enabled, also performs prevention actions. The agents transmit data to management
servers. Each agent is typically designed to protect a server, a desktop or laptop, or an application
service.
The network architecture for host-based IDPS deployments is typically very simple. Because the agents
are deployed to existing hosts on the organization’s networks, the components usually communicate over
those networks instead of using a management network. Host-based IDPS agents are most commonly
deployed to critical hosts such as publicly accessible servers and servers containing sensitive information.
However, because agents are available for various server and desktop/laptop operating systems, as well as
specific server applications, organizations could potentially deploy agents to most of their servers and
desktops/laptops. Organizations should consider several criteria when selecting agent locations, including
the need to analyze activity that cannot be monitored by other security controls; the cost of the agents’
deployment, maintenance, and monitoring; the OSs and applications supported by the agents; the
importance of each host’s data or services; and the ability of the network infrastructure to support the
agents’ communications.
Most IDPS agents alter the internal architecture of the hosts on which they are installed through shims,
which are layers of code placed between existing layers of code. Although it is less intrusive to the host
to perform monitoring without shims, which reduces the possibility of the IDPS interfering with the
host’s normal operations, monitoring without shims is also generally less accurate at detecting threats and
often precludes the performance of effective prevention actions.
Host-based IDPSs provide a variety of security capabilities. They typically perform extensive logging of
data related to detected events and can detect several types of malicious activity. Detection techniques
used include code analysis, network traffic analysis, network traffic filtering, filesystem monitoring, log
analysis, and network configuration monitoring. Host-based IDPSs that use combinations of several
detection techniques should generally be capable of achieving more accurate detection than products that
use one or a few techniques, because each technique can monitor different characteristics of hosts.
Organizations should determine which characteristics need to be monitored and select IDPS products that
provide adequate monitoring and analysis of those characteristics.
Host-based IDPSs usually require considerable tuning and customization. For example, many rely on
observing host activity and developing baselines or profiles of expected behavior. Others need to be
configured with detailed policies that define exactly how each application on a host should behave. As
the host environment changes, administrators should ensure that host-based IDPS policies are updated to
take those changes into account.
7-10
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Host-based IDPSs have some significant limitations. Some detection techniques are performed only
periodically, such as hourly or a few times a day, to identify events that have already happened, causing
significant delay in identifying certain events. Also, many host-based IDPSs forward their alert data to
the management servers in batches a few times an hour, which can cause delays in initiating response
actions. Because host-based IDPSs run agents on the hosts being monitored, they can impact host
performance because of the resources the agents consume. Installing an agent can also cause conflicts
with existing host security controls, such as personal firewalls and VPN clients. Agent upgrades and
some configuration changes can also necessitate rebooting the monitored hosts.
Host-based IDPSs offer various intrusion prevention capabilities; these vary based on the detection
techniques used by each product. Code analysis techniques can prevent code from being executed; this
can be very effective at stopping both known and previously unknown attacks. Network traffic analysis
can stop incoming and outgoing network traffic containing network, transport, or application layer
attacks, wireless networking protocol attacks, and the use of unauthorized applications and protocols.
Network traffic filtering works as a host-based firewall and stops unauthorized access and acceptable use
policy violations. Filesystem monitoring can prevent files from being accessed, modified, replaced, or
deleted, which can stop malware installation and other attacks involving inappropriate file access. Other
host-based IDPS detection techniques generally do not support prevention actions because they identify
events well after they have occurred.
Some host-based IDPSs offer additional capabilities related to intrusion detection and prevention, such as
enforcing restrictions on the use of removable media, detecting the activation or use of audiovisual
devices, automatically hardening hosts on an ongoing basis, monitoring the status of running processes
and restarting failed ones, and performing network traffic sanitization.
7-11
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
7-12
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
As Sections 4 through 7 have explained, the four primary types of IDPS technologies—network-based,
wireless, network behavior analysis (NBA), and host-based—each offer fundamentally different
information gathering, logging, detection, and prevention capabilities. Each technology type offers
benefits over the other, such as detecting some events that the others cannot, detecting some events with
significantly greater accuracy than the other technologies, and performing in-depth analysis without
significantly impacting the performance of the protected hosts. Accordingly, organizations should
consider using multiple types of IDPS technologies to achieve more comprehensive and accurate
detection and prevention of malicious activity, with lower rates of false positives and false negatives.
This section provides guidance on using multiple IDPS technologies to create a broader IDPS solution
and discusses the advantages and disadvantages of using multiple technologies.
Organizations that are planning to use multiple types of IDPS technologies, or even multiple products
within a single IDPS technology class, should consider whether or not the IDPS products should be
integrated in some way, either working together directly or feeding their data into a centralized logging
system or security information and event management system. This section explains how different IDPS
products can be integrated, and the benefits and limitations of the integration methods. It also provides
overviews of other technologies that complement IDPS technologies and discusses how they can be
included in an IDPS solution to further improve detection and prevention.
In many environments, a robust IDPS solution cannot be achieved without using multiple types of IDPS
technologies. For example, network-based IDPSs cannot monitor wireless protocols, and wireless IDPSs
cannot monitor application protocol activity. Table 8-1 provides a high-level comparison of the four
primary IDPS technology types. The strengths listed in the table indicate the roles or situations in which
each technology type is generally superior to the others. A particular technology type may have
additional benefits over others, such as logging additional data that would be useful for validating alerts
recorded by other IDPSs, or preventing intrusions that other IDPSs cannot because of technology
capabilities or placement (e.g., on the host instead of on the network).
8-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
For most environments, a combination of network-based and host-based IDPSs is needed for an effective
IDPS solution. Wireless IDPSs may also be needed if the organization determines that its wireless
networks need additional monitoring or if the organization wants to ensure that rogue wireless networks
are not in use in the organization’s facilities. NBA products can also be deployed if organizations desire
additional detection capabilities for denial of service (DoS) attacks, worms, and other threats as discussed
in Section 6.
In addition to using multiple types of IDPS technologies, some organizations also use multiple products
of the same IDPS technology type. This is often done to improve detection capabilities. Because each
product uses somewhat different detection methodologies and detects some events that another product
cannot, using multiple products can allow for more comprehensive detection of possible incidents. Also,
having multiple products in use, particularly to monitor the same activity, makes it easier for analysts to
confirm the validity of alerts and identify false positives, and also provides redundancy, should one
product fail for any reason.
Many organizations use multiple IDPS products, usually from different vendors (most vendors make
products in only one IDPS technology type). By default, these products function completely
independently of each other. This has some notable benefits, such as minimizing the impact that a failure
or compromise of one IDPS product has on other IDPS products. However, if the products are not
integrated in any way, the effectiveness of the entire IDPS implementation may be somewhat limited.
Data cannot be shared by the products, and IDPS users and administrators may have to expend extra
effort to monitor and manage multiple sets of products. IDPS products can be directly integrated, such as
one product feeding alert data to another product, or they can be indirectly integrated, such as all the IDPS
products feeding alert data into a security information and event management system. Sections 8.2.1 and
8.2.2 discuss the benefits and limitations of direct and indirect integration, respectively.
Direct IDPS integration is most often performed when an organization uses multiple IDPS products from
a single vendor. For example, some vendors offer both network-based and host-based products. These
vendors frequently offer a single console that can be used to manage and monitor both types of products.
This can provide significant time savings to administrators and users because it streamlines their work.
Some products also share data; for example, a product might use host-based IDPS data to determine if an
attack detected by network-based IDPS sensors was successful, or if an attack stopped by network-based
IDPS data would have been successful if allowed to pass. This information can speed the analysis
process and help users to better prioritize threats. The primary disadvantage of using a fully integrated
solution is that a failure or compromise could endanger all the IDPS technologies that are part of the
integrated solution.
A more limited form of direct IDPS integration is having one IDPS product provide data for another IDPS
product. As mentioned previously, two products from the same vendor often share data with each other
for correlation purposes. Data can also be shared among products from different vendors, although
typically this simply involves one product providing data as input to the second product. For example, a
network-based IDPS could potentially provide network flow information to an NBA sensor. A host-
based IDPS could provide system configuration information to NBA or network-based IDPS sensors.
This data can be used for event correlation and better prioritization of alerts.
8-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Indirect IDPS integration is usually performed with security information and event management (SIEM)
software. 45 SIEM software is designed to import information from various security-related logs and
correlate events among them. 46 Log types commonly supported by SIEM software include IDPSs,
firewalls, antivirus software, and other security software; OSs (e.g., audit logs); application servers (e.g.,
Web servers, e-mail servers); and even physical security devices such as badge readers. SIEM software
generally works by receiving copies of the logs from the logging hosts over secure network channels,
converting the log data into standard fields and values (known as normalization), then identifying related
events by matching IP addresses, timestamps, usernames, and other characteristics. 47 SIEM products can
identify malicious activity such as attacks and malware infections, as well as misuse and inappropriate
usage of systems and networks. Some SIEM software can also initiate prevention responses for
designated events. SIEM products usually do not generate original event data; instead, they generate
meta-events based on their analysis of the imported event data.
SIEM software can identify some types of events that individual IDPSs cannot because of its ability
to correlate events logged by different technologies.
The consoles for SIEM software can make data from many sources available through a single
interface, which can save time for users that need to monitor multiple IDPSs. SIEM consoles also
may offer analysis and reporting tools that certain IDPSs’ consoles do not.
Users can more easily verify the accuracy of IDPS alerts because the SIEM may be able to link each
alert to supporting information from other logs. This can also help users to determine whether or not
certain attacks succeeded.
Limitations of SIEM software in the context of IDPS include the following:
There is often a considerable delay between the time an event begins and the time the SIEM sees the
corresponding log data. Log data may be transferred from logging hosts to the SIEM in batch mode,
such as every 5 or 10 minutes. As a result, malicious activity alerts are often displayed on an IDPS
console earlier than on a SIEM console, and prevention actions are less timely.
SIEM products typically transfer only some data fields from the original logs. For example, if a
network-based IDPS records packets, the packets may not be transferred to the SIEM because of
bandwidth and storage limitations. Also, the log normalization process that converts each data field
to a standard format and labels the data consistently can occasionally introduce errors in the data or
cause some data to be lost. Fortunately, SIEM products typically do not alter the original data
sources, so they can be referenced to verify the accuracy of the data if needed.
SIEM software may not offer agents for all IDPS products. This could require administrators to write
custom agents to transfer IDPS data to the SIEM servers, or it could necessitate having the IDPSs
perform logging using a different mechanism so that the SIEM software can understand the log
format.
45
For additional information on SIEM software and log management, see NIST SP 800-92, Guide to Computer Security Log
Management, which is available at http://csrc.nist.gov/publications/nistpubs/.
46
SIEM is also sometimes known as security event management (SEM) or security information management (SIM).
47
There are no widely accepted standards for IPS log formats or data fields. As a result, each IPS product uses its own schema
for logging.
8-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
An alternative to using SIEM software for centralized logging is to use a solution based primarily on the
syslog protocol. 48 Syslog provides a simple framework for log generation, storage, and transfer that any
IDPS could use if designed to do so. Some IDPSs offer features that allow their log formats to be
converted to syslog format. Syslog is very flexible for log sources, because each syslog entry contains a
content field into which logging sources can place information in any format. However, this flexibility
makes analysis of the log data challenging. Each IDPS may use many different formats for its log
messages, so a robust analysis program would need to be familiar with each format and be able to extract
the meaning of the data within the fields of each format. It might not be feasible to understand the
meaning of all log messages, so analysis might be limited to keyword and pattern searches. Generally,
the use of syslog for centralized collection and analysis of IDPS logs does not provide sufficiently strong
analysis capabilities to support incident identification and handling.
In addition to dedicated IDPS technologies, organizations typically have several other types of
technologies that offer some IDPS capabilities and complement the primary IDPSs. This section
discusses common types of complementary technologies: network forensic analysis tools, anti-malware
technologies (antivirus software and antispyware software), firewalls and routers, and honeypots. 49 For
each, a brief overview of the technology is provided, and its use in intrusion detection and prevention and
its relationship to IDPSs are explained. Recommendations are also made as applicable for how the
complementary technologies should be used alongside of IDPSs.
Network forensic analysis tools (NFAT) focus primarily on collecting and analyzing wired network
traffic. Unlike a network-based IDPS, which performs in-depth analysis and stores only the necessary
network traffic, an NFAT typically stores most or all of the traffic that it sees, and then performs analysis
on that stored traffic. In addition to its forensic capabilities, NFAT software also offers features that
facilitate network traffic analysis, such as the following:
Reconstructing events by replaying network traffic within the tool, ranging from an individual session
(e.g., instant messaging [IM] between two users) to all sessions during a particular time period. The
speed of the replaying can typically be adjusted as needed.
Visualizing the traffic flows and the relationships among hosts. Some tools can even tie IP addresses,
domain names, or other data to physical locations and produce a geographic map of the activity.
Building profiles of typical activity and identifying significant deviations.
Searching application content for keywords (e.g., “confidential”, “proprietary”).
This makes it more valuable for network forensics and less valuable for intrusion detection and
prevention than a typical network-based IDPS.
48
Although syslog has been in use for many years, it has not been standardized formally. Request for Comments (RFC) 3164,
The BSD Syslog Protocol, was published in August 2001, and it is an informational RFC that describes commonly used
syslog message formats based on existing implementations. It is available at http://www.ietf.org/rfc/rfc3164.txt. By default,
syslog’s transport mechanism is trivially simple; RFC 3164 states that “…the payload of any IP packet destined to UDP port
514 MUST be considered to be a valid syslog message”. RFC 3195, Reliable Delivery for Syslog, was published in
November 2001, and it defines multiple transport mechanisms for syslog. It is available at
http://www.ietf.org/rfc/rfc3195.txt.
49
Additional information on complementary tools is available from NIST SP 800-86, Guide to Integrating Forensic
Techniques into Incident Response, which is available at http://csrc.nist.gov/publications/nistpubs/.
8-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
NFAT software is often more valuable for network forensics than IDPS software because of its
extensive packet logging.
Having NFAT software perform packet logging can reduce the load on network-based IDPS sensors.
NFAT software might be better-suited to customization, especially for content searches (e.g.,
keywords), than some IDPS technologies.
Some NFAT graphical user interfaces (GUI) may offer analysis, visualization, and reporting
capabilities that IDPS consoles do not.
Limitations of NFAT software in the context of IDPS include the following:
NFAT software usually does not have the intrusion detection capabilities of network-based IDPSs.
NFAT software typically offers no intrusion prevention capabilities.
8.3.2 Anti-Malware Technologies
The most commonly used technical control for malware threat mitigation is antivirus software. Types of
malware that it can detect include viruses, worms, Trojan horses, malicious mobile code, and blended
threats, as well as attacker tools such as keystroke loggers and backdoors. Antivirus software typically
monitors critical OS components, filesystems, and application activity for signs of malware, and attempts
to disinfect or quarantine files that contain malware. Most organizations deploy antivirus software both
centrally (e.g., e-mail servers, firewalls) and locally (e.g., file servers, desktops, laptops) so that all major
malware entry vectors can be monitored.
Another commonly used control for malware threat mitigation is spyware detection and removal utilities,
also known as antispyware software. They are similar to antivirus software, but they focus on detecting
both malware and non-malware forms of spyware, such as malicious mobile code and tracking cookies,
and spyware installation techniques such as unauthorized Web browser plug-in installations, popup ads,
and Web browser hijacking.
Both antivirus and antispyware products detect threats primarily through signature-based analysis. To
identify previously unknown threats, they also use heuristic techniques that examine activity for certain
suspicious characteristics. The product vendors create and release additional signatures when new threats
emerge, so that the products can detect them.
Ways in which antivirus and antispyware software complements IDPSs include the following:
IDPSs usually have limited malware and spyware detection capabilities (often only for the most
common threats, such as widespread worms), so antivirus and antispyware software can detect many
threats that IDPSs cannot.
NBA technology might identify that a worm is spreading based on unusual traffic flows, but it
probably could not identify which worm it is. Antivirus software should be able to determine which
worm it is, if the threat is not a new one for which the antivirus software does not yet have signatures.
Antivirus software, and to a lesser extent antispyware software, can take some load from IDPSs, such
as having antivirus software identify instances of a particular worm and disabling the worm’s
signatures on the IDPS sensors. This is particularly important during a widespread malware
8-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
infection, when IDPSs might become overwhelmed with worm alerts and other important events
occurring at the same time might go unnoticed by IDPS users.
Limitations of antivirus and antispyware software in the context of IDPS include the following:
Antivirus and antispyware software cannot detect threats other than malware and spyware.
Network-based IDPS and NBA software are often better able to recognize network service worms
than antivirus software can because antivirus software often monitors only the most common
application protocols. Also, antispyware software typically cannot detect network service worms.
Network-based IDPS and NBA software can typically monitor any protocol.
For a new threat, antivirus and antispyware software often cannot recognize it until the vendor
releases new signatures and updates are installed. In some cases, especially for threats with easily
identifiable characteristics, an IDPS can detect the new threat during this window of time because
IDPS administrators can write a custom signature for the IDPS. Antivirus and antispyware software
typically do not permit administrators to write signatures. Also, NBA software can often recognize
new worms by their anomalous traffic patterns.
8.3.3 Firewalls and Routers
Firewalls (network-based and host-based) and routers filter network traffic based on TCP/IP
characteristics such as the source and destination IP addresses, the transport layer protocol (e.g., TCP,
UDP, ICMP), and basic protocol information (e.g., TCP or UDP port numbers, ICMP type and code).
Most firewalls and routers log which connections or connection attempts they block; the blocked activity
is often generated by unauthorized access attempts from automated attack tools, port scanning, and
malware. Some network-based firewalls also act as proxies. When a proxy is used, each successful
connection attempt actually results in the creation of two separate connections: one between the client and
the proxy server, and another between the proxy server and the true destination. Many proxies are
application-specific, and some actually perform some analysis and validation of common application
protocols, such as HTTP. The proxy may reject client requests that appear to be invalid (which could
include some forms of attacks) and log information regarding these requests.
Ways in which firewalls and routers complement IDPSs include the following: 50
Network-based firewalls and routers often perform network address translation (NAT), which is the
process of mapping addresses on one network to addresses on another network. NAT is most often
accomplished by mapping private addresses from an internal network to one or more public addresses
on a network that is connected to the Internet. Firewalls and routers that perform NAT typically
record each NAT address and mapping. IDPS users may need to make use of this mapping
information to identify the actual IP address of a host behind a device performing NAT.
If IDPSs and other security controls (e.g., antivirus software) cannot stop a new network-borne threat,
such as a network service worm or denial of service attack, firewalls or routers might have to be
temporarily reconfigured to block the threat.
As mentioned in Sections 4 through 7, many IDPSs can reconfigure firewalls or routers to block
particular threats.
Routers are often used as data sources for NBA deployments.
50
Some firewalls and routers can run IDPS software. The discussion in this section addresses only the core capabilities of
firewalls and routers, not add-on IDPS capabilities.
8-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Limitations of firewalls and routers in the context of IDPS include the following:
Some organizations are sufficiently concerned with detecting the earliest signs of widespread incidents,
such as major new worms, that they deploy deceptive measures such as honeypots so that they can collect
better data on these threats. Honeypots are hosts that have no authorized users other than the honeypot
administrators because they serve no business function; all activity directed at them is considered
suspicious. Attackers will scan and attack honeypots, giving administrators data on new trends and attack
tools, particularly malware. However, honeypots are a supplement to, not a replacement for, other
security controls such as intrusion detection and prevention systems. If honeypots are to be used by an
organization, qualified incident handlers and intrusion detection analysts should manage them. The
legality of honeypots has not been clearly established; therefore, organizations should carefully study the
legal ramifications before planning any honeypot deployments.
8.4 Summary
The four primary types of IDPS technologies—network-based, wireless, NBA, and host-based—each
offer fundamentally different information gathering, logging, detection, and prevention capabilities. Each
technology type offers benefits over the other, such as detecting some events that the others cannot and
detecting some events with significantly greater accuracy than the other technologies. Accordingly,
organizations should consider using multiple types of IDPS technologies to achieve more comprehensive
and accurate detection and prevention of malicious activity. In many environments, a robust IDPS
solution cannot be achieved without using multiple types of IDPS technologies. For most environments,
a combination of network-based and host-based IDPSs is needed for an effective IDPS solution. Wireless
IDPSs may also be needed if the organization determines that its wireless networks need additional
monitoring or if the organization wants to ensure that rogue wireless networks are not in use in the
organization’s facilities. NBA technologies can also be deployed if organizations desire additional
detection capabilities for DoS attacks, worms, and other threats that NBAs are particularly good at
detecting.
Organizations that are planning to use multiple types of IDPS technologies, or even multiple products
within a single IDPS technology class, should consider whether or not the IDPS products should be
integrated in some way. Direct IDPS integration is most often performed when an organization uses
multiple IDPS products from a single vendor, by having a single console that can be used to manage and
monitor the multiple products. Some products can also share data, which can speed the analysis process
and help users to better prioritize threats. A more limited form of direct IDPS integration is having one
IDPS product provide data for another IDPS product, such as a network-based IDPS providing network
flow information to an NBA sensor.
Indirect IDPS integration is usually performed with security information and event management (SIEM)
software, which is designed to import information from various security-related logs and correlate events
among them. SIEM software complements IDPSs in several ways, including correlating events logged by
different technologies, displaying data from many event sources, and providing supporting information
from other sources to help users verify the accuracy of IDPS alerts. An alternative to using SIEM
8-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
software for centralized logging is the syslog protocol, which provides a simple standard framework for
log generation, storage, and transfer that any IDPS can use if designed to do so. Syslog is very flexible
for log sources, because each syslog entry contains a content field into which logging sources can place
information in any format. However, this flexibility makes analysis of the log data challenging. Each
IDPS may use many different formats for its log message content, so a robust analysis program would
need to be familiar with each format and be able to extract the meaning of the data within the fields of
each format. Generally, the use of syslog for centralized collection and analysis of IDPS logs does not
provide sufficiently strong analysis capabilities to support incident identification and handling.
In addition to dedicated IDPSs, organizations typically have several other types of technologies that offer
some IDPS capabilities and complement, but do not replace, the primary IDPSs. These include network
forensic analysis tools, anti-malware technologies (antivirus software and antispyware software), and
firewalls and routers.
8-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
This section provides guidance on selecting IDPS products. It first discusses the identification of general
requirements that the IDPS products should meet. Next, it provides sets of criteria that can be used to
evaluate four aspects of IDPS technologies: security capabilities, performance, management, and life
cycle cost. Finally, the section concludes with a brief discussion of performing hands-on and paper
evaluations of products, and when each evaluation technique is most appropriate. This section assumes
that an organization has already determined that a particular type of IDPS technology—network-based,
wireless, network behavior analysis (NBA), or host-based—is needed. A comparison of the technology
types, which can be helpful for selecting the one most appropriate for a particular need, is provided in
Section 8.
Organizations should use risk management techniques to identify the security controls necessary to
mitigate risk to an acceptable level. Although it may be tempting to simply choose a product, using a risk
management process to choose the most effective blend of controls enhances an organization’s security
posture. An explanation of the risk management process is outside the scope of this document; NIST SP
800-30, Risk Management Guide for Information Technology Systems, contains additional information on
it.
Before evaluating IDPS products, organizations should first define the general requirements that the IDPS
solution and products should meet. The features provided by IDPS products and the methodologies that
they use vary considerably, so a product that best meets one organization’s requirements might not be
suitable for meeting another organization’s requirements. Also, a single IDPS product might not be able
to meet all of an organization’s requirements for a particular type of IDPS technology (e.g., network-
based), necessitating the use of multiple IDPS products of the same technology type. This is most
common for large environments and for environments in which IDPS technologies serve multiple
operational purposes.
Evaluators first need to understand the characteristics of the organization’s system and network
environments, so that an IDPS can be selected that will be compatible with them and able to monitor the
events of interest on the systems and/or networks. This knowledge is also needed to design the IDPS
solution and determine how many components (e.g., sensors, agents) will be needed and where they will
be deployed (e.g., which systems will run IDPS agents, which network segments will be monitored).
Characteristics to consider include the following:
– Network diagrams and maps specifying the architecture (both logical and geographical) of the
network, including all connections to other networks, and the number and locations of hosts
– The operating systems (OS), network services, and applications run by each host that might need
to be protected by the IDPS 51
– The attributes of non-security systems with which the IDPS might need to be integrated, such as
network management systems.
51
In some cases, particularly for some host-based IDPSs, it may also be necessary to identify the application versions that
need to be protected, so that it can be confirmed that the IDPS provides support for those versions.
9-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Technical specifications of the existing security protections. Examples of relevant protections are
as follows:
– Network firewalls, routers, proxies, and other packet filtering devices and software
– Communication encryption services, including link encryptors, virtual private networks (VPN),
and Secure Sockets Layer (SSL)/Transport Layer Security (TLS).
9.1.2 Goals and Objectives
After gaining an understanding of the existing system and network environments, evaluators should
articulate the technical, operational, and business goals and objectives they wish to attain by using an
IDPS. The following questions should be considered in this area:
The types of threats for which the IDPS should provide protection. Evaluators should state, as
specifically as possible, the concerns that the organization has regarding the types of threats that
originate both outside the organization and inside the organization (insider threats). Insider threats
should encompass not only users who attack the system from within, but also authorized users who
overstep their privileges, thereby violating organizational security policy or laws.
Any needs to monitor system and network usage for acceptable use violations or non-security
reasons. In some organizations, there are system use policies that target user behaviors that may be
considered personnel management rather than system security issues. These might include accessing
Web sites that provide content of questionable taste or value (such as pornography) or using the
organization’s systems to send email or other messages to harass individuals. Some IDPSs provide
features that accommodate detecting such events. Monitoring usage can also assist organizations in
determining when systems and networks are reaching capacity and might need to be upgraded or
replaced.
9.1.3 Security and Other IT Policies
Evaluators should review their existing security policies and other IT policies before selecting products.
The policies serve as a specification for many of the features that the IDPS products need to provide. 52
Examples of policy elements that can contain helpful information for IDPS product selection are as
follows:
The goals of the policies. It is helpful to articulate the goals outlined in the policies in terms of the
standard security goals (integrity, confidentiality, and availability) as well as more generic
management goals (privacy, protection from liability, manageability).
Reasonable use policies or other management provisions. As mentioned above, many
organizations have system use policies included as part of security policies and other IT policies.
52
If the existing policies do not provide enough information on what types of activity should be permitted or denied, it may be
necessary to revise the policies first before selecting an IDPS product to enforce the policies.
9-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Processes for dealing with specific policy violations. It is helpful to have a clear idea of what the
organization wishes to do when an IDPS detects that a policy has been violated. If the organization
does not intend to react to such violations, it may not make sense to configure the IDPS to detect
them. If the organization wishes to respond to such violations, it may be necessary to select an IDPS
product that can detect them, and perhaps also perform automated responses to stop them.
9.1.4 External Requirements
Evaluators should understand if the organization is subject to oversight or review by another organization,
or if it is likely that the organization will be subject to an additional form of oversight in the near term. If
either is true, the evaluators should determine if that oversight authority requires IDPSs or other specific
security resources. Examples of external requirements are as follows:
Security-specific requirements levied by law. For example, there may be legal requirements to
protect personally identifiable information (such as earnings information or medical records) stored
on the systems. There could also be legal requirements for investigation of security violations that
divulge or endanger that information.
Audit requirements for security best practices or due diligence. The audit requirements may
specify functions that the IDPS must provide or support. Some IDPSs offer features to meet special
needs of certain industries or market niches, such as reports designed to meet legislative requirements
for health care or financial institutions.
System accreditation requirements. If the organization’s systems are subject to accreditation, the
evaluators should identify and consider the accreditation authority’s requirements for IDPS or other
security protection.
Requirements for law enforcement investigation and resolution of security incidents. They may
impose additional requirements on IDPS functions, especially those having to do with collection and
protection of IDPS logs as evidence.
Requirements to purchase products previously evaluated through an independent process. For
example, an organization might be required to or prefer to purchase products that hold a certain rating
from an evaluating body.
Cryptography requirements. For example, Federal agencies are required to purchase products that
use FIPS-approved encryption algorithms to protect network communications and storage of sensitive
data. Also, if any of the IDPS components will be deployed in other countries, evaluators should
consider any restrictions or limitations that might affect the deployment or use of cryptographic
components incorporated in the IDPS.
9.1.5 Resource Constraints
IDPSs can protect the systems of an organization, but at a price. It makes little sense to incur additional
expense for IDPS features if the organization does not have sufficient systems or personnel to use them.
Evaluators should consider the following:
The budget for acquisition and life cycle support of IDPS hardware, software, and
infrastructure. The total cost of ownership of IDPSs well exceeds acquisition costs. Other costs
may be associated with acquiring systems on which to run software components, deploying additional
networks, providing sufficient storage for IDPS data, obtaining specialized assistance in installing and
configuring the system, and training personnel. See Section 9.5 for additional information on life
cycle costs.
9-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
The staff needed to monitor and maintain an IDPS. Some IDPSs are designed under the
assumption that personnel will be available to monitor and maintain them around the clock. If
evaluators do not anticipate having such personnel available, they may wish to explore those systems
that accommodate less than full-time attendance or are designed for unattended use, or they could
consider the possibility of outsourcing the monitoring and possibly also the maintenance of the
IDPS. 53
9.2 Security Capability Requirements
In addition to defining general requirements, as described in Section 9.1, evaluators also need to define
more specialized sets of requirements. This section specifically addresses security capability
requirements. Sections 9.3 through 9.5 discuss performance, management, and life cycle cost
requirements, respectively. The criteria in these sections are presented as possible evaluation criteria and
are not intended to be used as-is for performing product evaluations. Instead, organizations could use
them as a basis for creating an organization-specific set of criteria that takes into account an
organization’s environment, policies, and existing security and network infrastructure. Section 9.6
provides additional information on performing IDPS evaluations.
Evaluating the security capabilities of each IDPS product is obviously very important. If the product
cannot provide the necessary capabilities, then it ultimately is insufficient as a security control alone, and
either a different product should be selected or the product should be used in conjunction with other
security controls, such as a different IDPS product. This section presents IDPS security capability
considerations in four categories: information gathering, logging, detection, and prevention. Section 9.6
provides guidance on collecting data on IDPS security capabilities as part of an evaluation.
Organizations should identify the information gathering capabilities needed for their IDPS’s detection
methodologies and analysis functions, and evaluate each IDPS product under consideration for its ability
to offer those capabilities. Information on information gathering capabilities for each type of IDPS
technology are presented in Sections 4 through 7.
Organizations should carefully examine the event and alert logging capabilities of each IDPS solution
being evaluated. The quality of logging, both completeness and precision, affects an organization’s
ability to perform analysis, confirm the accuracy of alerts, and correlate logged events with events
recorded by other sources (e.g., other security controls, OS logs). IDPS products should log basic
information at a minimum, such as a timestamp, the event type, the source of the event, and the sensor or
agent that detected the event. Each IDPS product should also log supporting data involving the details of
the event; these data fields are specific to particular IDPS product types, and common data fields are
listed in Sections 4 through 7. IDPS products should also provide a mechanism that allows users to
associate each log entry with corresponding external references, including Common Vulnerabilities and
53
If portions of the IDPS will be or might be outsourced, organizations should ensure that their product requirements reflect
outsourcing-specific requirements, such as limiting the actions that the outsourcers can perform and performing auditing of
their actions.
9-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Exposures (CVE) numbers, 54 which provide universal identifiers for vulnerabilities, and possibly other
references such as vendor security advisories.
Organizations should carefully evaluate the detection capabilities of each IDPS solution being evaluated.
For many implementations, the detection capabilities are the most important function. Comparing
detection capabilities is a complex undertaking because each product typically performs detection of a
somewhat different set of events using different methodologies. Factors that organizations should
consider in their IDPS evaluations include the following:
Which types of activities it currently analyzes fully and analyzes partially, as well as future plans for
additional analysis capabilities. Examples are as follows:
– For network-based IDPS, a listing of the network, transport, and application layer protocols
analyzed, and an explanation of the amount of analysis performed on each (e.g., signature-based
detection, anomaly-based detection, stateful protocol analysis)
– For host-based IDPS, a listing of the specific resources that can be monitored (e.g., log files,
system files, network interfaces) and an explanation of how each is monitored (e.g., after-the-fact
detection of changes, active handling of file access requests, TCP/IP stack monitoring)
What types of incidents it can identify, such as denial of service [DoS] attacks, backdoors, policy
violations, port scans, malware (e.g., worms, Trojan horses, rootkits, malicious mobile code), and
unauthorized application/protocol use.
How comprehensive its detection is for each type of incident it can identify (e.g., how many worms,
how many types of DoS attacks).
How effective its default, out-of-the-box configuration is. When an IDPS is first activated, its default
settings should be reasonable. For example, signatures or policies that tend to generate large numbers
of false positives should be disabled, and signatures or policies that are reliable and identify important
recent attacks should be enabled. Detection thresholds (e.g., x instances in y minutes) should be set to
values that attempt to balance false positives and false negatives. Also, features that are particularly
resource-intensive should be disabled.
How effective it is at detecting known malicious events, such as attacks, scans, or malware.
Signature-based detection techniques typically perform better than anomaly detection and stateful
protocol analysis techniques in recognizing known events. This should include the IDPS’s ability to
state precisely which exploit was performed and which vulnerability was targeted (e.g., CVE
reference identifier).
How effective it is at detecting previously unknown malicious events, such as new attacks or variants
on existing attacks, without reconfiguring or updating the IDPS. Anomaly detection and stateful
protocol analysis techniques typically perform better than signature-based detection techniques in
recognizing unknown events.
How effective it is at detecting known and unknown malicious events that have been concealed
through evasion techniques. Examples of such techniques include unusual IP packet fragmentation,
non-standard application port use, and alternate character sets or other character encoding.
54
More information on CVE is available from NIST SP 800-51, Use of the Common Vulnerabilities and Exposures (CVE)
Vulnerability Naming Scheme, which is located at http://csrc.nist.gov/publications/nistpubs/, and the CVE Web site at
http://cve.mitre.org/.
9-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
– Does the product offer a development environment or other tools to assist in customization, such
as syntax checking or virtual machines for testing customizations before implementing them?
– When the product is updated or upgraded, how are code customizations preserved?
How effectively the product can use data from other sources, such as vulnerability scan results and
logs from other IDPSs, to correlate events and improve the prioritization of alerts.
9.2.4 Prevention Capabilities
Organizations should determine whether or not the IDPS solution may need to perform prevention
actions, including future needs, and evaluate the prevention capabilities of each candidate product. Most
prevention capabilities are specific to a particular type of IDPS; information on common capabilities is
presented in Sections 4 through 7 for each IDPS product type. When available, it is generally preferred to
have a product that has multiple prevention capabilities instead of only one, because some methods are
more effective than others in certain situations and ineffective in others. All IDPS products should offer
considerable granularity in configuration options for prevention methods, such as enabling or disabling
them only for particular alerts, suppressing prevention methods for hosts on whitelists, and allowing
administrators to specify which prevention method should be used for each alert if multiple methods are
available. Some products offer additional granularity that may be beneficial, such as performing
prevention actions only if a certain system is being attacked.
Comparing the performance of IDPS products is challenging for the following reasons:
Performance is highly dependent on the configuration and tuning of each product. Although testing
can be performed using the default settings of each product, some products are designed with the
assumption that they will need extensive customization and tuning.
Performance and detection are often at odds; having more complex and robust detection capabilities
often causes poorer performance because they require more processing capability and memory.
9-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Many IDPS components are appliance-based and have many hardware models and configurations
available, each with its own performance characteristics. Other IDPS components are not appliance-
based, so their hardware, OSs, and OS configurations may vary widely, which can all affect
performance.
There are no open standards for performance testing, nor are there publicly available, comprehensive,
up-to-date test suites.
Accordingly, evaluators should focus on the general performance characteristics of IDPS products and
avoid differentiating products by slight differences in reported performance capabilities. Vendors
typically rate their products by maximum capacity, such as the volume of network traffic or number of
packets per second monitored for network-based IDPS, the number of events monitored per second for
host-based IDPS, or the flows monitored per second or the number of hosts that can be profiled for NBA
systems. Section 9.6 provides guidance on collecting data on IDPS performance as part of an evaluation.
When evaluating maximum capacity claims, evaluators should consider the following questions:
Does the maximum capacity reflect activity that is being analyzed or activity that is being monitored
but not necessarily analyzed? For example, a network-based IDPS might perform little or no analysis
on the use of certain application protocols.
What was the nature of the activity used to measure capacity? This knowledge can help evaluators to
determine if the testing used an environment similar to their own or had significant differences that
could affect performance results. Aspects of this to consider include the following:
– What types of malicious activity were included in the testing? What percentage of the events
monitored by the IDPS was malicious? What percentage of the malicious events was detected by
the IDPS under maximum load?
– For network traffic, what protocols were used and in roughly what percentages? For host-based
activity, what applications were run, and what other sources of events were used?
– How closely did the activity used for testing reflect the actual conditions of the production
environment?
How was the IDPS configured? Was the default configuration used? If not, what detection
capabilities, logging capabilities, and other features were enabled or disabled from the default?
For any non-appliance components, what hardware, OSs, and applications or services were in use?
Who performed the testing?
When was the testing performed?
Evaluators should also consider the performance features that each IDPS under consideration offers.
Possible considerations for performance features include the following:
Does the IDPS offer any performance tuning features, either manually configured or automatically
implemented? For example, if an IDPS is being overwhelmed by high volumes of activity, can it
alter its detection capabilities so that it temporarily performs less extensive analysis on all the traffic
or stops analyzing low-risk traffic?
9-7
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
For products that track state (e.g., stateful protocol analysis of network connections), how many
activities (e.g., connections) can they track state for simultaneously? How long is state information
maintained normally and under maximum load?
For products that process the actual events, not copies of the events (e.g., inline network-based IDPS
sensors), how much latency does the processing cause? For example, there might be a delay of 50
microseconds between when a network-based IDPS sensor receives a packet and when the IDPS
retransmits that packet to continue to its destination. A host-based IDPS might delay the execution of
system calls for a similarly short time. Under high loads, IDPS products might experience
significantly higher latency, so it is important to consider latency under both typical and extreme
loads.
For products that process copies of events, not the actual events (e.g., passive network-based IDPS
sensors, NBA software analyzing network flow logs sent by routers), how long does it take from the
occurrence of an event to the event’s detection and reporting by the IDPS?
9.4 Management Requirements
Evaluating the management capabilities of each IDPS product is very important because if a product is
hard to manage or does not offer the necessary management functionality, then it is likely that the product
will not be used as effectively as originally intended. This section presents IDPS management capability
considerations in three categories:
Most aspects of IDPS design and implementation are specific to each IDPS technology type; Sections 4
through 7 contain detailed information on design and implementation considerations. In addition to
those, organizations should also consider general criteria related to reliability, interoperability, scalability,
and security.
9.4.1.1 Reliability
Organizations should ensure that the IDPS products they select will be sufficiently reliable to meet their
requirements. Possible considerations for reliability include the following:
What types of redundant hardware are included or available separately for appliances, such as
duplicate power supplies, network interface cards, storage devices (e.g., hard drives, flash ROMs),
and CPUs?
What software redundancy features are incorporated into the products, especially for agents and
sensors, such as the product automatically restarting itself and/or supporting services when they fail?
Can the product use multiple management servers so that if one fails, sensors or agents automatically
fail over to another one? How disruptive is the failover process?
9-8
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Can multiple sensors be deployed to monitor the same activity so that if one fails, another
automatically assumes its responsibilities? How disruptive is the failover process (e.g., loss of state
tracking, loss of event counts for thresholds)?
If a sensor fails, how easily can its configuration be transferred to another sensor (e.g., transferring a
sensor CD and configuration floppy from the first sensor to the second sensor, then rebooting the
second sensor)?
9.4.1.2 Interoperability
Organizations should ensure that the IDPS products they select will interoperate effectively with the
desired systems. These systems could include the following:
Data input sources, such as other IDPS products, log files, and vulnerability scanning results
Log analysis and management software, such as syslog and other logging servers, SIEM software,
and network management software
Systems to be reconfigured by prevention actions, such as firewalls and routers.
9.4.1.3 Scalability
When evaluating IDPS products, organizations should consider not only their current needs, but also
possible future needs, so that they choose products that are sufficiently scalable. Possible considerations
for scalability include the following:
The number of sensors or agents, management servers, consoles, and other IDPS components that can
be part of a single logical implementation
The number of sensors or agents that a single management server can support
The range of appliances available for appliance-based IDPS components (e.g., appliance devices with
varying capacities), and the ability to expand appliances (e.g., add more memory, network interface
cards [NIC], or storage devices)
How multiple sensors or agents can share monitoring functions for a network or system, including
how load balancing can be performed with or without the use of separate load balancing devices
How many networks a network-based, wireless, or NBA sensor can monitor simultaneously; how
many network interfaces a host-based agent can monitor simultaneously
How the IDPS’s storage capabilities can be expanded and enhanced (e.g., automated archival of older
data, use of separate storage devices)
What levels of activity (e.g., network traffic, system calls, log entries) each of the IDPS components
can support
How well the IDPS solution integrates the management and monitoring of multiple sensors or agents,
management servers, and other components
The cost of and resources needed for each scalability option.
9-9
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
9.4.1.4 Security
When evaluating IDPS products, organizations should consider the security requirements for the IDPS
solution itself. Evaluators should review the security controls listed in NIST SP 800-53, Recommended
Security Controls for Federal Information Systems and consider which controls should be included in the
IDPS security criteria. Examples of security considerations include the following:
How stored data (including logs) and communications among all the IDPS components are protected,
such as using alternate data channels or FIPS-approved encryption and digital signature algorithms to
support data confidentiality and integrity when needed
The authentication, access control, and auditing features performed for IDPS usage and
administration
The IDPS’s resistance to attacks against it, such as blinding and DoS attacks.
9.4.2 Operation and Maintenance
This criterion focuses on requirements for the user and administrator interfaces for ongoing management
of the IDPS. This includes the ease of performing daily monitoring, analysis, and reporting activities;
managing and maintaining the IDPS; and applying updates. Possible specific criteria for each of these
areas is provided below. In addition, evaluators should consult with vendors, analysts, and/or trusted
peers to determine the level of technical and security expertise needed to use and maintain each product.
Evaluators should ask vendors what their assumptions are regarding the users and administrators of their
products.
Organizations should consider how the IDPS solution needs to be used on a daily basis for monitoring
security events, performing analysis of events of interest, and generating reports. Because these three
activities are often intertwined, it is often easiest to assess them together. Daily use considerations for
IDPSs should include the following:
How it displays events and alerts to users, what features it provides to ease analysis (e.g., drill-down
capability, links to supporting information, correlation of events from multiple sensors or agents,
color-coding alerts to indicate their severity/priority), and how users can customize the views and
filters to alter the display of events and alerts
How it displays its status information to users and administrators (e.g., how a sensor failure is
communicated)
How it notifies users and administrators of both serious security events and IDPS failures and other
operational problems
How much supporting information it records for events (e.g., is enough information recorded to allow
analysts to determine what happened?)
How many interfaces/programs are needed for the daily use functions (e.g., can a single GUI provide
all the functions that the IDPS users need?)
How many concurrent interfaces are supported
9-10
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
What default report formats are offered (e.g., text, comma-separated values [CSV], HTML,
Extensible Markup Language [XML], PDF, Microsoft Word, Microsoft Excel) and what data storage
formats are supported for IDPS data, log, and report retention
How reports can be customized (both altering existing reports and creating new reports)
Whether or not reports can be generated automatically (e.g., on a schedule, when certain events
occur), how the reports can be distributed (e.g., e-mailed to administrators), and how the distributed
reports are protected (e.g., file encryption)
Whether or not it offers any workflow tracking capabilities, such as incident tracking.
9.4.2.2 Maintenance
Organizations should consider how the IDPS solution and its components should be maintained, and then
evaluate products based on those maintenance requirements. Maintenance considerations should include
the following:
Whether or not sensors or agents can be managed both independently and through a management
server, and whether such accesses are logged
What local and remote maintenance mechanisms are available (e.g., locally installed GUI, Web-based
console, command-line interface [CLI], third-party tools), and what differences there are (if any) in
their functionality
Which components can be maintained locally and remotely with each maintenance mechanism
What security protections are provided for each maintenance mechanism (e.g., strong encryption for
network traffic)
How component configuration settings can be backed up and restored, and how they can be
transferred from a component to a replacement component (e.g., swapping sensor appliances because
of hardware failure)
How robust the product is at logging component status information (e.g., low disk space, high CPU
utilization), operational failures, and other events that may necessitate maintenance actions
Whether or not the IDPS provides sufficiently robust log management tools, and if not, how
administrators could compensate (e.g., write scripts, acquire third-party tools).
9.4.2.3 Updates
Organizations should carefully consider how the vendor of each evaluated IDPS product releases updates
for it. Aspects of this to consider include the following:
How often regular major and minor updates to each component are released (e.g., sensors,
management servers, consoles)
How often updates to detection capabilities are released in response to major new threats, and how
soon after the identification of a new threat the corresponding update is typically available
Which types of updates usually or sometimes require that IDPS components be rebooted or restarted
9-11
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
How the organization receives each type of update from the vendor (e.g., sensor upgrade distributed
on CD, signature updates available for download through the console or from the vendor’s technical
support Web site)
How the authenticity and integrity of updates can be confirmed (e.g., through cryptographic
checksums)
How updates can be distributed to IDPS components such as sensors and consoles (e.g., automated
process, manual installation)
How the installation of updates can affect existing IDPS settings or customizations.
9.4.3 Training, Documentation, and Technical Support
Organizations should consider the resources available to the IDPS administrators and users for learning
about the IDPS’s functionality and characteristics and for receiving assistance when problems occur.
These resources—training, documentation, and technical support—should take into account both
administrator and user needs, as well as different experience levels.
Training. Most IDPS vendors offer training classes for their products. Some offer a single class per
product, while others offer separate classes for users and administrators. Separate classes may also be
available for particular IDPS components, such as consoles or management servers, or for specialized
tasks such as code customization or report creation. Some vendors also offer general IDPS classes
that are intended to give users a better understanding of IDPS principles. Third parties also offer
general IDPS classes and classes for some specific IDPS products. Organizations should consider
which training classes are available that meet their needs, what format the classes are in (e.g.,
instructor-led, online, computer-based training [CBT]), and where the classes are held (e.g., the IDPS
vendor’s headquarters, regional locations, the customer’s site). For instructor-led classes,
organizations should determine if they include lab work or other hands-on exercises that allow users
to use the actual IDPS equipment.
Documentation. IDPS products usually include documentation in paper or electronic forms.
Examples include installation, user, administrator, and signature/policy development guides.
Electronic guides are often fully searchable; some products also offer context-sensitive help through
the console, allowing a user to easily access the pertinent documentation for a particular console
feature or security event type. If guides are provided on paper only, organizations should determine if
the guides can be duplicated, and if not, what the availability of additional copies is.
Technical Support. Most IDPS vendors offer multiple technical support contracts. For example,
one contract might provide basic phone, e-mail, and Web-based support during business hours with a
one-hour response time, while another contract might provide 24-hour access to senior support staff
with a 15-minute response time and include annual onsite visits and consulting services.
Organizations should take care to determine what activities are and are not covered by a contract; for
example, tuning and customization, such as writing signatures or customizing reports, might not be
included. Vendors typically provide multiple support contract options so that each customer can
select one that is cost-effective for them. Free technical support is also available for some products
through user groups, mailing lists, forums, and other methods.
9.5 Life Cycle Costs
Organizations should compare the funding they have available for IDPS solutions to the estimated life
cycle costs for each of the evaluated solutions. Quantifying the life cycle costs for IDPS solutions can be
difficult because there are many environment-specific factors that impact cost, and because it is usually
9-12
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
challenging to capture the cost benefits provided by IDPSs. The criteria presented below focus on the
basic costs of the IDPS solution itself and do not take into account any cost savings achieved by IDPS
use.
Initial Costs. The initial costs of acquiring and deploying a solution typically include the following:
– Software and software licensing fees for IDPS components and supporting software (e.g.,
reporting tools, database software)
– Installation and initial configuration costs, which could include external assistance as well as
internal labor
– Training costs, if the necessary training is not included as part of the initial hardware and
software purchase.
Maintenance Costs. Expected maintenance costs for IDPS solutions typically include the following:
– Labor. This includes the cost of staff performing IDPS administration and analysis.
– Software licensing fees, subscription fees, or maintenance contracts. These costs, typically
incurred on an annual basis, usually provide the purchaser with IDPS software and signature
updates.
– Technical support fees. Many organizations purchase technical support contracts for their IDPS
products; these contracts are typically annual. Some organizations pay a fee per technical support
call instead of an annual contract.
– Training costs. Training might be needed periodically in preparation for deploying new versions
of an IDPS product, as well as for new IDPS users and administrators. Organizations might want
to have customized training classes that focus on the elements of the IDPS product that are most
important to the organization, and also take into account certain aspects of the organization’s
environment and needs.
– Customization costs. During the use of an IDPS product, users and administrators might need the
product to be further customized, such as having programmers develop additional custom reports
or modify existing reports, and having programmers or administrators create custom analyzers
and signatures.
– Professional services or technical support that falls outside the technical support contract.
Examples include designing IDPS implementations, performing product installations, tuning
sensors or agents, creating and customizing reports, and assisting with incident response efforts.
Organizations can perform these services themselves, or they can purchase services from IDPS
vendors and third parties.
9.6 Evaluating Products
After collecting requirements and selecting criteria, evaluators need to find sources of information about
the products to be evaluated. Common product data sources include the following:
9-13
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
An organization performing its own in-depth hands-on testing of IDPS products ideally could generate
comprehensive data on the products that would accurately reflect how well-suited each product is to
meeting the organization’s needs. However, this is generally not feasible to achieve because of how
difficult and resource-intensive it is to perform IDPS testing well. The following are some of the major
reasons for these problems: 55
Test Methodology. There is no standard methodology for performing IDPS testing. Also, details are
not available for most of the methodologies used for commercial evaluation of IDPS products.
Organizations performing IDPS testing need to create their own methodologies or perform a survey
of existing methodologies, determine which would be best for their needs, and then design and
implement testing processes using the selected methodology. Also, a different methodology,
including test environments and test suites, is needed for each type of IDPS technology.
Multiple Environments. Organizations performing IDPS testing should conduct it in both real-
world and lab environments. The real-world testing helps evaluators to understand how well the
product will likely function in their environment. The lab testing allows evaluators to better assess
the detection and prevention capabilities of the product. Detection results can be difficult to
understand when real-world activity is being monitored because the real-world activity is likely to
contain different types of malicious activity, and it is sometimes unclear whether or not the detected
activity was actually malicious. Prevention capabilities are generally not tested in real-world
environments because they can easily cause disruptions to benign activity. It is very difficult to
duplicate real-world environments in lab environments, so organizations performing IDPS testing
generally need to do their testing separately in each environment.
Test Availability. There are no standard IDPS test suites available. Organizations performing IDPS
testing need to find ways to generate both malicious activity (to see how well the products identify
them) and benign activity (to put the product under normal or heavy loads). The malicious activity
should accurately reflect the composition of recent threats against the organization’s systems and
networks; accordingly, it can take considerable time to identify those threats and acquire tests for
them. The tests also need to take into account all detection methodologies used by the IDPSs,
because usually different types of tests are needed to properly evaluate the effectiveness of each
55
For more information on the challenges of IDPS testing, see NIST Interagency Report (IR) 7007, An Overview of Issues in
Testing Intrusion Detection Systems. It is available at http://csrc.nist.gov/publications/nistir/nistir-7007.pdf. Although it is
focused primarily on testing network-based IDPSs, most of the testing problems it discusses are applicable to testing any
type of IDPS technology.
9-14
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
methodology. 56 Typically it takes a combination of carefully selected tools and custom-written attack
scripts to build a reasonable test suite. Each tool and script should be reviewed and tested to ensure
that it performs the tests properly.
Lab Environment Resources. Organizations performing IDPS testing in lab environments typically
need to expend considerable resources in setting up the lab environments. Attacker and victim
systems need to be set up and configured. The victim systems need to run the OSs, services, and
applications targeted by the attacks. Depending on the methodologies used by the IDPSs, the victim
systems may need to have all the vulnerabilities exploited by the attacks. Some IDPSs might alert
only on attacks that they think will be successful; also, some attacks will stop executing if they do not
detect exploitable vulnerabilities. Evaluators also need to be aware of the capabilities of the IDPSs;
for example, an IDPS might see a few attacks from a single attacker system and automatically
perform prevention actions to stop all future attacks from that system.
Product Equivalence. Most IDPS products need to be tuned and customized to meet the
requirements of the organization. Each product is configured somewhat differently by default, so
organizations performing IDPS testing should attempt to tune and customize the products so that they
are as similar as possible. For example, thresholds such as the number of failed login attempts
permitted in a certain time period should be set to the same values. Also, each detection feature
should be enabled or disabled consistently on all the IDPSs. This is often very difficult to
accomplish—for example, a product performing signature-based detection tends to have settings
based on specific exploits being performed, while a product performing stateful protocol analysis
detection often has settings based on specific vulnerabilities being exploited. Evaluators would need
to map the exploits and vulnerabilities to determine the equivalent settings on different IDPSs.
9.6.2 Recommendations for Performing IDPS Evaluations
The challenges in performing in-depth hands-on IDPS testing often make it infeasible; however,
performing some amount of IDPS testing is generally quite helpful in evaluating how well IDPSs meet an
organization’s requirements for security capabilities, performance, and operation and maintenance. IDPS
testing is also helpful in setting realistic expectations for the capabilities of the products and the amount
of labor required to maintain and monitor them in the organization’s environment. Accordingly,
organizations should consider using a combination of several data sources, such as limited product
testing, vendor-provided information, third-party product reviews, and individuals’ previous IDPS
experience, when performing IDPS product evaluations. For example, organizations could use data
sources other than product testing to narrow the product selection to only a few choices, and then perform
limited testing of those choices only. In some cases, omitting product testing and performing a paper-
only evaluation of a product is necessary because of time and resource constraints, but generally an
evaluation will produce better results if it incorporates at least some product testing.
When using data from other parties, organizations should consider the fidelity of the data. Data is often
presented without a detailed explanation of how it was created, such as maximum capacities or detection
accuracy rates. Because there are no standard methodologies for compiling such data, organizations
should be cautious when comparing data from different sources, because the measurements may have
been performed using fundamentally different methods.
When performing hands-on IDPS testing, organizations should focus on those testing methods that are
most likely to be valuable. Testers should also avoid disrupting the organization’s operations. The
following provides guidance on performing testing for each class of IDPS product. After testing has been
56
Another complicating factor is that it is often not apparent which methodologies particular products use, so it might be
difficult to determine which types of tests are needed.
9-15
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
completed, testers should ensure that any hardware on loan from IDPS vendors has its writable media
sanitized appropriately to remove the organization’s data. 57
9.6.2.1 Network-Based
Valuable insights into network-based IDPS security capabilities (especially detection accuracy and
tuning), performance with the organization’s network traffic, and the operation and maintenance of the
IDPS can be gained by performing real-world testing of the IDPS. However, it is generally prudent to
keep the IDPS somewhat separate from the production environment during this testing so that the IDPS
does not adversely affect it (e.g., increase latency) and so that any vulnerabilities in the IDPS cannot be
exploited by attackers. An IDS load balancer is ideal for giving multiple sensors identical copies of the
network traffic simultaneously, allowing for side-by-side comparisons of the products, while isolating the
sensors and preventing them from inadvertently disrupting production (traffic passes through a load
balancer in only one direction). Depending on the network architecture, it may be possible to test sensors
in inline deployments by duplicating traffic at the network locations where each of an inline sensor’s
network interfaces would be and feeding that traffic to the inline sensors’ interfaces. Otherwise, most
inline sensors can be placed into a passive mode and tested as passive; the benefit of testing them with
production traffic in inline mode is to study their performance.
Lab testing of network-based IDPSs is most beneficial for evaluating the following:
The prevention capabilities of products. Testers can set up test systems (targets and attacking
systems), generate attacks, and monitor the effectiveness of each IDPS’s prevention actions.
The performance of inline sensor deployments. If this cannot be done as part of real-world testing,
testers could use network traffic generation tools or replay previously recorded traffic to generate
activity to pass through the sensor.
Design and implementation-related characteristics. Product reliability could be tested by
deploying multiple sensors or management servers, configuring them for failover conditions,
generating traffic for them to process, and then intentionally causing a failure of one component and
monitoring the resulting product behavior. Interoperability could be tested by configuring test
systems representing the products with which the IDPS must interoperate, and then generating
activity that should cause the products to work together. The security of the IDPS itself can also be
tested through vulnerability scanning, penetration testing, and other methods.
9.6.2.2 Wireless
The methods to be used for testing wireless IDPSs should be selected primarily by the format of the
wireless IDPS sensors to be tested:
Mobile sensors, fixed sensors, and sensors bundled with APs. 58 Testing of security capabilities,
performance, and some facets of operation and maintenance can typically be performed by using the
sensors in production environments, with the caveat that prevention capabilities should be disabled.
Prevention capabilities could be evaluated in an isolated test environment that is out of range of all
other wireless local area networks. This test environment would contain test access points and test
wireless clients using the access points; testers might need to set up test systems that the wireless
57
For more information on media sanitization, see NIST SP 800-88, Guidelines for Media Sanitization, which is available at
http://csrc.nist.gov/publications/nistpubs/.
58
For sensors bundled with APs, these test instructions assume that a non-production AP is used for the testing. Deploying
sensor software onto production APs for testing purposes is not recommended because it could disrupt the production
environment.
9-16
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
clients can access to generate wireless network communications. Attacks can be issued from one or
more wireless clients, and rogue access points can be deployed in the test environment. If the sensors
will be integrated with an IDPS infrastructure, any testing of this should also be performed in the test
environment to evaluate performance, operation and maintenance, and design and implementation
characteristics without jeopardizing the production infrastructure (e.g., an IDPS sensor could have
vulnerabilities that could be exploited by attackers within range of the sensor).
Sensors bundled with wireless switches. Generally, this testing should be performed by setting up a
test switch with sensor software in a test environment like the one described above for other types of
wireless sensors. The same type of testing described above should be performed.
9.6.2.3 NBA
If the NBA products will be directly monitoring network traffic, then real-world and lab testing of that
capability should be performed based on the guidance given for testing network-based IDPSs. If the
NBA products will be monitoring network flow logs from other devices, the preferred method for real-
world testing of that capability is to set up a separate network and forward the logs from the devices over
that network to the NBA sensors. This protects the NBA solution and allows the bandwidth used by the
solution to be measured easily. If the production networks will be used instead of a separate network,
testers need to be very careful not to overwhelm the production networks with the volume of logs,
particularly if multiple NBA products are being tested simultaneously. Testing can also be performed in a
lab environment by providing copies of production logs to the NBA products. NBA product lab testing is
also beneficial for the same reasons cited for network-based IDPS lab testing: evaluating prevention
capabilities, inline sensor performance, and product design and implementation-related characteristics.
9.6.2.4 Host-Based
Host-based IDPSs are typically more challenging to perform real-world testing for than any other type of
IDPS. Agents alter the hosts that they monitor and can adversely affect their performance and
functionality (e.g., IDPS shims interfering with other applications); appliance-based IDPSs are deployed
inline in front of production systems. The methods to be used for testing host-based IDPSs should be
selected primarily by the roles of the hosts to be protected:
A server (including a single application service on a server). Testing should be performed in a test
environment only. For example, a test server could be created that mimics a production server or
even uses one of its backups. Typical activity directed at the server, both benign and malicious,
should be generated by test systems (e.g., scripts or tools to create HTTP requests) and monitored by
the host-based IDPS. Testers can perform attacks against the server and monitor the prevention
actions performed without endangering any production systems. Testers can also measure the impact
of the host-based IDPS on the performance of the server and evaluate the reliability and security of
the host-based IDPS by attempting to disrupt it.
A client host (desktop or laptop). Initial testing should be performed in a test environment to
identify major performance and functionality problems that host-based IDPSs might introduce. The
reliability and security of the IDPS can also be evaluated in a test environment. Testing of agents’
security capabilities, prevention actions, and other characteristics can be conducted in both a test
environment and a production environment because the risk posed by IDPS failure to the production
environment is very low. Attacks should only be issued against the hosts in a test environment, while
the agents’ behavior against benign activity can be tested most easily in a real-world environment.
For example, a few of the testers might volunteer to have IDPS agents installed on their production
desktops and document the agents’ behavior and any problems they cause for a week or two. This
provides true real-world testing of the agents. For agents that necessitate user interaction, such as
9-17
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
responding to queries about permitting or denying activity, conducting end user testing in a test or
production environment is also prudent.
When testing host-based IDPSs, organizations should test the most commonly used and important OSs
and applications that need to be protected. The architecture of each OS and each application is different,
so a single product might exhibit significantly different behavior when used on different platforms.
9.7 Summary
Before evaluating IDPS products, organizations should first define the general requirements that the
products should meet. The features provided by IDPS products and the methodologies that they use vary
considerably, so a product that best meets one organization’s requirements might not be suitable for
meeting another organization’s requirements. Evaluators first need to understand the characteristics of
the organization’s system and network environments and plans for near-term changes, so that an IDPS
can be selected that will be compatible with them and able to monitor the events of interest on the systems
and/or networks. This knowledge is also needed to design the IDPS solution. After gaining an
understanding of the existing system and network environments, evaluators should articulate the goals
and objectives they wish to attain by using an IDPS. Evaluators should also review their existing security
and other IT policies before selecting products. The policies serve as a specification for many of the
features that the IDPS products need to provide. In addition, evaluators should understand whether or not
the organization is subject to oversight or review by another organization. If so, they should determine if
that oversight authority requires IDPSs or other specific system security resources. Resource constraints
should also be taken into consideration by evaluators.
In addition to defining general requirements, evaluators also need to define more specialized sets of
requirements:
There are major challenges in performing in-depth hands-on IDPS testing with satisfactory results, which
often make it infeasible. Most organizations find the results of limited IDPS testing helpful for evaluating
daily use, interoperability, and security requirements. Organizations should consider using a combination
of several data sources when performing IDPS product evaluations. When using data from other parties,
organizations should consider the fidelity of the data because it is often presented without an explanation
of how it was generated. When performing hands-on IDPS testing, organizations should focus on those
testing methods that are most likely to be valuable and should avoid methods that are more likely to
disrupt the organization’s operations.
9-18
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Appendix A—Glossary
Selected terms used in the Guide to Intrusion Detection and Prevention Systems (IDPS) are defined
below.
Agent: A host-based intrusion detection and prevention program that monitors and analyzes activity and
may also perform prevention actions.
Anomaly-Based Detection: The process of comparing definitions of what activity is considered normal
against observed events to identify significant deviations.
Antivirus Software: A program that monitors a computer or network to identify all major types of
malware and prevent or contain malware incidents.
Application-Based Intrusion Detection and Prevention System: A host-based intrusion detection and
prevention system that performs monitoring for a specific application service only, such as a Web server
program or a database server program.
Blacklist: A list of discrete entities, such as hosts or applications, that have been previously determined
to be associated with malicious activity.
Blinding: Generating network traffic that is likely to trigger many alerts in a short period of time, to
conceal alerts triggered by a “real” attack performed simultaneously.
Channel Scanning: Changing the channel being monitored by a wireless intrusion detection and
prevention system.
Console: A program that provides user and administrator interfaces to an intrusion detection and
prevention system.
Database Server: A repository for event information recorded by sensors, agents, or management
servers.
Evasion: Modifying the format or timing of malicious activity so that its appearance changes but its
effect on the target is the same.
False Negative: An instance in which an intrusion detection and prevention technology fails to identify
malicious activity as being such.
False Positive: An instance in which an intrusion detection and prevention technology incorrectly
identifies benign activity as being malicious.
Flooding: Sending large numbers of messages to a host or network at a high rate. In this publication, it
specifically refers to wireless access points.
Host-Based Intrusion Detection and Prevention System: A program that monitors the characteristics
of a single host and the events occurring within that host to identify and stop suspicious activity.
A-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Incident: A violation or imminent threat of violation of computer security policies, acceptable use
policies, or standard security practices.
Inline Sensor: A sensor deployed so that the network traffic it is monitoring must pass through it.
Intrusion Detection: The process of monitoring the events occurring in a computer system or network
and analyzing them for signs of possible incidents.
Intrusion Detection and Prevention: The process of monitoring the events occurring in a computer
system or network, analyzing them for signs of possible incidents, and attempting to stop detected
possible incidents. See also “intrusion prevention”.
Intrusion Detection System Load Balancer: A device that aggregates and directs network traffic to
monitoring systems, such as intrusion detection and prevention sensors.
Intrusion Detection System: Software that automates the intrusion detection process.
Intrusion Prevention: The process of monitoring the events occurring in a computer system or network,
analyzing them for signs of possible incidents, and attempting to stop detected possible incidents. See
also “intrusion detection and prevention”.
Intrusion Prevention System: Software that has all the capabilities of an intrusion detection system and
can also attempt to stop possible incidents. Also called an intrusion detection and prevention system.
Jamming: Emitting electromagnetic energy on a wireless network’s frequencies to make them unusable
by the network.
Malware: A program that is inserted into a system, usually covertly, with the intent of compromising the
confidentiality, integrity, or availability of the victim’s data, applications, or operating system or of
otherwise annoying or disrupting the victim.
Management Network: A separate network strictly designed for security software management.
Management Server: A centralized device that receives information from sensors or agents and
manages them.
Network-Based Intrusion Detection and Prevention System: An intrusion detection and prevention
system that monitors network traffic for particular network segments or devices and analyzes the network
and application protocol activity to identify and stop suspicious activity.
Network Behavior Analysis System: An intrusion detection and prevention system that examines
network traffic to identify and stop threats that generate unusual traffic flows.
Network Tap: A direct connection between a sensor and the physical network media itself, such as a
fiber optic cable.
Passive Fingerprinting: Analyzing packet headers for certain unusual characteristics or combinations of
characteristics that are exhibited by particular operating systems or applications.
Passive Sensor: A sensor that is deployed so that it monitors a copy of the actual network traffic.
A-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Promiscuous Mode: A configuration setting for a network interface card that causes it to accept all
incoming packets that it sees, regardless of their intended destinations.
Sensor: An intrusion detection and prevention system component that monitors and analyzes network
activity and may also perform prevention actions.
Shim: A layer of host-based intrusion detection and prevention code placed between existing layers of
code on a host that intercepts data and analyzes it.
Signature-Based Detection: The process of comparing signatures against observed events to identify
possible incidents.
Spanning Port: A switch port that can see all network traffic going through the switch.
Stateful Protocol Analysis: The process of comparing predetermined profiles of generally accepted
definitions of benign protocol activity for each protocol state against observed events to identify
deviations.
Stealth Mode: Operating an intrusion detection and prevention sensor without IP addresses assigned to
its monitoring network interfaces.
Threshold: A value that sets the limit between normal and abnormal behavior.
Triangulation: Identifying the physical location of a detected threat against a wireless network by
estimating the threat’s approximate distance from multiple wireless sensors by the strength of the threat’s
signal received by each sensor, then calculating the physical location at which the threat would be the
estimated distance from each sensor.
Tuning: Altering the configuration of an intrusion detection and prevention system to improve its
detection accuracy.
Whitelist: A list of discrete entities, such as hosts or applications, that are known to be benign.
Wireless Intrusion Detection and Prevention System: An intrusion detection and prevention system
that monitors wireless network traffic and analyzes its wireless networking protocols to identify and stop
suspicious activity involving the protocols themselves.
A-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
A-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Appendix B—Acronyms
Selected acronyms used in the Guide to Intrusion Detection and Prevention Systems (IDPS) are defined
below.
AP Access Point
ARP Address Resolution Protocol
GHz Gigahertz
GUI Graphical User Interface
B-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
RF Radio Frequency
RFC Request for Comment
ROM Read-Only Memory
RPC Remote Procedure Call
B-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
B-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
B-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
The lists below provide examples of tools and resources that may be helpful.
Print Resources
Bejtlich, Richard, The Tao of Network Security Monitoring: Beyond Intrusion Detection,
Addison-Wesley, 2004.
Crothers, Tim, Implementing Intrusion Detection Systems: A Hands-On Guide for Securing the
Network, 2002.
Endorf, Carl et al, Intrusion Detection and Prevention, McGraw-Hill Osborne Media, 2003.
Kruegel, Chris et al, Intrusion Detection and Correlation: Challenges and Solutions, Springer,
2004.
Nazario, Jose, Defense and Detection Strategies Against Internet Worms, Artech House
Publishers, 2003.
Northcutt, Stephen and Novak, Judy, Network Intrusion Detection: An Analyst’s Handbook,
Third Edition, New Riders, 2003.
Rash, Michael et al, Intrusion Prevention and Active Response: Deployment Network and Host
IPS, Syngress, 2005.
Organizations
Organization URL
Computer Incident Advisory Capability (CIAC) http://www.ciac.org/ciac/
Cooperative Association for Internet Data Analysis (CAIDA) http://www.caida.org/home/
Distributed Intrusion Detection System (DShield) http://dshield.org/indexd.html
European Institute for Computer Antivirus Research (EICAR) http://www.eicar.org/
IETF Intrusion Detection Exchange Format (idwg) Working Group http://www.ietf.org/html.charters/OLD/id
wg-charter.html
Internet Storm Center (ISC) http://isc.incidents.org/
SANS Institute http://www.sans.org/
United States Computer Emergency Readiness Team (US-CERT) http://www.us-cert.gov/
Virus Bulletin http://www.virusbtn.com/index
Viruslist.com http://www.viruslist.com/en/
WildList Organization International http://www.wildlist.org/
C-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
C-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
C-3
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
C-4
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
C-5
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
C-6
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Appendix D—Index
A E
Access point (AP), 5-2 Encrypted network traffic, 4-11
Ad hoc mode, 5-2 Environments, 9-1
Agent, 3-1, 7-1, 7-3 Evasion, 2-3, 4-11, 5-10
Alert, 2-2, 4-10
Notification method, 3-3
Settings, 3-3, 3-4
F
Anomaly-based detection, 2-3, 2-4 False negative, 2-3, 4-10
Antispyware software, 8-5 False positive, 2-3, 2-5, 3-5, 4-10, 5-9
Antivirus software, 8-5 File access attempts, 7-5
Appliance, 3-5 File attribute checking, 7-5
Application layer, 4-1, 4-9 File integrity checking, 7-5
Application-based intrusion detection and prevention File transfer monitoring, 2-1
system, 7-1 Filesystem monitoring, 7-5
Architecture, 3-4 Firewalls, 8-6
Attacks, 4-9 Flooding, 5-9
Audiovisual device monitoring, 7-9 Flow, 6-1
Authentication, 3-6 Frame, 4-3
Authenticator, 2-6
G
B
Graphical user interface (GUI), 3-6
Bandwidth usage throttling, 4-13
Baselines, 6-5
Blacklist, 3-3, 3-4 H
Blinding, 4-12 Hardware layer, 4-3
Buffer overflow detection, 7-4 High loads, 4-12
Honeypot, 8-7
C Host architecture, 7-3
Host hardening, 7-9
Channel scanning, 5-4 Host-based intrusion detection and prevention system, 2-7,
Code analysis, 7-4 7-1, 8-1
Code behavior analysis, 7-4 Hot list. See Blacklist
Command-line interface (CLI), 3-7
Common Vulnerabilities and Exposures (CVE), 4-8, 9-5
Configuration, 3-6 I
Console, 3-1, 3-6, 6-7 IDS load balancer, 4-6
Content sanitization, 4-13 IEEE 802.11, 5-1
Correlation, 3-1, 8-3 Implementation, 3-4, 3-5, 4-14, 7-9
Cost, 9-12 Incident, 2-1
Customization, 3-3, 3-4, 4-11, 5-10, 6-5, 7-6 Incident response, 2-1, 3-7
Information gathering, 3-2, 4-7, 5-7, 6-3, 9-4
D Infrastructure mode, 5-2
Inline firewalling, 4-13, 6-6
Data link layer, 4-1, 4-3 Inline sensor, 4-4, 4-13, 6-2, 6-6
Database server, 3-1 Integration, 8-1, 8-2
Denial of service (DoS) attacks, 5-10, 6-4 Direct, 8-2
Detection accuracy, 6-5, 7-6 Indirect, 8-3
Detection capabilities, 3-3, 4-9, 5-8, 6-4, 7-4, 9-5 Internet Control Message Protocol (ICMP), 4-2
Detection code Internet Protocol (IP) layer, 4-2
Editing and viewing, 3-3 Interoperability, 3-5, 9-9
Detection methodologies, 2-3 Intrusion detection, 2-1
Distributed denial of service (DDoS) attacks, 4-12 Intrusion detection and prevention (IDP), 1
Distribution system (DS), 5-2
D-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Intrusion detection and prevention system (IDPS), 2-1, 2-6, Passive sensor, 4-5, 4-12, 6-2, 6-6
3-1 Patches. See Updates
Intrusion detection system (IDS), 1, 2-1, 2-2 Performance, 9-6
Intrusion prevention system (IPS), 1, 2-1, 2-2 Port number, 4-2
IPv6, 4-9 Power over Ethernet (PoE), 5-4
Prevention capabilities, 3-4, 4-12, 5-11, 6-6, 7-8, 9-6
Prevention methods, 4-6
J Process status monitoring, 7-9
Jamming, 5-9 Product evaluation, 9-13
Product requirements, 9-1
Product selection, 9-1
L Profile, 2-4
Learning mode, 3-4 Promiscuous mode, 4-3
Limitations, 4-11, 5-10, 6-6, 7-7 Protocol models, 2-6
Log analysis, 7-6
Logging, 2-2, 3-2, 4-8, 5-8, 6-3, 7-4, 8-3, 9-4 R
Reconnaissance, 2-1, 4-9
M Reliability, 3-5, 9-8
Maintenance, 3-6, 9-10 Remote access, 3-6
Malware, 8-5 Removable media restriction, 7-8
Management capabilities, 3-4, 4-13, 5-11, 6-7, 7-9, 9-8 Reporting, 2-2, 3-7
Management communications, 3-6 Resource constraints, 9-3
Management interface, 3-1 Risk management, 9-1
Management network, 3-1, 3-5, 4-4 Routers, 8-6
Management server, 3-1
Media Access Control (MAC) address, 4-3, 5-3 S
Misconfiguration identification, 4-10
Misuse detection, 2-4 Sanitization, 7-9
Multiple products, 8-1 Scalability, 9-9
Scanning, 6-4
Security, 3-6, 4-14, 7-9, 9-10
N Security capabilities, 5-7, 9-4
Network address translation (NAT), 8-6 Security control reconfiguration, 2-3, 4-13, 6-6
Network architecture, 3-1, 3-4, 4-3, 4-14, 5-5, 6-1, 7-2 Security information and event management (SIEM)
Network behavior analysis (NBA) system, 2-7, 6-1, 8-1 software, 8-3
Network configuration monitoring, 7-6 Security policy, 2-2, 9-2
Network forensic analysis tool (NFAT), 8-4 Security policy violation, 2-1, 4-10, 6-4
Network layer, 4-1, 4-2, 4-9 Sensor, 3-1, 4-3, 5-3, 6-1, 6-2
Network tap, 4-6 Service set identifier (SSID), 5-3
Network Time Protocol (NTP), 3-2 Session sniping, 4-12
Network traffic analysis, 7-5 Shim, 7-3
Network traffic filtering, 7-5 Signature, 2-4
Network traffic flow Editing and viewing, 3-3
See Flow, 6-1 Signature updates. See Updates, signature
Network-based intrusion detection and prevention system, Signature-based detection, 2-3, 2-4, 4-10, 6-5
2-6, 4-1, 8-1 Simulation mode, 3-4
Capacity, 4-12 Skills, 3-9
Normalization, 2-3, 4-13, 8-3 Software updates. See Updates, software
Spanning port, 4-5
State, 2-5
O Stateful protocol analysis, 2-3, 2-5, 4-11
Station (STA), 5-2
Operation, 3-6, 9-10
Stealth mode, 4-14
syslog, 8-4
P System call monitoring, 7-5
Packet, 4-2
Packet capture, 4-9, 6-6 T
Packet dropping, 4-12
TCP reset packets, 4-12, 6-6
Packet header, 4-2
Testing, 3-5, 4-14, 7-9
Passive fingerprinting, 4-8
Threats, 2-2, 5-3, 9-2
D-2
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
Known, 2-4 V
Unknown, 2-4
Threshold, 3-3, 3-4 Virtual local area network (VLAN), 3-2
Training period, 2-5 Vulnerability identification, 4-10
Training, documentation, and technical support, 9-12
Transmission Control Protocol (TCP), 4-2
Transmission Control Protocol/Internet Protocol, 4-1
W
Transport layer, 4-1, 4-2, 4-9 Whitelist, 3-3, 3-4
Triangulation, 5-9 Wireless intrusion detection and prevention system, 2-6, 5-
Tuning, 2-3, 3-3, 3-4, 4-11, 5-10, 6-5, 7-6 1, 8-1
Wireless local area network (WLAN), 5-1
U Wireless networking, 5-1
Wireless sensor, 5-3, 5-6
Updates, 3-8, 9-11 Bundled, 5-4
Signature, 3-8 Dedicated, 5-4
Software, 3-8 Fixed, 5-4
Testing, 3-9 Mobile, 5-4
User accounts, 3-6 Wireless switch, 5-2
User Datagram Protocol (UDP), 4-2 Worms, 6-4
D-3
Identity and Access Management
Identity and access management (IAM) ensures that the right people and job roles in your
organization (identities) can access the tools they need to do their jobs. Identity management
and access systems enable your organization to manage employee apps without logging into
each app as an administrator. Identity and access management systems enable your
organization to manage a range of identities including people, software, and hardware like
robotics and IoT devices.
Security. Traditional security often has one point of failure - the password. If a user's
password is breached - or worse yet, the email address for their password recoveries -
your organization becomes vulnerable to attack. IAM services narrow the points of
failure and backstops them with tools to catch mistakes when they are made.
Productivity. Once you log on to your main IAM portal, your employee no longer has
to worry about having the right password or right access level to perform their duties.
Not only does every employee get access to the perfect suite of tools for their job, their
access can be managed as a group or role instead of individually, reducing the workload
on your IT professionals.
1. IAM confirms that the user, software, or hardware is who they say they are by
authenticating their credentials against a database. IAM cloud identity tools are more
secure and flexible than traditional username and password solutions.
2. Identity access management systems grant only the appropriate level of access. Instead
of a username and password allowing access to an entire software suite, IAM allows
for narrow slices of access to be portioned out, i.e. editor, viewer, and commenter in a
content management system.
IAM systems can be the sole directory used to create, modify, and delete users, or it may
integrate with one or more other directories and synchronize with them. Identity and access
management can also create new identities for users who need a specialized type of access to
an organization's tools.
Specifying which tools and access levels (editor, viewer, and administrator) to grant a user is
called provisioning. IAM tools allow IT departments to provision users by role, department, or
other grouping in consultation with the managers of that department. Since it is time consuming
to specify each individual’s access to every resource, identity management systems enable
provisioning via policies defined based on role-based access control (RBAC). Users are
assigned one or more roles, usually based on job function, and the RBAC IAM system
automatically grants them access. Provisioning also works in reverse; to avoid security risks
presented by ex-employees retaining access to systems, IAM allows your organization to
quickly remove their access.
Authenticating users
IAM systems authenticate a user by confirming that they are who they say they are. Today,
secure authentication means multi-factor authentication (MFA) and, preferably, adaptive
authentication.
Authorizing users
Access management ensures a user is granted the exact level and type of access to a tool that
they are entitled to. Users can also be portioned into groups or roles so large cohorts of users
can be granted the same privileges.
Reporting
IAM tools generate reports after most actions taken on the platform (like login time, systems
accessed, and type of authentication) to ensure compliance and assess security risks.
Single Sign-On
Identity and access management solutions with single sign-on (SSO) allow users to
authenticate their identity with one portal instead of many different resources. Once
authenticated, the IAM system acts as the source of identity truth for the other resources
available to the user, removing the requirement for the user to remember several passwords.
MFA
Multi-factor authentication means that your IAM provider requires more than one type
of proof that you are who you say you are. A typical example is requiring both a
password and a fingerprint. Other MFA choices include facial recognition, iris scans,
and physical tokens like a Yubikey.
SSO
SSO stands for single sign-on. If your IAM solution provides single sign-on, that means
your users can sign in only once and then treat the identity and access management tool
as a "portal" to the other software suites they have access to, all without signing in to
each one.
IAM Technologies
An IAM system is expected to be able to integrate with many different systems. Because of
this, there are certain standards or technologies that all IAM systems are expected to support:
A network security architecture includes both network and security elements, such as the
following:
A security architect is responsible for identifying and working to prevent potential cyber threats
to an organization’s network and systems. As part of their role, security architects should
develop a network and security architecture that provides the visibility and control necessary
to identify and respond to cyber threats to an organization’s systems. This includes developing
a plan for locating security controls to maximize their benefit to the company.
The Check Point Enterprise Security Framework (CESF) defines a process for developing a
network security architecture that includes four primary phases:
Assess: This phase of the process is for business and architecture reviews. The key steps in
this phase include data capture, business modeling, and risk assessments.
Design: This phase is intended to develop a response to the requirements and to build
customized logical design blueprints and recommendations.
Implement: This phase is for professional services, partners, etc. to add low-level design
details and deliver statement-of-works for real-world solutions.
Manage: This phase is geared towards continuous development and incremental
improvements of the security posture.
Network security architectures can be designed based on a few different frameworks. Two of
the most widely used models include zero trust and the Sherwood Applied Business Security
Architecture (SABSA).
Zero Trust
The zero trust security model is designed to replace traditional, perimeter-based security
models that place implicit trust in users, devices, and applications inside of the network. Zero
trust eliminates the network perimeter by treating all devices as potential threats regardless of
their location.
With a zero trust architecture, all requests for access to corporate resources are evaluated on a
case-by-case basis. If the request is deemed legitimate based on role-based access controls
(RBACs) and other contextual data, then access is granted only to the requested asset at the
requested level for the duration of the current session.
A zero trust security architecture provides deep visibility and control over the actions
performed within the corporate network. This is accomplished using a combination of strong
authentication systems, including multi-factor authentication (MFA), and granular access
control implemented using micro-segmentation.
The Sherwood Applied Business Security Architecture (SABSA)
SABSA is a model for developing a security architecture based upon risk and business security
needs. The model identifies business security requirements at the beginning of the process and
works to trace them throughout the entire process of designing, implementing, and maintaining
a security architecture.
SABSA includes a matrix for security infrastructure modeling. This includes multiple different
layers (contextual, conceptual, logical, physical, component, and operational) and questions to
be asked (what, why, how, who, where, and when). At each intersection, the model defines the
component of the security architecture that should address that question at that layer.
Architecting Network Security with Check Point
For nearly thirty years, Check Point has set the standard for cybersecurity. Across the ever-
evolving digital world, from enterprise networks through cloud transformations, from securing
remote employees to defending critical infrastructures, we protect organizations from the most
imminent cyber threats.
Just as a firewall in a building attempts to prevent a fire from spreading, a computer firewall
attempts to prevent computer viruses from spreading to your computer and to prevent
unauthorized users from accessing your computer. A firewall exists between your computer
and the network. It determines which services on your computer remote users on the network
can access. A properly configured firewall can greatly increase the security of your system. It
is recommended that you configure a firewall for any Red Hat Enterprise Linux system with
an Internet connection.
During the Firewall Configuration screen of the Red Hat Enterprise Linux installation, you
were given the option to enable a basic firewall as well as to allow specific devices, incoming
services, and ports.
After installation, you can change this preference by using the Security Level Configuration
Tool.
To start the application, select Main Menu Button (on the Panel) => System Settings =>
Security Level or type the command system-config-securitylevel from a shell prompt (for
example, in an XTerm or a GNOME terminal).
Note
The Security Level Configuration Tool only configures a basic firewall. If the system
needs more complex rules, refer to the Red Hat Enterprise Linux Reference Guide for
details on configuring specific iptables rules.
11.1.1. Enabling and Disabling the Firewall
Disable firewall — Disabling the firewall provides complete access to your system and
does no security checking. Security checking is the disabling of access to certain
services. This should only be selected if you are running on a trusted network (not the
Internet) or plan to do more firewall configuration later.
Warning
If you have a firewall configured or any customized firewall rules in the
/etc/sysconfig/iptables file, the file is deleted by selecting Disable firewall and
clicking OK to save the changes.
Enable firewall — This option configures the system to reject incoming connections
that are not in response to outbound requests, such as DNS replies or DHCP requests.
If access to services running on this machine is needed, you can choose to allow specific
services through the firewall.
If you are connecting your system to the Internet, but do not plan to run a server, this is
the safest choice.
Enabling options in the Trusted services list allows the specified service to pass through the
firewall.
WWW (HTTP)
The HTTP protocol is used by Apache (and by other Web servers) to serve webpages.
If you plan on making your Web server publicly available, enable this option. This
option is not required for viewing pages locally or for developing webpages. You must
have the httpd package installed to serve webpages.
Enabling WWW (HTTP) will not open a port for HTTPS, the SSL version of HTTP.
FTP
The FTP protocol is used to transfer files between machines on a network. If you plan
on making your FTP server publicly available, enable this option. The vsftpd package
must be installed for this option to be useful.
SSH
Secure Shell (SSH) is a suite of tools for logging into and executing commands on a
remote machine. To allow remote access to the machine via ssh, enable this option. The
openssh-server package must be installed to access your machine remotely using SSH
tools.
Telnet
Telnet is a protocol for logging into remote machines. Telnet communications are
unencrypted and provide no security from network snooping. Allowing incoming
Telnet access is not recommended. To allow inbound Telnet access, you must have the
telnet-server package installed.
Mail (SMTP)
To allow incoming mail delivery through your firewall so that remote hosts can connect
directly to your machine to deliver mail, enable this option. You do not need to enable
this if you collect your mail from your ISP's server using POP3 or IMAP, or if you use
a tool such as fetchmail. Note that an improperly configured SMTP server can allow
remote machines to use your server to send spam.
Selecting any of the Trusted devices allows access to your system for all traffic from that
device; it becomes excluded from the firewall rules. For example, if you are running a local
network, but are connected to the Internet via a PPP dialup, you can check eth0 and any traffic
coming from your local network is allowed. Selecting eth0 as trusted means all traffic over the
Ethernet is allowed, but the ppp0 interface is still firewalled. To restrict traffic on an interface,
leave it unchecked.
You may have noticed a sit0 device in the Trusted devices section. This device stands for
simple internet transition, which encapsulates IPv6 traffic into IPv4 traffic, and then is
tunneled. For basic firewall rules, this device can be ignored and left as an untrusted device.
# Important
It is not recommended that you make any device that is connected to public networks,
such as the Internet, a Trusted device.
The Security Level Configuration Tool includes the Other ports section for adding custom IP
ports to become trusted by iptables. For example, to allow NFS, IRC, and Internet printing
protocol (IPP) to be allowed to pass through the firewall, the following would be inserted in
the Other ports section:
2049:tcp,194:tcp,631:tcp
Click OK to save the changes and enable or disable the firewall. If Enable firewall was selected,
the options selected are translated to iptables commands and written to the
/etc/sysconfig/iptables file. The iptables service is also started so that the firewall is activated
immediately after saving the selected options. If Disable firewall was selected, the
/etc/sysconfig/iptables file is removed and the iptables service is stopped immediately.
The options selected are also written to the /etc/sysconfig/system-config-securitylevel file so
that the settings can be restored the next time the application is started. Do not edit this file by
hand.
Even though the firewall is activated immediately, the iptables service is not configured to start
automatically at boot time refer to Section 11.2 Activating the iptables Service for details.
IDPSs typically record information related to observed events, notify security administrators
of important observed events, and produce reports. Many IDPSs can also respond to a detected
threat by attempting to prevent it from succeeding. They use several response techniques,
which involve the IDPS stopping the attack itself, changing the security environment (e.g.,
reconfiguring a firewall), or changing the attack’s content.
IDPSs cannot provide completely accurate detection; they all generate false positives
(incorrectly identifying benign activity as malicious) and false negatives (failing to identify
malicious activity). Many organizations choose to tune IDPSs so that false negatives are
decreased and false positives increased, which necessitates additional analysis resources to
differentiate false positives from true malicious events. Most IDPSs also offer features that
compensate for the use of common evasion techniques, which modify the format or timing of
malicious activity to alter its appearance but not its effect, to attempt to avoid detection by
IDPSs.
Most IDPSs use multiple detection methodologies, either separately or integrated, to provide
more broad and accurate detection. The primary classes of detection methodologies are as
follows:
Signature-based, which compares known threat signatures to observed events to identify
incidents. This is very effective at detecting known threats but largely ineffective at detecting
unknown threats and many variants on known threats. Signature-based detection cannot track
and understand the state of complex communications, so it cannot detect most attacks that
comprise multiple events.
Anomaly-based detection, which compares definitions of what activity is considered normal
against observed events to identify significant deviations. This method uses profiles that are
developed by monitoring the characteristics of typical activity over a period of time. The IDPS
then compares the characteristics of current activity to thresholds related to the profile.
Anomaly-based detection methods can be very effective at detecting previously unknown
threats. Common problems with anomaly-based detection are inadvertently including
malicious activity within a profile, establishing profiles that are not sufficiently complex to
reflect real-world computing activity, and generating many false positives.
Stateful protocol analysis, which compares predetermined profiles of generally accepted
definitions of benign protocol activity for each protocol state against observed events to
identify deviations. Unlike anomaly-based detection, which uses host or network-specific
profiles, stateful protocol analysis relies on vendor-developed universal profiles that specify
how particular protocols should and should not be used. It is capable of understanding and
tracking the state of protocols that have a notion of state, which allows it to detect many attacks
that other methods cannot. Problems with stateful protocol analysis include that it is often very
difficult or impossible to develop completely accurate models of protocols, it is very resource-
intensive, and it cannot detect attacks that do not violate the characteristics of generally
acceptable protocol behavior.
3.
IDPS Technologies
This section provides an overview of IDPS technologies. The information presented in this
section applies to all types of IDPS products; additional information specific to each product
type is presented in Sections 4 through 7. This section first covers the major components of
IDPS technologies and explains the architectures typically used for deploying the components.
It also provides a high-level description of the security capabilities of the technologies,
including the methodologies they use to identify suspicious activity. The rest of the section
discusses the management capabilities of the technologies, including detailed
recommendations for implementation and operation.
3.1
Components and Architecture
This section describes the major components of IDPS solutions and illustrates the most
common network architectures for these components.
3.1.1
Typical Components
The typical components in an IDPS solution are as follows:
Sensor or Agent. Sensors and agents monitor and analyze activity. The term sensor is typically
used for IDPSs that monitor networks, including network-based, wireless, and network
behavior analysis technologies. The term agent is typically used for host-based IDPS
technologies.
Management Server. A management server is a centralized device that receives information
from the sensors or agents and manages them.7 Some management servers perform analysis
on the event information that the sensors or agents provide and can identify events that the
individual sensors or agents cannot. Matching event information from multiple sensors or
agents, such as finding events triggered by the same IP address, is known as correlation.
Management servers are available as both appliance and software-only products. Some small
IDPS deployments do not use any management servers, but most IDPS deployments do. In
larger IDPS deployments, there are often multiple management servers, and in some cases there
are two tiers of management servers.
Database Server. A database server is a repository for event information recorded by sensors,
agents, and/or management servers. Many IDPSs provide support for database servers.
Console. A console is a program that provides an interface for the IDPS’s users and
administrators. Console software is typically installed onto standard desktop or laptop
computers. Some consoles are used for IDPS administration only, such as configuring sensors
or agents and applying software updates, while other consoles are used strictly for monitoring
and analysis. Some IDPS consoles provide both administration and monitoring capabilities.
3.1.2
Network Architectures
IDPS components can be connected to each other through an organization’s standard networks
or through a separate network strictly designed for security software management known as a
management network. If a management network is used, each sensor or agent host has an
additional network interface known as a management interface that connects to the
management network. Also, each sensor or agent host is unable to pass any traffic between its
management interface and any of its other network interfaces. The
7 Because this publication focuses on enterprise IDPS deployment, it assumes that management
servers are used with sensors and agents. However, some types of IDPS sensors and agents can
be deployed standalone, and managed and monitored directly by administrators without using
a management server.
3-1
GUIDE TO INTRUSION DETECTION AND PREVENTION SYSTEMS (IDPS)
management servers, database servers, and consoles are attached to the management network
only. This architecture effectively isolates the management network from the production
networks. The benefits of doing this are to conceal the existence and identity of the IDPS from
attackers; to protect the IDPS from attack; and to ensure that the IDPS has adequate bandwidth
to function under adverse conditions (e.g., worm attack or distributed denial of service [DDoS]
on the monitored networks). Disadvantages of using a management network include the
additional costs in networking equipment and other hardware (e.g., PCs for the consoles) and
the inconvenience for IDPS users and administrators of using separate computers for IDPS
management and monitoring.
If an IDPS is deployed without a separate management network, another way of improving
IDPS security is to create a virtual management network using a virtual local area network
(VLAN) within the standard networks. Using a VLAN provides protection for IDPS
communications, but not as much protection as a separate management network. For example,
misconfiguration of the VLAN could lead to the exposure of IDPS data. Another concern is
that under adverse conditions, such as DDoS attacks or major malware incidents, the network
devices shared by the organization’s primary networks and VLAN might become completely
saturated, negatively impacting the availability and performance of the IDPS.
3.2
Security Capabilities
Most IDPS technologies can provide a wide variety of security capabilities. Sections 3.2.1
through 3.2.4 describe common security capabilities, divided into four categories: information
gathering, logging, detection, and prevention, respectively.
3.2.1 Information Gathering Capabilities
Some IDPS technologies offer information gathering capabilities, such as collecting
information on hosts or networks from observed activity. Examples include identifying hosts
and the operating systems and applications that they use, and identifying general characteristics
of the network.
3.2.2 Logging Capabilities
IDPSs typically perform extensive logging of data related to detected events. This data can be
used to confirm the validity of alerts, investigate incidents, and correlate events between the
IDPS and other logging sources. Data fields commonly used by IDPSs include event date and
time, event type, importance rating (e.g., priority, severity, impact, confidence), and prevention
action performed (if any). Specific types of IDPSs log additional data fields, such as network-
based IDPSs performing packet captures and host-based IDPSs recording user IDs. IDPS
technologies typically permit administrators to store logs locally and send copies of logs to
centralized logging servers (e.g., syslog, security information and event management
software). Generally, logs should be stored both locally and centrally to support the integrity
and availability of the data (e.g., a compromise of the IDPS could allow attackers to alter or
destroy its logs).8 Also, IDPSs should have their clocks synchronized using the Network Time
Protocol (NTP) or through frequent manual adjustments so that their log entries have accurate
timestamps.9
Detection Capabilities- IDPS technologies typically offer extensive, broad detection
capabilities. Most products use a combination of detection techniques, which generally
supports more accurate detection and more flexibility in tuning and customization. The types
of events detected and the typical accuracy of detection vary greatly depending on the type of
IDPS technology. Most IDPSs require at least some tuning and customization to improve their
detection accuracy, usability, and effectiveness, such as setting the prevention actions to be
performed for particular alerts. Technologies vary widely in their tuning and customization
capabilities. Typically, the more powerful a product’s tuning and customization capabilities
are, the more its detection accuracy can be improved from the default configuration.
Organizations should carefully consider the tuning and customization capabilities of IDPS
technologies when evaluating products. Examples of such capabilities are as follows:
Thresholds. A threshold is a value that sets the limit between normal and abnormal behavior.
Thresholds usually specify a maximum acceptable level, such as x failed connection attempts
in 60 seconds, or x characters for a filename length. Thresholds are most often used for
anomaly-based detection and stateful protocol analysis.
Blacklists and Whitelists. A blacklist is a list of discrete entities, such as hosts, TCP or UDP
port numbers, ICMP types and codes, applications, usernames, URLs, filenames, or file
extensions, that have been previously determined to be associated with malicious activity.
Blacklists, also known as hot lists, are typically used to allow IDPSs to recognize and block
activity that is highly likely to be malicious, and may also be used to assign a higher priority
to alerts that match entries on the blacklists. Some IDPSs generate dynamic blacklists that are
used to temporarily block recently detected threats (e.g., activity from an attacker’s IP address).
A whitelist is a list of discrete entities that are known to be benign. Whitelists are typically used
on a granular basis, such as protocol-by-protocol, to reduce or ignore false positives involving
known benign activity from trusted hosts. Whitelists and blacklists are most commonly used
in signature-based detection and stateful protocol analysis.
Alert Settings. Most IDPS technologies allow administrators to customize each alert type.
Examples of actions that can be performed on an alert type include the following:
–
Toggling it on or off10
–
Setting a default priority or severity level
–
Specifying what information should be recorded and what notification methods (e.g., e-mail,
pager) should be used
–
Specifying which prevention capabilities should be used.
Some products also suppress alerts if an attacker generates many alerts in a short period of
time, and may also temporarily ignore all future traffic from the attacker. This is to prevent the
IDPS from being overwhelmed by alerts.
Code Viewing and Editing. Some IDPS technologies permit administrators to see some or all
of the detection-related code. This is usually limited to signatures, but some technologies allow
administrators to see additional code, such as programs used to perform stateful protocol
analysis.
10 In some IDPS technologies, turning off an alert also disables related detection capabilities;
in other products, the detection processing is still done but an alert message is not generated.
For technologies in the first category, shutting off unneeded alerts can reduce the load on the
IDPS.
Viewing the code can help analysts to determine why particular alerts were generated, helping
to validate alerts and identify false positives. The ability to edit all detection-related code and
write new code (e.g., new signatures) is necessary to fully customize certain types of detection
capabilities. For example, a particular alert might be generated by a complex series of events
involving several code modules; customizing the IDPS to understand organization-specific
characteristics might not be possible without editing the code directly. Editing the code requires
programming and intrusion detection skills; also, some IDPSs use proprietary programming
languages, which would necessitate the programmer learning a new language. Bugs introduced
into the code during the customization process could cause the IDPS to function incorrectly or
fail altogether, so administrators should treat code customization as they would any other
alteration of production systems’ code.
Administrators should review tuning and customizations periodically to ensure that they are
still accurate. For example, whitelists and blacklists should be checked regularly and all entries
validated to ensure that they are still accurate and necessary. Thresholds and alert settings might
need to be adjusted periodically to compensate for changes in the environment and in threats.
Edits to detection code might need to be replicated whenever the product is updated (e.g.,
patched, upgraded). Administrators should also ensure that any products collecting baselines
for anomaly-based detection have their baselines rebuilt periodically as needed to support
accurate detection.
3.2.4 Prevention Capabilities
Most IDPSs offer multiple prevention capabilities; the specific capabilities vary by IDPS
technology type. IDPSs usually allow administrators to specify the prevention capability
configuration for each type of alert. This usually includes enabling or disabling prevention, as
well as specifying which type of prevention capability should be used. Some IDPS sensors
have a learning or simulation mode that suppresses all prevention actions and instead indicates
when a prevention action would have been performed. This allows administrators to monitor
and fine-tune the configuration of the prevention capabilities before enabling prevention
actions, which reduces the risk of inadvertently blocking benign activity.
3.3 Management
Most IDPS products offer similar management capabilities. This section discusses major
aspects of management—implementation, operation, and maintenance—and provides
recommendations for performing them effectively and efficiently. It also briefly discusses the
skills needed for IDPS management and provides recommendations for gaining these skills.
3.3.1 Implementation
Once an IDPS product has been selected, the administrators need to design an architecture,
perform IDPS component testing, and deploy and secure the IDPS components. Sections
3.3.1.1 through 3.3.1.3 provide more information on these actions.
3.3.1.1 Architecture Design
The first step in IDPS implementation is designing an architecture. Architectural considerations
include the following:
Where the sensors or agents should be placed
How reliable the solution should be and what measures should be used to achieve that
reliability, such as having multiple sensors monitor the same activity in case a sensor fails, or
using multiple management servers so that a backup server can be used in case the primary
server fails
Where the other components of the IDPS will be located (e.g., management servers, database
servers, consoles), and how many of each component are needed to achieve the necessary
usability, redundancy, and load balancing goals
With which other systems the IDPS needs to interface, including the following:
–
Systems to which it provides data, such as security information and event management
software, centralized log servers, e-mail servers, and paging systems
–
Systems on which it initiates prevention responses (e.g., firewalls, routers, switches)
–
Systems that manage IDPS components, such as network management software (for a
management network) or patch management software (for keeping consoles’ operating systems
and applications fully up-to-date)
Whether or not a management network will be used; if so, what its design will be, and if not,
how the IDPS communications will be protected on the standard networks
What other security controls and technologies need to be altered to accommodate IDPS
deployment, such as changing firewall rulesets to allow IDPS components to communicate.
3.3.1.2 Component Testing and Deployment
Organizations should consider implementing the components in a test environment first,
instead of a production environment, to reduce the likelihood of implementation problems
disrupting the production networks. When the components are being deployed to production
networks, organizations should initially activate only a few IDPS sensors or agents, with their
prevention capabilities disabled. Because a new deployment is likely to generate a large
number of false positives until fully tuned and customized, activating many sensors or agents
at once might overwhelm the management servers and consoles, making it difficult for
administrators to perform tuning and customization. Many false positives are likely to be the
same across sensors or agents, so it is helpful to identify such false positives either during the
testing process or when deploying the first few sensors or agents, so that those false positives
can be addressed before widespread deployment. A phased deployment of sensors or agents is
also helpful in identifying potential problems with scalability.
Implementing an IDPS can necessitate brief network or system outages for component
installation. As mentioned above, performing a deployment in a test environment can be very
helpful in identifying likely implementation problems, so that they can be mitigated
appropriately when the production deployment occurs.
Appliance-based IDPS components are typically simple to deploy. Administrators might need
to perform software updates or signature updates to ensure the IDPS software is current.
Otherwise, administrators usually just need to provide power and connect network cables, boot
the appliance, and perform some basic configuration (e.g., enter a product license key, assign
a name to the sensor).
Software-based IDPS components usually take more time to deploy than appliance-based
components. The organization first needs to acquire the appropriate hardware, which might
include purchasing high-bandwidth network cards and otherwise ensuring that the hardware is
robust enough for the IDPS. Next, administrators need to install an operating system (OS) that
is compatible with the IDPS software, and
then harden the host as much as possible. Hardening should include updating the OS, services,
and applications, including the IDPS software. Administrators also need to perform basic
configuration of the IDPS software, just as is done for appliance-based IDPS components.
After deploying either appliance-based or software-based IDPS components, considerable
effort may be needed to configure the products’ detection and prevention capabilities,
depending on the type of IDPS being deployed. Without performing this configuration work,
some IDPSs might be capable of detecting only a small number of older, easily identified
attacks.
Wireless and Wired Network Guide
HP all-in-one Network Guide
© Copyright 2004 Hewlett-Packard The Hewlett-Packard Company shall 3 Observe all warnings and
Development Company, L.P. not be liable for incidental or instructions marked on the
The information contained herein is consequential damages in connection product.
subject to change without notice. with, or arising out of the furnishing, 4 Unplug this product from wall
performance, or use of this document outlets before cleaning.
Reproduction, adaptation or translation
and the program material which it 5 Do not install or use this product
without prior written permission is
describes. near water or when you are wet.
prohibited, except as allowed under
copyright laws. Note: Regulatory information can be 6 Install the product securely on a
found in the technical information stable surface.
This product incorporates Adobe’s PDF
chapter of this guide. 7 Install the product in a protected
technology, which contains an
implementation of LZW licensed under location where no one can step
U.S. Patent 4,558,302. on or trip over the line cord, and
where the line cord will not be
damaged.
8 If the product does not operate
normally, see the onscreen
It is not lawful in many places to make
Troubleshooting Help.
copies of the following items. When in
doubt, check with a legal 9 No operator-serviceable parts
representative first. inside. Refer servicing to
qualified service personnel.
Adobe and the ● Governmental paper or
10 Use in a well-ventilated area.
Acrobat logo are either registered documents:
trademarks or trademarks of Adobe – Passports
Systems Incorporated in the United – Immigration papers
States and/or other countries.
– Selective service papers
Portions Copyright © 1989-2003 – Identification badges,
Palomar Software Inc. The HP Officejet cards, or insignias
5500 Series includes printer driver
● Governmental stamps:
technology licensed from Palomar
Software, Inc. www.palomar.com Postage stamps
Copyright © 1999-2003 Apple Food stamps
Computer, Inc. ● Checks or drafts drawn on
This product includes software Governmental agencies
developed by the OpenSSL Project for ● Paper currency, traveler’s
use in the OpenSSL Toolkit. (http:// checks, or money orders
www.openssl.org/)</ ● Certificates of deposit
Apple, the Apple logo, Mac, Mac logo, ● Copyrighted works
Macintosh, and Mac OS are
trademarks of Apple Computer, Inc.,
safety information
registered in the U.S. and other
Warning To prevent fire or
countries.
shock hazard, do not expose
Publication number: Q3462-90198 this product to rain or any type
First edition: July 2004 of moisture.
Windows®, Windows NT®, Windows
ME®, Windows XP®, and Windows Always follow basic safety precautions
2000® are U.S.-registered trademarks when using this product to reduce risk
of Microsoft Corporation. of injury from fire or electric shock.
Intel® and Pentium® are registered Warning Potential shock
trademarks of Intel Corporation. hazard
notice
1 Read and understand all
The only warranties for HP products
instructions in the setup poster.
and services are set forth in the
express warranty statements 2 Use only a grounded electrical
accompanying such products and outlet when connecting the
services. Nothing herein should be device to a power source. If you
construed as constituting an additional do not know whether the outlet is
warranty. HP shall not be liable for grounded, check with a qualified
technical or editorial errors or electrician.
omissions contained herein.
Contents
1 Get started.............................................................................................................3
Choose a network type...........................................................................................3
Choose a connection type......................................................................................3
Use the network management tools.......................................................................4
Switch from a USB connection to a network connection......................................... 4
Connect additional computers................................................................................5
Get HP support.......................................................................................................5
2 Choose a recommended wireless network........................................................7
Wireless connection networks................................................................................7
3 Choose a recommended Ethernet network......................................................11
Ethernet connection to a wired network with DSL or cable Internet access..........11
Ethernet connection to a wired network with modem Internet access..................12
Ethernet connection to a wired network without Internet......................................13
Ethernet connection to a wireless network...........................................................13
4 Connect to a wireless network with an access point......................................15
What you need.....................................................................................................15
Connect to the network.........................................................................................16
5 Connect to a wireless network without an access point.................................19
What you need.....................................................................................................19
Prepare your computer.........................................................................................19
Create a network profile........................................................................................ 20
Connect to the network using the Wireless Setup Wizard....................................23
6 Connect with an Ethernet cable........................................................................25
What you need.....................................................................................................25
Connect your HP all-in-one...................................................................................26
7 Install the software.............................................................................................27
For Windows.........................................................................................................27
For Macintosh.......................................................................................................28
8 Manage your network.........................................................................................29
Use the HP all-in-one control panel......................................................................29
Use the Embedded Web Server...........................................................................31
9 Network troubleshooting...................................................................................35
Wireless setup wizard troubleshooting.................................................................35
Wireless network setup troubleshooting...............................................................36
Wireless discovery troubleshooting......................................................................40
Wired network setup troubleshooting...................................................................45
Common Internet File System troubleshooting.....................................................48
a Configuration page definitions..........................................................................49
General network settings......................................................................................49
Wireless network settings.....................................................................................51
Miscellaneous.......................................................................................................53
b Glossary..............................................................................................................55
Index...........................................................................................................................57
Note For definitions of terms used in this guide, see the Glossary.
4
2 Connect your HP all-in-one, as described in Connect to a wireless network with an
access point, Connect to a wireless network without an access point, or Connect
with an Ethernet cable.
3 Install the software, as described in Install the software.
4 When the installation is complete, access the printer icons on your computer as
follows:
– For Windows XP: Open the Printers and Faxes folder.
– For Windows 9.x or Windows 2000: Open the Printers folder.
– For Macintosh OS X: Open the Printer Setup Utility in the Utilities list.
5 Check to see if the USB printer icon for your HP all-in-one is there. If it is, delete it.
Get HP support
For information on how to get HP customer support, please see the printed User Guide
that came with your HP all-in-one.
6
2 Choose a recommended wireless
network
Use this chapter to help you identify what kind of wireless network you already have in
place or want to set up. Each network shown in this chapter uses a wireless access
point to connect the network elements. A network connected in this manner is called an
infrastructure network.
If you want a wireless connection between your HP all-in-one and your computer
without using a wireless access point, see Connect to a wireless network without an
access point.
For Ethernet (wired) networks, see Choose a recommended Ethernet network.
Note For definitions of terms not defined here, see the Glossary.
A wireless router (also known as an access point) manages the network connections
and a DSL or cable modem is used to provide Internet access. If you have this
configuration, use the wireless setup wizard to connect your HP all-in-one to the router
in infrastructure mode. For connection instructions, see Connect to a wireless network
with an access point.
With this configuration, you are able to access the full functionality of your HP all-in-
one, including sharing pictures over the Internet with HP Instant Share.
All wireless communication between your network devices goes through an access
point (or base station). The access point acts as a central hub or gateway connecting
wireless devices. Each wireless network device must have an adapter that connects it
to the access point. This network configuration does not have Internet access. For
connection instructions, see Connect to a wireless network with an access point.
Note In order to use the HP Instant Share features on your HP all-in-one, you will need
broadband Internet access, such as cable or DSL. For more information about
HP Instant Share, see the printed User Guide that came with your HP all-in-one.
8
Wireless connection to a wired network
Your access point connects a wireless network to a wired network. In this model, your
computer is configured for wired networking and is connected with an Ethernet cable to
the access point. Your HP all-in-one is configured for infrastructure mode and its
wireless adapter transfers and receives data through the access point. A DSL or cable
modem can provide Internet access. For connection instructions, see Connect to a
wireless network with an access point.
10
3 Choose a recommended
Ethernet network
Use this chapter to help you identify what kind of Ethernet network you already have in
place or want to set up. Each network shown here uses a device, such as an Ethernet
router, to connect the network elements. A network connected in this manner is called
an infrastructure network. An Ethernet network provides superior performance,
reliability, and network security.
Ethernet networks might or might not be connected to the Internet. If you place your
HP all-in-one on an Ethernet network connected to the Internet, it is recommended that
you use a gateway so that the HP all-in-one’s IP address is assigned dynamically
through Dynamic Host Configuration Protocol (DHCP). A gateway can either be a
router or a Windows computer running Internet Connection Sharing (ICS).
For wireless networks, see Choose a recommended wireless network.
Note For definitions of terms not defined here, see the Glossary.
We recommend the wired LAN (local area network) configurations below to support
your HP all-in-one.
In this example, a router manages the network connections, and a DSL or cable modem
provides Internet access. If you use this configuration, connect your HP all-in-one to the
router with an Ethernet cable.
With this configuration, you are able to access the full functionality of the HP all-in-one,
including sharing pictures over the Internet . For connection instructions, see Connect
with an Ethernet cable.
Computer gateway
In this example, the network devices are connected to a switch or router. A computer on
the network acts as the gateway between the network and the Internet. The gateway
computer uses Windows Internet Connection Sharing (ICS) or similar software to
manage the network connections and provide Internet access to the other devices.
Note If the computer acting as a gateway is turned off, the other computers on the
network will lose their Internet connection. The HP all-in-one will not support
Internet-related functions.
If you use this configuration, connect your HP all-in-one to the switch or router with an
Ethernet cable. For connection instructions, see Connect with an Ethernet cable.
In this example, the network devices are connected to a switch or router, and a modem
(shown here connected to the computer on the left) provides Internet access. The
modem is connected to the computer using a phone cord and jack. Only one computer
has Internet access. Neither the HP all-in-one nor any of the other computers on the
network have access to the Internet. If you use this configuration, connect your HP all-
in-one to the switch or router with an Ethernet cable. For connection instructions, see
Connect with an Ethernet cable.
Note In order to use the HP Instant Share features on your HP all-in-one, you will need
broadband Internet access, such as cable or DSL. For more information about
HP Instant Share, see the printed User Guide that came with your HP all-in-one.
12
Ethernet connection to a wired network without Internet
In this example, the network devices are connected to a switch or router, and there is no
Internet connection. Devices use AutoIP, which means IP addresses are configured
automatically. If you have this configuration, connect your HP all-in-one to the switch or
router with an Ethernet cable. For connection instructions, see Connect with an
Ethernet cable.
Note In order to use the HP Instant Share features on your HP all-in-one, you will need
broadband Internet access, such as cable or DSL. For more information about
HP Instant Share, see the printed User Guide that came with your HP all-in-one.
Your access point connects a wired device to a wireless network. In this model, your
computer is configured for wireless networking using a wireless network adapter, and
transfers and receives data through the access point. Your HP all-in-one is configured
for wired networking and is connected with an Ethernet cable to the access point. A
DSL or cable modem can provide Internet access. For connection instructions, see
Connect with an Ethernet cable.
Note In this configuration, we recommend that you route the Internet connection
directly through the access point using an Ethernet cable.
14
4 Connect to a wireless network
with an access point
Use this chapter if you want to use a wireless (802.11b or g) access point to connect
your HP all-in-one and the other network elements. When network elements are
connected through an access point, this is called infrastructure mode.
The benefits of using an access point include:
● advanced network security
● enhanced reliability
● network flexibility
● better performance, especially with 802.11 g mode
For ideas on ways you can set up a wireless network using an access point, see
Wireless connection networks.
For wireless setup without an access point, see Connect to a wireless network without
an access point.
Note For definitions of terms not defined here, see the Glossary.
To connect your HP all-in-one to your computer, first see the next section for the things
you will need. When you are finished connecting your HP all-in-one, you will need to
install the software as described in Install the software.
built-in Ethernet (wired network) port. For a wired connection, you might have to
purchase a longer Ethernet cable than the one provided.
● Broadband Internet access (recommended). If you connect your HP all-in-one on a
wireless network that has Internet access, we recommend that you use a wireless
router (access point or base station) that uses Dynamic Host Configuration
Protocol (DHCP).
Broadband Internet access is required if you want to access HP Instant Share
directly from the device. For more information on HP Instant Share, see the printed
User Guide that came with your HP all-in-one.
Note For Macintosh users: If the network is set up with an Apple AirPort Base
station and you are using a password instead of WEP HEX or WEP ASCII to
access this network, you need to get the equivalent WEP key. Your network
administrator can get the equivalent WEP key by running the AirPort Admin
utility.
Note You must enter the exact uppercase (capital) and lowercase (small)
letters. Otherwise, the wireless connection will fail.
c When you are finished entering the new SSID, use the arrow buttons to
highlight Done on the visual keyboard, and then press OK.
d Press 1 to select the infrastructure mode..
16
e Press 2 to select WEP encryption.
OR
Press 3 to select WPA encryption.
5 If prompted, enter your WPA or WEP key. Use the arrow buttons to highlight a
letter or number on the visual keyboard, and then press OK to select it.
Note You must enter the exact uppercase (capital) and lowercase (small) letters.
Otherwise, the wireless connection will fail.
If a message says you entered an invalid WPA or WEP key, check the key you
wrote down for your new network, and then re-enter the key.
6 When you are finished entering the WPA or WEP key, use the arrow buttons to
highlight Done on the visual keyboard, and then press OK.
7 Press OK to confirm.
The HP all-in-one will attempt to connect to the network. If the connection fails,
follow the prompts to correct the key, and then try again. See also, Network
troubleshooting
8 When the HP all-in-one connects successfully to the network, go to your computer
to install the software. See Install the software.
18
5 Connect to a wireless network
without an access point
Use this chapter if you want to connect your HP all-in-one to a computer on a wireless
network without using an access point. This is sometimes called a peer-to-peer or ad
hoc network. On Macintosh networks, this is called a computer-to-computer network.
Note This type of connection is available if you do not have an access point. However,
it provides little flexibility, a low level of network security, and slower network
performance than with an access point. In addition, you will likely not have
shared broadband access (such as cable or DSL), and therefore not be able to
use the HP Instant Share feature on your HP all-in-one. For information on
connecting your HP all-in-one using an access point, see Connect to a wireless
network with an access point.
To connect your HP all-in-one to your computer, see the next section for the things you
will need. Then follow the steps in the remaining sections to do the following:
● prepare your computer
● create a wireless network profile on your computer
● connect the HP all-in-one to the wireless network
When finished, install the software as described in Install the software.
Note For definitions of terms not defined here, see the Glossary.
For Windows
Make sure to check the following:
● Quit all applications running on your computer, including the internal XP firewall
and any other firewall or virus detection software.
● Disable your Internet connection. If you have cable or DSL, disconnect the
Ethernet cable from the back of your computer. If you have dial-up, disconnect the
phone cord.
● Disable all LAN connections (including Ethernet) other than your wireless
connection. Also, disable all IEEE 1394 (such as Firewire, i.LINK or Lynx) to
Ethernet connections.
For Windows XP:
– Click the Windows Start button, click Control Panel, and then double-click
Network Connections.
– Right-click each Local Area Connection, and then click Disable. If you see
Enable on the pop-up menu, the Local Area Connection is already disabled.
For Macintosh
Quit all applications running on your computer.
Note You can use a different name for your network other than the example
shown here, such as your initials. Just remember that the network name is
case sensitive. Therefore, you must remember which letters are uppercase
and lowercase.
For Windows XP
Your HP all-in-one comes configured with a network profile named hpsetup. However,
for security and privacy we recommend you create a new network profile on your
computer as described here, and then use the Wireless Setup Wizard to detect the new
network (as described in the next section).
1 Make sure you have followed all of the instructions in the previous section, Prepare
your computer.
2 In the Control Panel, double-click Network Connections.
20
3 On the Network Connections window, right-click the Wireless Network
Connection. If you see Enable on the pop-up menu, choose it. Otherwise, if you
see Disable on the menu, the wireless connection is already enabled.
4 Right-click the Wireless Network Connection icon, and then click Properties.
5 Click the Wireless Networks tab.
6 Select the Use Windows to configure my wireless network settings check box.
7 Click Add, and then do the following:
a In Network name (SSID) box, type in the name Mynetwork (or something
more meaningful, such as your initials).
Note Notice that the M in Mynetwork is uppercase (capital), and the rest of
the letters are lowercase (small). This is important to remember in case
you need to enter the SSID at a later time on the Wireless Setup
Wizard.
Note It is possible to create a network that does not use a WEP key.
However, we recommend using a WEP key in order to secure your
network.
d Make sure that the check box is not selected next to The key is provided for
me automatically. If it is selected, click to clear it.
e In the Network key box, type an WEP key that has exactly 5 or exactly 13
alphanumeric (ASCII) characters. For example, if you enter 5 characters, you
might enter ABCDE or 12345. Or, if you enter 13 characters, you might enter
ABCDEF1234567.
Alternatively, you can use HEX (hexidecimal) characters for the WEP key. A
HEX WEP key must be 10 characters for 40 bit encryption, or 26 characters
for 128 bit encryption. For definitions of ASCII and HEX, see the Glossary.
f In the Confirm network key box, type the same WEP key you typed in the
previous step.
g Write down the WEP key exactly as you typed it, including uppercase and
lowercase letters.
Note You must remember the exact uppercase (capital) and lowercase
(small) letters. If you enter your WEP key incorrectly on the HP all-in-
one, the wireless connection will fail.
h Select the check box for This is a computer-to-computer (ad hoc) network;
wireless access points are not used.
i Click OK, to close the Wireless network properties window. and then click
OK again.
j Click OK again to close the Wireless Network Properties Connection
window.
8 Go to your HP all-in-one and use the Wireless Setup Wizard to connect your
HP all-in-one to the wireless network. See Connect to the network using the
Wireless Setup Wizard.
For Mac OS X
Your HP all-in-one comes configured with a network profile named hpsetup. However,
for security and privacy we recommend you create a new network profile on your
Macintosh as described here, and then use the Wireless Setup Wizard to detect the new
network (as described in the next section).
AirPort icon
To check this, click on the Airport icon in the upper-right part of the screen.
If Turn Airport On is available, select it to turn on the AirPort.
If the AirPort icon is not present, do the following:
a On the Network Preferences screen, select Airport Panel.
b Enable Allow the computer to create networks.
c Enable Show Airport status in menu bar.
2 Click the AirPort icon.
3 Select Create Network….
4 On the Computer to Computer dialog, click in the Name box and enter a new
network name.
For example you can type the name Mynetwork (or something more meaningful,
such as your initials).
Note Notice that the M in Mynetwork is uppercase (capital), and the rest of the
letters are lowercase (small). This is important to remember in case you
need to enter the SSID at a later time on the Wireless Setup Wizard.
22
Connect to the network using the Wireless Setup Wizard
1 On the control panel of your HP all-in-one, press the Setup button.
2 Press 8, and then press 4.
This displays the Network menu and then selects Wireless Setup Wizard. The
setup wizard searches for available networks, and then displays a list of detected
network names (SSIDs).
3 On the color graphics display, look for the network name you created on your
computer (for example, Mynetwork).
4 Use the arrow keys to highlight the network name, and then press OK.
If you found your network name and selected it, go on to step 5. However, if you do
not see your network name in the list, do the following:
a Select Enter a New Network Name (SSID).
The visual keyboard appears.
b Enter the SSID. Use the arrow buttons on the HP all-in-one control panel to
highlight a letter or number on the visual keyboard, and then press OK to
select it.
For more information on using the visual keyboard, see the printed User Guide
that came with your HP all-in-one.
Note You must enter the exact uppercase (capital) and lowercase (small)
letters. Otherwise, the wireless connection will fail.
c When you are finished entering the new SSID, use the arrow buttons to
highlight Done on the visual keyboard, and then press OK.
d Press 2 to select ad hoc mode.
e Press 2 to select Yes, my network uses WEP encryption and display the
visual keyboard.
If you do not want to use WEP encryption, press 1 to select No, my network
does not use encryption. When the Confirm Settings screen appears, press
OK, and then go to step 8.
5 (Do this step only if you have a WEP key. If you do not have a WEP key, go to step
8.) Enter your WEP key. Use the arrow buttons to highlight a letter or number on
the visual keyboard, and then press OK to select it.
Note You must enter the exact uppercase (capital) and lowercase (small) letters.
Otherwise, the wireless connection will fail.
If a message says you entered an invalid WEP key, check the key you wrote down
for your new network, and then re-enter the WEP key.
6 When you are finished entering the WEP key, use the arrow buttons to highlight
Done on the visual keyboard, and then press OK.
7 Press OK to confirm.
The HP all-in-one will attempt to connect to the SSID. If the connection fails, follow
the prompts to correct the WEP key, and then try again.
8 When the HP all-in-one connects successfully to the network, go to your computer
to install the software. See Install the software.
24
6 Connect with an Ethernet
cable
Use this chapter to connect your HP all-in-one to a router, switch, or access point using
an Ethernet cable.
For ideas on how to set up a wired network, see Choose a recommended Ethernet
network.
Note For definitions of terms not defined here, see the Glossary.
To connect your HP all-in-one to your computer, first see the next section for the things
you will need. When you are finished connecting your HP all-in-one, you will need to
install the software as described in Install the software.
Although standard Ethernet cables look similar to standard telephone cables, they
are not interchangeable. There is a different number of wires in each one, and each
has a different connector. An Ethernet cable connector (also called an RJ-45
connector) is wider and thicker and always has 8 contacts on the end. A phone
connector has between 2 and 6 contacts.
● A desktop computer or laptop with either a wired or wireless connection to the
router or access point.
Note The HP all-in-one supports both 10 Mbps and 100 Mbps Ethernet networks.
If you are purchasing, or have purchased, a network interface card (NIC),
make sure it can operate at either speed.
● Broadband Internet access such as cable or DSL (only if you want to access
HP Instant Share directly from the device). For more information on HP Instant
Share, see the printed User Guide that came with your HP all-in-one.
2 Connect the Ethernet cable to the Ethernet port on the back of your HP all-in-one.
3 Connect the other end of the Ethernet cable to an available port on your Ethernet
router, switch, or wireless access point.
4 Once you have connected the HP all-in-one to the network, go to your computer to
install the software. See Install the software.
26
7 Install the software
Use this chapter to install your HP all-in-one software on either a Windows or Macintosh
computer. However, before you install the software, make sure you have connected
your HP all-in-one as described in one of the previous chapters.
Note 1 If you intend to use multiple WEP keys, or advanced authentication protocols
(EAP/802.1x or EAP-PSK) and encryption methods (WPA), use the Embedded
Web Server to configure your wireless settings prior to software installation.
For more information, see Use the Embedded Web Server.
For Windows
The following instructions are for Windows computers only.
Note Installation time can range from 20 to 45 minutes depending on your operating
system, the amount of available space, and the processor speed of your
computer.
Note Windows XP only: If the startup screen does not appear, double-click My
Computer, double-click the CD-ROM icon, and then double-click setup.exe.
3 Click Next on the installation screens for checking and preparing the system, and
for installing drivers, plug-ins, and software.
After several screens, the Connection Type screen appears.
4 On the Connection Type screen, select Through the network, and then click
Next.
The Searching screen appears as the Setup program searches for your HP all-in-
one on the network.
5 On the Printer Found screen, verify that the printer description is correct.
If more than one printer is found on the network, the Printers Found screen
appears. Select the device you wish to connect.
To see the device settings on your HP all-in-one:
a Go to the control panel on your device.
b Select View Network Settings on the Network Menu, and then select
Display Summary.
Note If the software is unable to find the HP all-in-one, see The Printer Not Found
screen appears during installation.
For Macintosh
The following instructions are for Macintosh computers only.
Note Installation time can range from 20 to 45 minutes depending on your operating
system, the amount of available space, and the processor speed.
4 On the Authentication screen, enter the Administrator pass phrase used to access
your computer or network.
The installer software looks for HP all-in-one devices, and then lists them.
5 On the Select Device, select your HP all-in-one.
6 Follow the onscreen instructions to complete all the installation steps, including the
Setup Assistant.
When you have finished installing the software, your HP all-in-one is ready for
service.
7 To test your network connection, go to your computer and print a test page to your
HP all-in-one. For more information, see the printed User Guide that came with
your device.
28
8 Manage your network
This chapter describes how to use the network tools on the device control panel and the
Embedded Web Server. These tools enable you to view and edit network settings, and
add advanced security to your network.
Note This will erase all wireless setup information that you have entered. In order to
restore this information, you will need to use the Wireless Setup Wizard again.
Note Unless you are an advanced user, you should not change any of these settings.
Change IP settings
The default IP setting is Automatic. However, if necessary, you can manually change
the IP address, subnet mask, or the default gateway. To see the IP address and subnet
mask of your HP all-in-one, print a network configuration page from your HP all-in-one
30
(see Print and view a network configuration page). For a description of the items on the
configuration page, including the IP address and subnet mask, see Configuration page
definitions.
To change an IP setting
1 On the control panel of the HP all-in-one, press the Setup button.
2 Press 8, and then press 3.
This displays the Network menu and then selects Advanced Setup.
3 Press 2 to select IP Settings.
4 Press the number next to the IP setting:
– 1. IP Address
– 2. Subnet Mask
– 3. Default Gateway
5 Enter your changes, and then press OK when done.
3 In the Address box in your web browser, enter the IP address of the HP all-in-one,
as shown on the network configuration page. For example, http://195.168.0.5.
The Embedded Web Server Home page appears, showing the HP all-in-one device
information.
Note If you are using a proxy server in your browser, you might need to disable it
to access the Embedded Web Server.
4 If you need to change the language displayed in the Embedded Web Server, do the
following:
a Click the Settings tab.
b Click Select Language in the Settings navigation menu.
c In the Select Language list, click the appropriate language.
d Click Apply.
5 Click the Home tab to access device and network information, or click the
Networking tab to access more network information or to modify network
information.
Caution Be very careful when changing the wireless network settings for the
print server; you could lose your network connection. If you lose your network
connection, you might need to use the new settings to reconnect. If the print
server loses its network connection, you might need to reset it to factory-default
and reinstall the software.
Note If you decide to add encryption and authentication to your network after installing
the HP all-in-one, change the settings on your HP all-in-one prior to changing
them on other devices on your network.
32
To add WPA-PSK security
Note You will lose the connection to the HP all-in-one until the encryption/
authentication settings are applied to the rest of the devices on the network.
Note You will lose the connection to the HP all-in-one until the encryption/
authentication settings are applied to the rest of the devices on the network.
34
9 Network troubleshooting
This section contains network troubleshooting information for the HP all-in-one. Specific
information is provided for installation and configuration issues.
Cause
The equipment is not turned on.
Solution
Turn on the networked devices, such as the access point for an infrastructure
network, or the computer for an ad hoc network.
Cause
The HP all-in-oneNo is not receiving a signal.
Solution
Move the access point and the HP all-in-one closer together. Then run the HP all-
in-one wireless setup wizard again. For more information, see Setup failed.
Cause
You have entered the SSID incorrectly.
Solution
Enter the SSID correctly. Remember that the SSID is case sensitive.
Cause
You entered the wrong mode (ad hoc or infrastructure) or security type.
Solution
Enter the correct mode or security type.
Cause
Your network is configured with an authentication protocol not supported by the
installation software.
Solution
Use one of the supported protocol types listed in the Embedded Web Server.
Types not supported include: WPA2-AES, WPA2-TKIP, LEAP, PEAP, EAP-MD5,
EAP-TLS, or EAP-TTLS.
Cause
You have entered the WPA passkey incorrectly.
Solution
Enter the correct passkey, making sure it has between 8 and 63 characters.
Cause
I don't know the WEP key, or what to enter for the WPA passkey.
Solution
See the documentation that came with your access point. The WEP key is stored
within the access point. Usually you can find the WEP key by logging on to the
access point through your computer.
Cause
Your access point is not broadcasting its network name (SSID), or the access point
is out of range.
Solution
Use the Enter a New Network Name (SSID) option in the Wireless Setup Wizard.
For more information, see Connect to the network. Also, see the user guide that
came with your access point and check the access point settings.
Cause
The SSID is out of sight at the bottom of the list.
Solution
Press to scroll to the bottom of the list. Infrastructure entries are listed first, ad
hoc last.
36
I received a System Requirements Error: No TCP/IP
Cause
Your Local Area Network (LAN) card (NIC) is not installed properly.
Solution
Make sure your LAN card is installed properly and set up for TCP/IP. See the
instructions that came with your LAN card.
Cause
The software failed to find the network.
Solution
Use the installation software to specify the HP all-in-one by its IP address as
follows:
1 On the Printer Not Found screen, click Next.
2 On the Connection Type screen, select Wired Network (not Wireless).
3 On the Check Cable Connection screen, select Specify a printer by
address.
4 On the control panel of the HP all-in-one, press the Setup button.
5 Press 8, press 1, and then press 2.
This displays a summary of the HP all-in-one network settings on the color
graphics display, including the IP address. You will use the IP address in the
next step.
6 On the Specify Printer screen, select IP Address, and enter the IP address
for your HP all-in-one.
7 Continue to click Next on the screens that follow. Do not select Change
Settings or plug in a cable to the device. This will cause device discovery to
fail.
Cause
The HP all-in-one is not turned on.
Solution
Turn on the HP all-in-one.
Cause
You do not have an active network connection.
Solution
Make sure that you have an active network connection.
Cause
There is radio interference.
Solution
If there is a long distance between your computer and the HP all-in-one, move them
closer together. If possible, provide a clear path between the computer and print
server, and minimize sources of radio interference. Devices such as cordless
phones and microwave ovens may also cause radio interference.
Cause
Setup has either detected multiple networks or has been unable to read or verify
the network name from the access point.
Solution
Select a new network name (SSID).
● In the Select Network Name screen, select an existing network name from the
list. Up to 12 SSIDs might be listed. The SSIDs are detected when the internal
networking component boots up.
Cause
You might not have the correct wireless authentication or encryption type selected.
You might be using an unsupported authentication or encryption type.
38
Solution
Add encryption security to your network. For information, see Add security to the
network.
Cause
Your SSID or WEP key might be set incorrectly.
Solution
You can use either the Embedded Web Server or the control panel to change the
SSID or WEP.
Cause
You are using an authentication protocol not supported by the installation
software.
Solution
Use one of the supported protocol types listed in the Embedded Web Server.
Types not supported include: WPA2-AES, WPA2-TKIP, LEAP, PEAP, EAP-MD5,
EAP-TLS, or EAP-TTLS.
Cause
Your network uses multiple WEP keys, and you have chosen the wrong key for
transmitting.
Solution
Choose the correct WEP key using the Embedded Web Server. For information,
see Add security to the network
Setup failed
Cause
The HP all-in-one is not receiving a signal.
Solution
In order to establish a good signal between the HP all-in-one and access point
(infrastructure) or computer (ad hoc), you might have to experiment a bit. Assuming
the equipment is functioning properly, try doing the following things separately or in
combination:
● If there is a long distance between your computer or access point and the
HP all-in-one, move them closer together. Also, be aware that the HP all-in-
one broadcasts to the front, back and above. Therefore, do not place an
access point directly below the HP all-in-one. If the HP all-in-one is on the
second floor of a two-story house, and you must put the access point on the
first floor, place the HP all-in-one and access point on opposite ends of the
house or as far apart laterally as possible.
● If there are objects in the transmission path, clear the path between the
HP all-in-one and the computer or access point.
● If a cordless telephone, microwave, or other device that emits radio signals is
nearby, move it farther away to reduce radio interference.
40
Wireless discovery troubleshooting
Use this section to solve problems with wireless networks that have an access point.
Cause
Your cables are not connected properly.
Solution
Check the following cables to ensure they are connected properly:
● Power cords to the HP all-in-one and the router
● Cables between the router and your computer (if applicable)
● Cables to and from your modem or HP all-in-one Internet connection (if
applicable)
Cause
The network connection is not active.
Solution
Check to see if you have an active network connection.
Network icon
The icon on the left shows an active wireless network. The icon on the right
shows an inactive wireless network.
If the wireless network icon is not active, make sure all cable connections are
secure. This includes connections from your cable or DSL modem, gateway,
or router.
3 If the HP all-in-one is connected to the network, check the signal strength on
the wireless network icon to make sure there is a strong signal.
4 If the network light is off, check cable connections from the HP all-in-one to
your gateway or router to ensure connections are secure.
5 If the connections are secure, press the On button to turn off the HP all-in-
one, and then press it again to turn it on. Also, turn off the power on your
router and then turn it on again.
Cause
The firewall is preventing the HP all-in-one from accessing your computer.
Solution
Try temporarily disabling the firewall to determine whether the firewall is preventing
the HP all-in-one from accessing your computer. If the firewall is preventing
access, grant access permission to the HP all-in-one.
Cause
Your access point is not broadcasting its network name (SSID).
Solution
Verify your access point is broadcasting its network name (SSID).
Cause
Setup has failed.
Solution
Turn off the access point, and then turn it on again. Then uninstall and reinstall the
HP all-in-one software.
For more information on uninstalling and reinstalling the software, see the printed
User Guide that came with your HP all-in-one.
Cause
The access point is out of range.
Solution
Move the access point and the HP all-in-one closer together. Then uninstall and
reinstall the HP all-in-one software.
For more information on uninstalling and reinstalling the software, see the printed
User Guide that came with your HP all-in-one.
Cause
The access firmware needs updating.
Solution
Check for firmware updates for your access point on the manufacturer's website.
Update the firmware on the access point. Then uninstall and reinstall the HP all-in-
one software.
For more information on uninstalling and reinstalling the software, see the printed
User Guide that came with your HP all-in-one.
42
When using the control panel to scan to a computer on the network, the HP all-
in-one cannot find my computer (infrastructure)
Cause
Your wireless network is not functioning.
Solution
Make sure that your access point is turned on and functioning properly. And make
sure that your computer is communicating with the access point.
Cause
The HP all-in-one and computer are on different networks.
Solution
Make sure that your HP all-in-one and computer are on the same network by
verifying that they both have the same IP address and subnet mask. To see the IP
address and subnet mask of your HP all-in-one, print a network configuration page
from your HP all-in-one (see Print and view a network configuration page). For a
description of the items on the configuration page, including the IP address and
subnet mask, see Configuration page definitions. To change the IP address or
subnet mask, see Manage your network.
Cause
The encryption settings on your access point are not correct.
Solution
Verify the encryption settings on your access point. The same encryption key and
settings must be used on both the access point and the HP all-in-one.
Cause
The destination you are attempting to scan to does not appear in the Scan To
menu.
Solution
Designate which applications and other destinations appear on the Scan To menu
by using the HP Image Zone on your computer.
Cause
You do not have a functioning network.
Solution
Verify you have a functioning wireless ad hoc network by using another wireless
device.
Cause
The HP all-in-one is not turned on.
Solution
Look at the color graphics display on HP all-in-one. If the color graphics display is
blank and the light next to the On button is not lit, the HP all-in-one is turned off.
Make sure the power cord is firmly connected to the HP all-in-one and plugged into a
power outlet. Press the On button to turn on the HP all-in-one.
Cause
The HP all-in-one and computer are on different networks.
Solution
Make sure that your HP all-in-one and computer are on the same network by
verifying that they both have the same IP address and subnet mask. To see the IP
address and subnet mask of your HP all-in-one, print a network configuration page
from your HP all-in-one (see Print and view a network configuration page). For a
description of the items on the configuration page, including the IP address and
subnet mask, see Configuration page definitions. To change the IP address or
subnet mask, see Manage your network.
Cause
Your computer's wireless adapter is not broadcasting its network name (SSID).
Solution
Verify your computer's wireless adapter is broadcasting its network name (SSID).
Print a network configuration page from your HP all-in-one (see Print and view a
network configuration page), and verify that the SSID for the wireless adapter
appears on the network configuration page. If the wireless adapter is not
broadcasting its SSID, see the documentation that came with your computer.
Cause
Encryption settings are incorrect.
Solution
Verify the encryption settings on your access point. The same encryption key and
settings must be used on both the access point and the HP all-in-one.
44
Cause
The firmware for your wireless adapter needs updating.
Solution
Check for firmware updates for your wireless adapter on the manufacturer's
website, and then update the firmware.
Cause
The software setup for the HP all-in-one has failed.
Solution
Uninstall and then reinstall the HP all-in-one software.
For more information on uninstalling and reinstalling the software, see the printed
User Guide that came with your HP all-in-one.
Cause
Cables are not connected properly.
Solution
Check the following cables to ensure they are connected properly:
● Power cords to the HP all-in-one and the router
● Cables between the router and your computer
● Cables to and from your modem or HP all-in-one Internet connection (if
applicable)
Cause
Your Local Area Network (LAN) card (NIC) is not set up properly.
Solution
Make sure that your LAN card is set up properly.
Cause
You do not have an active network connection.
Solution
Check to see if you have an active network connection.
2 If the wired network icon is not present, check the cable connections from the
HP all-in-one to your gateway or router to ensure connections are secure.
3 Make sure the HP all-in-one is connected to the network with a CAT-5
Ethernet cable.
4 Check the two Ethernet indicator lights on the top and bottom of the RJ-45
Ethernet jack on the back of the HP all-in-one. The lights indicate the
following:
a Top light: If this light is a solid green, the device is properly connected to
the network, and communications have been established. If the top light is
off, there is no network connection.
b Bottom light: This yellow light flashes when data is being sent or received
by the device over the network.
5 If the connections are secure, turn off the power on your HP all-in-one, and
then turn it on again. On the control panel of the HP all-in-one, press the On
button to turn off the HP all-in-one, and then press it again to turn it on. Also,
turn off the power on your router and then turn it on again.
Cause
Your Local Area Network (LAN) card (NIC) is not installed properly.
46
Solution
Make sure your LAN card is installed properly and set up for TCP/IP. See the
instructions that came with your LAN card.
Cause
The HP all-in-one is not turned on.
Solution
Look at the color graphics display on HP all-in-one. If the color graphics display is
blank and the light next to the On button is not lit, the HP all-in-one is turned off.
Make sure the power cord is firmly connected to the HP all-in-one and plugged into a
power outlet. Press the On button to turn on the HP all-in-one.
Cause
You do not have an active network connection.
Solution
Make sure you have an active network connection. For more information, see You
do not have an active network connection.
Cause
Cables are not connected properly.
Solution
Check the following cables to ensure they are connected properly:
● Power cords to the HP all-in-one and the router
● Cables between the router and your computer
● Cables to and from your modem or HP all-in-one Internet connection (if
applicable)
Cause
If you have a PC with a cable modem, a separate Local Area Network (LAN) for
your other computers, and no DHCP or router, you must use AutoIP to assign IP
addresses to the other computers and to the HP all-in-one.
Solution
Cause
This is a limitation of the Common Internet File System (CIFS) server.
Solution
The CIFS server does not support authentication. However, you can increase the
privacy of data on your memory cards.
For more information on increasing memory card security, see Change memory
card security and the printed User Guide that came with your HP all-in-one.
Error message: Cannot find the file or item. Make sure the path and file name are
correct.
Cause
The CIFS server is not operational.
Solution
Retry your task at a later time. Also, you might need to turn off CIFS security. For
more information, see Change memory card security .
Cause
You cannot access the CIFS server in Windows 98 unless you first log on to the
network.
Solution
Make sure you log on to the network before attempting to access the CIFS server.
Cause
CIFS sometimes displays file names created by other applications as arbitrary text.
Solution
Change the file names to something more meaningful.
48
a Configuration page definitions
This appendix explains the items that appear on the network configuration page.
Parameter Description
Note You will need to know this URL when you try to access the
Embedded Web Server.
Hardware The Media Access Control (MAC) address that uniquely identifies the
Address (MAC) HP all-in-one. This is a unique 12-digit identification number assigned to
networking hardware for identification. No two pieces of hardware have the
same MAC address.
Note Some Internet service providers (ISPs) require that you register the
MAC address of the Network Card or LAN Adapter that was
connected to your cable or DSL modem during installation.
Firmware The internal networking component and device firmware revision code
Revision separated by a hyphen.
Note If you call in for support, depending on the problem, you might be
asked to provide the firmware revision code.
Hostname The TCP/IP name assigned by the install software to the device. By default,
this is the letters HP followed by the last 6 digits of the MAC address.
IP Address This address uniquely identifies the device on the network. IP addresses are
assigned dynamically through DHCP or AutoIP. You can also set up a static
IP address, though this is not recommended.
Note It is recommended that the HP all-in-one and the computers that use
it all reside on the same subnet.
DNS Server The IP address of the domain name service (DNS) for the network. When
you use the web or send an e-mail message, you use a domain name to do
it. For example, the URL http://www.hp.com contains the domain name hp.
com. The DNS on the Internet translates the domain name into an IP
address. Devices use the IP addresses to refer to one another.
● IP Address: the domain name server's IP address.
● Not Specified: the IP address is not specified, or the device is
initializing.
mDNS Rendezvous is used with local and ad hoc networks that don't use central
DNS servers. To perform name services, Rendezvous uses a DNS
alternative called mDNS.
With mDNS, your computer can find and use any HP all-in-one connected to
your local area network. It can also work with any other Ethernet-enabled
device that appears on the network.
Admin Status of the administrator's password for the Embedded Web Server:
Password ● Set: password is specified. You must enter the password to make
changes to the Embedded Web Server parameters.
● Not Set: no password is set. A password is not required for making
changes to the Embedded Web Server parameters.
50
(continued)
Link The speed at which data is transmitted over a network:
Configuration ● 802.11b: for wireless network.
● 10TX-Full: for wired network.
● 10TX-Half: for wired network.
● 100TX-Full: for wired network.
● 100TX-Half: for wired network.
● None: networking is disabled.
Parameter Description
Network Name Service Set Identifier. A unique identifier (up to 32 characters) that
(SSID) differentiates one wireless local area network (WLAN) from another. The
SSID is also referred to as the network name. This is the name of the
network to which the HP all-in-one is connected.
Channel The channel number currently being used for wireless communication. This
depends on the network in use, and might differ from the requested channel
Note In ad hoc mode, if you are not able to receive or transmit data
between your computer and the HP all-in-one, make sure that you are
using the same communication channel on your computer and the
HP all-in-one. In infrastructure mode, the channel is dictated by the
access point.
52
(continued)
● Automatic: AES or TKIP is in use.
● Not applicable: this parameter does not apply to this network type.
WEP aims to provide security by encrypting data over radio waves so that it
is protected as it is transmitted from one end point to another. This security
method is common on wireless networks.
Access Point HW The hardware address of the access point on the network to which the
Address HP all-in-one is connected:
● <MAC address>: the unique MAC (media access control) hardware
address of the access point.
● Not applicable: this parameter does not apply to this network type.
Miscellaneous
The following table describes the data transmission and receipt information shown on the network
configuration page.
Parameter Description
Total Packets The number of packets transmitted by the HP all-in-one without error since it
transmitted has been turned on. The counter clears after the HP all-in-one is turned off.
When a message is transmitted over a packet-switching network, it is broken
up into packets. Each packet contains the destination address as well as the
data.
Total Packets The number of packets received by the HP all-in-one without error since it
received has been turned on. The counter clears after the HP all-in-one is turned off.
54
b Glossary
802.11b or g Signalling protocols for wireless networks. 802.11g was developed more
recently and provides more advanced functionality.
access point Also known as a wireless router, an access point provides a secure and
flexible connection for your HP all-in-one and other network elements. A
wireless network with an access point is called an infrastructure network.
ASCII American Standard Code for Information Interchange. The standard for
numbers used by computers to represent all the uppercase and lowercase
Latin letters, numbers, punctuation, etc.
authentication A network security method that verifies the identity of a user or device
before granting access to the network, making it more difficult for
unauthorized users to access network resources. This security method is
common on wireless networks.
DNS Domain Name Service. When you use the web or send an e-mail
message, you use a domain name to do it. For example, the URL http://
www.hp.com contains the domain name hp.com. The DNS on the
Internet translates the domain name into an IP address. Devices use the
IP addresses to refer to one another.
DNS-SD See DNS. The SD portion stands for Service Discovery. This is part of a
protocol developed by Apple that enables automatic discovery of
computers, devices, and services on IP networks.
Ethernet The most common local network technology that connects computers
using copper cabling.
Ethernet cable The cable used to connect network elements in a wired network. The
CAT-5 Ethernet cable is also known as a straight-through cable. When
using an Ethernet cable, the network elements must be attached to a
router. The Ethernet cable uses an RJ-45 connector.
HEX Hexidecimal. The base 16 numbering system, which uses the digits 0-9
plus the letters A-F.
IP address A number that uniquely identifies the device on the network. IP addresses
are assigned dynamically through DHCP or AutoIP. You can also set up a
static IP address, though this is not recommended.
MAC address Media Access Control (MAC) address that uniquely identifies the HP all-
in-one. This is a unique 12-digit identification number assigned to
networking hardware for identification. No two pieces of hardware have
the same MAC address.
RJ-45 connector The connector on the ends of an Ethernet cable. Although standard
Ethernet cable connectors (RJ-45 connectors) look similar to standard
telephone cable connectors, they are not interchangeable. An RJ-45
connector is wider and thicker and always has 8 contacts on the end. A
phone connector has between 2 and 6 contacts.
router A router provides a bridge between two or more networks. A router can
link a network to the Internet, link two networks and connect both to the
Internet, and help secure networks through the use of firewalls and
assigning dynamic addresses. A router can also act as a gateway, while a
switch cannot.
switch A switch makes it possible for several users to send information over a
network at the same time without slowing each other down. Switches allow
different nodes (a network connection point, typically a computer) of a
network to communicate directly with one another.
WEP key The passkey for Wired Equivalent Privacy encryption, which provides a
first level of security against casual eavesdroppers.
WPA Password or The password for Wi-Fi Protected Access. The passkey is 8 to 63
Passkey characters long, including spaces. WPA provides security by verifying the
identity of a user or device before granting access to the network, making
it more difficult for unauthorized users to get at network resources. This
security method is common on wireless networks.
56
Index
A display summary 29 I
access point connection 7, 15 DNS server (general network infrastructure mode 15
access point HW address settings) 50 infrastructure network 7, 11
(wireless network settings) 53 DSL 8 install software
ad hoc network 19 Macintosh 28
additional computers 5 E Windows 27
admin password (general Embedded Web Server (EWS) Instant Share, HP
network settings) 50 password settings 50 Ethernet connection 11
advanced setup 30 using 31 wireless ad hoc
AirPort 15 encryption connection 19
authentication type (wireless settings 52 wireless infrastructure
network settings) 52 troubleshooting 38, 43, 44 connection 8
WEP key 21 interface card 16
B Ethernet connection Internet
base station. see access point Internet access 11 broadband 16, 26
connection setting up 25 DSL or cable with router
broadband Internet 16, 19, 26 types of 11 gateway 11
wireless 13 Internet access
C EWS modem 12
cable Internet access 8 password settings 50 IP
cards, interface 16 using 31 address (general network
CAT-5 Ethernet cable 25 settings) 49
channel (wireless network F settings 30
settings) 51 factory defaults 29
Common Internet File file system troubleshooting 48 L
System 48 firmware version (general link config (general network
communication mode (wireless network settings) 49 settings) 51
network settings) 51 link speed 30
computer gateway 12 G
computer-to-computer gateway M
network 19 computer 12 Macintosh software
config source (general network default setting 50 installation 28
settings) 50 router 11 mDNS service name (general
configuration page 29, 49 general network settings 49 network settings) 50
connect Media Access Control (MAC)
using an Ethernet cable 25 H address 49
without an access hardware address (general memory card security 31
point 15, 19 network settings) 49 multiple computers 5
connection type screen, hostname (general network
Windows 27 settings) 49 N
control panel 29 HP Instant Share network configuration page 29
Ethernet connection 11 network connection type
D wireless ad hoc (general network settings) 49
default gateway (general connection 19 network interface card 16
network settings) 50 wireless infrastructure network name (wireless network
defaults, restoring 29 connection 8 settings) 51
58
Printed on at least 50% total recycled fiber
with at least 10% post-consumer paper
Electronic Edition
www.hp.com
*Q3462-90198*
*Q3462-90198*
Q3462-90198
Introduction to Security Architecture
Security architecture is defined as the architectural design that includes all the threats and
potential risks which can be present in the environment or that particular scenario. This also
includes the security controls and the use of security controls. For the security architecture, the
proper documentation is done that include all the security specifications and include all the
detailed information about the architecture. The organization uses for their system, and it is
mainly used because the architecture is affordable and cost-effective and can be used easily by
the organization.
This is defined as the part of enterprise architecture that is particularly design for addressing
the information system and fulfill the security requirements of the organization. The system
architecture system has a role that it meets the security requirements and also helps to protect
the company operating environment. It is beneficial for the company as it includes other
activities like risk management activities that require continuous improvement, and security
architecture helps to meet the organization requirements. It defines proper polices, rules and
regulations that need to reinforce in the organization and provide proper information about
them. The architecture is also used for allocating the controls for technical security so that the
information system of the organization can be maintained properly. As the same can be
followed in a whole organization, it helps to define common regulations and standards for every
employee so that everyone can follow the rules and maintain data integrity and security in the
organization.
In the above diagram, the high-level design of the system architecture is shown. The abstraction
is given here.
Components of Security Architecture
For making the security architecture important, there are certain components that are involved
in the design. The components are people, process and the tools. All these components combine
helps to protect the organization assets. After defining the components, the next step is to make
the policy and the reinforcement technique for the policies. After the other important steps are
the method procedural for the implementation of security architecture and how the architecture
will get enforced. By this, the overall design and architecture are designed for the organization
that will protect them throughout their business operations. For a proper security architecture,
some of the components are briefly discussed:
1. Guidance
The policies and procedures that act as the guidance should be design and implement properly.
The policies should include the documentation that includes the objectives and goals for
designing the architecture, standards, policies, rules and regulations for the organization,
identification of scope and function, identification of other security policies.
2. Identity Management
It is the type of system that include the organization processes, technologies and policies that
directly help users to gain access to the online applications and other network resources. For
the organization, the proper responsibilities and roles need to be clearly stated, and individual
tasks need to be designed for the employees.
The other components are the inclusion and exclusion that include the security of elements of
the organization in which company resources are protected. The company resources include
web resources, e-mail servers, private HR data and other reporting system information. The
access should be grant to authorized users only so that the privacy and integrity can be
maintained in the organization.
The organization should develop an architecture that is able to control the access to the business
resources and can use the layer system for providing access to the company employees. Only
authorized users should gain complete access to the system, and the rest should be provided
with limited access of the system.
5. Validation of Architecture
As the technology advances, the company need to renew the policies and laws as per the
changes, and continuous effort is needed by the organization in this change. For that, the
continuous monitoring is required, and according to that, proper changes can be made in the
architecture.
6. Training
As for the organization, to maintain the privacy and integrity, the security architecture system
is very important. AS there is a continuous change in the system, it becomes important that the
employee should know about the changes and proper training is given to them so that they can
use the system and protect the company assets and elements.
7. Technology
To reinforce the security architecture, the software and hardware used for making the
architecture become very crucial for the organization. Because of continuous change in
technology, there is a requirement of continuous change in the system so that the system can
be up to date and help to make the system secure and private.
Help to protect the important company assets from the outside and provide security to
the important resources to the organization. The architecture provides the limited access
to the user so that the confidential data can be kept secure and safe.
The architecture defines the common policies and standards that can be used by the
every employee of the company and also define common rules so that no one face any
difficulty to use the system. It helps the organization to reach their goal and easily
conduct their business operations smoothly.
The other benefit is risk management activities covered by the architecture as the risk
management activity requires continuous assistance and also need continuous
improvement, the security architecture act as a better solution for them.
Conclusion
Security architecture is a type of enterprise architecture and is very important for the
organization to protect the company resources from the outside world. A strong security
architecture is used by the organization to main security and data integrity in the system, and
the policies and rules defined by the system are followed by the employee of an organization.
Security Device
Management-SDM
Unit-2
Why SDM
provides various options to meet your organization’s business
requirements. And also Improved operational and technical efficiency
Improved operational and technical efficiency
• Firewalls are one of the most fundamental network security appliances. Like
many other security devices, firewalls can come in hardware or software forms.
Most of the time, businesses choose to use dedicated, specialized hardware since
it can handle more traffic and has better vendor support.
• Firewalls provide separation between your internal network and the wider
Internet. They can block connections on specific ports, from specific IP addresses,
and from machines or networks matching other criteria. Most firewalls are
configured to deny incoming traffic by default, providing a baseline of security for
your network.
Intrusion Protection Systems (IPS)
• Like a regular network firewall, a WAF selectively allows or blocks traffic based on
predefined criteria or suspicious activity. Web applications commonly have
security vulnerabilities that can be used to compromise a company’s network and
leak data. While finding and fixing all of these issues would be the ideal solution,
using a web application firewall is a good next layer of defence.
• A WAF can block URLs and requests containing suspicious payloads, evidence of
SQL injection attempts, and other attacks. They can come in the form of a
physical device, a software extension to another network security device, or
software installed on a standard reverse proxy server.
VPN Gateways
• With the rise of remote work, every company needs to ensure that their internal
network resources are accessible securely from anywhere. A virtual private
network or VPN device can help here.
• In effect, when employees connect to the VPN, their traffic enters the internal
network from the VPN device instead of going straight to the Internet.
• In addition to security benefits, VPN gateways give employees access to printers,
Intranet sites, and other internal devices, saving time and improving productivity
Network Device Backup and Recovery
• With so many individual network devices, applying and rolling back configuration
changes can be challenging. Additionally, large numbers of separate devices are
difficult to recover quickly in the event of a disaster.
• For these reasons, centralised backup and recovery for network devices is very
useful. Network configuration management tools automate the backup process
by securely storing the configuration and state of network devices, simplifying
rollback or restore operations.
Access control
• This refers to controlling which users have access to the network or especially
sensitive sections of the network. Using security policies, you can restrict network
access to only recognized users and devices or grant limited access to
noncompliant devices or guest users.
Antivirus and anti-malware software
• Malware, or “malicious software,” is a common form of cyberattack that comes in
many different shapes and sizes. Some variations work quickly to delete files or
corrupt data, while others can lie dormant for long periods of time and quietly
allow hackers a back door into your systems.
• The best antivirus software will monitor network traffic in real time for malware,
scan activity log files for signs of suspicious behavior or long-term patterns, and
offer threat remediation capabilities.
Application security
• Each device and software product used within your networking environment
offers a potential way in for hackers. For this reason, it is important that all
programs be kept up-to-date and patched to prevent cyberattackers from
exploiting vulnerabilities to access sensitive data.
• Application security refers to the combination of hardware, software, and best
practices you use to monitor issues and close gaps in your security coverage.
Behavioral analytics
• In order to identify abnormal behavior, security support personnel need to
establish a baseline of what constitutes normal behavior for a given customer’s
users, applications, and network.
• Behavioral analytics software is designed to help identify common indicators of
abnormal behavior, which can often be a sign that a security breach has occurred.
By having a better sense of each customer’s baselines, MSPs can more quickly
spot problems and isolate threats
Data loss prevention
• Data loss prevention (DLP) technologies are those that prevent an organization’s
employees from sharing valuable company information or sensitive data—
whether unwittingly or with ill intent—outside the network.
• DLP technologies can prevent actions that could potentially expose data to bad
actors outside the networking environment, such as uploading and downloading
files, forwarding messages, or printing.
Distributed denial of service prevention
• Distributed denial of service (DDoS) attacks are becoming increasingly common.
They function by overloading a network with one-sided connection requests that
eventually cause the network to crash.
• A DDoS prevention tool scrubs incoming traffic to remove non-legitimate traffic
that could threaten your network, and may consist of a hardware appliance that
works to filter out traffic before it reaches your firewalls
Email security
• Email is an especially important factor to consider when implementing
networking security tools. Numerous threat vectors, like scams, phishing,
malware, and suspicious links, can be attached to or incorporated into emails.
• Because so many of these threats will often use elements of personal information
in order to appear more convincing, it is important to ensure an organization’s
employees undergo sufficient security awareness training to detect when an
email is suspicious. Email security software works to filter out incoming threats
and can also be configured to prevent outgoing messages from sharing certain
forms of data
Network segmentation.
• Dividing and sorting network traffic based on certain classifications streamlines
the job for security support personnel when it comes to applying policies.
• Segmented networks also make it easier to assign or deny authorization
credentials for employees, ensuring no one is accessing information they should
not be. Segmentation also helps to sequester potentially compromised devices or
intrusions
Security information and event management
• These security systems (called SIEMs) combine host-based and network-based
intrusion detection systems that combine real-time network traffic monitoring
with historical data log file scanning to provide administrators with a
comprehensive picture of all activity across the network.
• SIEMs are similar to intrusion prevention systems (IPS), which scan network traffic
for suspicious activity, policy violations, unauthorized access, and other signs of
potentially malicious behaviour in order to actively block the attempted
intrusions. An IPS can also log security events and send notifications to the
necessary players in the interest of keeping network administrators informed.
• With the importance of the information traveling over every company’s network
today, not using the appropriate network security devices would be irresponsible.
Through the use of these devices, companies can stop cyberattacks before they
happen.
• Firewalls are the oldest and most well-established variety of network security
device. Other appliances like intrusion detection and prevention devices expand
the firewall’s capabilities to a wide range of emerging threats. Other devices can
protect email communications, web applications hosted on the local network,
and remote VPN connections
Security Device
Management-SDM
Unit-2
Why SDM
provides various options to meet your organization’s business
requirements. And also Improved operational and technical efficiency
Improved operational and technical efficiency
• Firewalls are one of the most fundamental network security appliances. Like
many other security devices, firewalls can come in hardware or software forms.
Most of the time, businesses choose to use dedicated, specialized hardware since
it can handle more traffic and has better vendor support.
• Firewalls provide separation between your internal network and the wider
Internet. They can block connections on specific ports, from specific IP addresses,
and from machines or networks matching other criteria. Most firewalls are
configured to deny incoming traffic by default, providing a baseline of security for
your network.
Intrusion Protection Systems (IPS)
• Like a regular network firewall, a WAF selectively allows or blocks traffic based on
predefined criteria or suspicious activity. Web applications commonly have
security vulnerabilities that can be used to compromise a company’s network and
leak data. While finding and fixing all of these issues would be the ideal solution,
using a web application firewall is a good next layer of defence.
• A WAF can block URLs and requests containing suspicious payloads, evidence of
SQL injection attempts, and other attacks. They can come in the form of a
physical device, a software extension to another network security device, or
software installed on a standard reverse proxy server.
VPN Gateways
• With the rise of remote work, every company needs to ensure that their internal
network resources are accessible securely from anywhere. A virtual private
network or VPN device can help here.
• In effect, when employees connect to the VPN, their traffic enters the internal
network from the VPN device instead of going straight to the Internet.
• In addition to security benefits, VPN gateways give employees access to printers,
Intranet sites, and other internal devices, saving time and improving productivity
Network Device Backup and Recovery
• With so many individual network devices, applying and rolling back configuration
changes can be challenging. Additionally, large numbers of separate devices are
difficult to recover quickly in the event of a disaster.
• For these reasons, centralised backup and recovery for network devices is very
useful. Network configuration management tools automate the backup process
by securely storing the configuration and state of network devices, simplifying
rollback or restore operations.
Access control
• This refers to controlling which users have access to the network or especially
sensitive sections of the network. Using security policies, you can restrict network
access to only recognized users and devices or grant limited access to
noncompliant devices or guest users.
Antivirus and anti-malware software
• Malware, or “malicious software,” is a common form of cyberattack that comes in
many different shapes and sizes. Some variations work quickly to delete files or
corrupt data, while others can lie dormant for long periods of time and quietly
allow hackers a back door into your systems.
• The best antivirus software will monitor network traffic in real time for malware,
scan activity log files for signs of suspicious behavior or long-term patterns, and
offer threat remediation capabilities.
Application security
• Each device and software product used within your networking environment
offers a potential way in for hackers. For this reason, it is important that all
programs be kept up-to-date and patched to prevent cyberattackers from
exploiting vulnerabilities to access sensitive data.
• Application security refers to the combination of hardware, software, and best
practices you use to monitor issues and close gaps in your security coverage.
Behavioral analytics
• In order to identify abnormal behavior, security support personnel need to
establish a baseline of what constitutes normal behavior for a given customer’s
users, applications, and network.
• Behavioral analytics software is designed to help identify common indicators of
abnormal behavior, which can often be a sign that a security breach has occurred.
By having a better sense of each customer’s baselines, MSPs can more quickly
spot problems and isolate threats
Data loss prevention
• Data loss prevention (DLP) technologies are those that prevent an organization’s
employees from sharing valuable company information or sensitive data—
whether unwittingly or with ill intent—outside the network.
• DLP technologies can prevent actions that could potentially expose data to bad
actors outside the networking environment, such as uploading and downloading
files, forwarding messages, or printing.
Distributed denial of service prevention
• Distributed denial of service (DDoS) attacks are becoming increasingly common.
They function by overloading a network with one-sided connection requests that
eventually cause the network to crash.
• A DDoS prevention tool scrubs incoming traffic to remove non-legitimate traffic
that could threaten your network, and may consist of a hardware appliance that
works to filter out traffic before it reaches your firewalls
Email security
• Email is an especially important factor to consider when implementing
networking security tools. Numerous threat vectors, like scams, phishing,
malware, and suspicious links, can be attached to or incorporated into emails.
• Because so many of these threats will often use elements of personal information
in order to appear more convincing, it is important to ensure an organization’s
employees undergo sufficient security awareness training to detect when an
email is suspicious. Email security software works to filter out incoming threats
and can also be configured to prevent outgoing messages from sharing certain
forms of data
Network segmentation.
• Dividing and sorting network traffic based on certain classifications streamlines
the job for security support personnel when it comes to applying policies.
• Segmented networks also make it easier to assign or deny authorization
credentials for employees, ensuring no one is accessing information they should
not be. Segmentation also helps to sequester potentially compromised devices or
intrusions
Security information and event management
• These security systems (called SIEMs) combine host-based and network-based
intrusion detection systems that combine real-time network traffic monitoring
with historical data log file scanning to provide administrators with a
comprehensive picture of all activity across the network.
• SIEMs are similar to intrusion prevention systems (IPS), which scan network traffic
for suspicious activity, policy violations, unauthorized access, and other signs of
potentially malicious behaviour in order to actively block the attempted
intrusions. An IPS can also log security events and send notifications to the
necessary players in the interest of keeping network administrators informed.
• With the importance of the information traveling over every company’s network
today, not using the appropriate network security devices would be irresponsible.
Through the use of these devices, companies can stop cyberattacks before they
happen.
• Firewalls are the oldest and most well-established variety of network security
device. Other appliances like intrusion detection and prevention devices expand
the firewall’s capabilities to a wide range of emerging threats. Other devices can
protect email communications, web applications hosted on the local network,
and remote VPN connections
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Security Models
and Architecture
CHAPTER
5
In this chapter, you will learn about the following topics:
• Computer architecture and the items that fall within it
• Trusted computing base and security mechanisms
• Components within an operating system
• Various security models
• Security criteria and ratings
• Certification and accreditation processes
Computer and information security covers many areas within an enterprise. Each area has
security vulnerabilities and, hopefully, some corresponding countermeasures that raise
the security level and provide better protection. Not understanding the different areas and
security levels of network devices, operating systems, hardware, protocols, and applica-
tions can cause security vulnerabilities that can affect the environment as a whole.
Two fundamental concepts in computer and information security are the security
model, which outlines how security is to be implemented—in other words, providing a
“blueprint”—and the architecture of a computer system, which fulfills this blueprint.
A security policy outlines how data is accessed, what level of security is required, and
what actions should be taken when these requirements are not met. The policy outlines
the expectations of a computer system or device. A security model is a statement that out-
lines the requirements necessary to properly support and implement a certain security
policy. If a security policy dictates that all users must be identified, authenticated, and au-
thorized before accessing network resources, the security model might lay out an access
control matrix that should be constructed so that it fulfills the requirements of the security
policy. If a security policy states that no one from a lower security level should be able to
view or modify information at a higher security level, the supporting security model will
outline the necessary logic and rules that need to be implemented to ensure that under no
circumstances can a lower-level subject access a higher-level object in an unauthorized
manner. A security model provides a deeper explanation of how a computer operating
system should be developed to properly support a specific security policy.
185
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:48 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
From here these main attributes branch off into more granular security attributes
such as authenticity, accountability, non-repudiation, and dependability. How does a
company know which of these it needs, to what degree they are needed, and if the oper-
ating systems and applications they use actually provide these features and protection?
These questions get much more complex as one looks deeper into the questions and
systems themselves. Companies are not just concerned about e-mail messages being
encrypted as they pass through the Internet. They are also concerned about the confi-
dential data stored in their databases, the security of their Web farms that are connected
directly to the Internet, the integrity of data entry values going into applications that
process business-oriented information, the internal users sharing trade secrets, the ex-
ternal attackers bringing down servers and affecting productivity, viruses spreading, the
internal consistency of data warehouses, and much more. These issues not only affect
productivity and profitability, but also raise legal and liability issues with securing data.
Companies, and the management that runs them, can be held accountable if many of
the previously mentioned issues go wrong. So it is, or at least it should be, very impor-
tant for companies to know what security they need and how to be properly assured that
the protection is actually being provided by the products they purchase.
Many of these security issues must be thought through before and during the design
and architectural phase for a product. Security is best if it is designed and built into the
foundation of operating systems and applications and not added on as an afterthought.
Once security is integrated as an important part of the design, it has to be engineered,
implemented, tested, audited, evaluated, certified, and accredited. The security that a
product provides has to be rated on the availability, integrity, and confidentiality it
claims. Consumers then use these ratings to determine if specific products provide the
level of security they require. This is a long road, with many entities involved with differ-
ent responsibilities. This chapter takes you from the steps necessary before actually
developing an operating system to how these systems are evaluated and rated by govern-
ments and other agencies, and what these ratings actually mean.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:49 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Computer Architecture
Put the processor over there by the plant, the memory by the window, and the secondary storage
upstairs.
Computer architecture encompasses all the parts of a computer system necessary for
it to function, including the operating system, memory chips, circuits, hard drive, secu-
rity components, buses, and networking components. The interrelationships and inter-
nal working of all of these parts can be quite complex, and making them work together
in a secure fashion is comprised of complicated methods and mechanisms. Thank
goodness for the smart people who figured this stuff out! Now it is up to us to learn how
they did it and why.
The more you understand how these different pieces work and process data, the more
you will understand how vulnerabilities actually occur and how countermeasures work
to impede and hinder vulnerabilities from being introduced, found, and exploited.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:49 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-1 The control unit works as a traffic cop, indicating when instructions are sent
to the processor.
Instructions and data are held in registers until needed by the CPU. The software in-
structions are first ported into the CPU because these instructions indicate what actually
needs to happen to the data. The registers are not permanent storage areas, but a tempo-
rary memory area to hold instructions that are to be interpreted by the CPU and used for
data processing.
The data being processed is entered into the CPU in blocks at a time. If the software
instructions do not properly set the boundaries for how much data can come in as a
block (for example, 64 bits at a time), extra data can slip in and be executed. This is how
buffer overflows work. If a buffer overflow takes place, it is due to the operating system or
Figure 5-2 Instructions and data are passed to the CPU for processing.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:50 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Memory
The operating system instructions, applications, and data are held in memory, but so
are the basic input/output system (BIOS), device controller instructions, and firmware.
They do not all reside in the same memory location or even the same type of memory.
The different types of memory, what they are used for, and how each is accessed can get
a bit confusing because the CPU deals with several different types for different reasons.
The following paragraphs quickly outline the different types of memory within a
computer system.
Random access memory (RAM) is a type of temporary storage facility where data can
be held and altered. It is used for read/write activities by the operating system and appli-
cations. It is described as volatile because if the computer’s power supply is terminated,
then all information within this type of memory is lost. There are different types of
RAM, but the most well-known types are dynamic and static RAM. Static RAM lives up to
its name, because when it stores data, it stays there without the need of being continu-
ally refreshed. Dynamic RAM, on the other hand, requires that the data held within it be
periodically refreshed because the data can dissipate and decay.
Read-only memory (ROM) is a nonvolatile storage facility, meaning that when a com-
puter’s power is turned off, the data is still held within the memory chips. For the most
part, when data is inserted into ROM memory chips, it cannot be altered. The software
that is stored within ROM is called firmware.
Erasable and programmable read-only memory (EPROM) can be modified, deleted, or
upgraded. EPROM holds data that can be electrically erased or written to.
References
How RAM Works: www.howstuffworks.com/ram.htm
Unix/Linux Internals Course and Links: www.softpanorama.org/Internals
Cache Memory
I am going to need this later, so I will just stick it into cache for now.
Cache memory is a type of memory that is used for high-speed writing and reading
activities. It holds instructions and data from primary storage and is accessed when ap-
plication instructions and data are being executed. When the system assumes that it will
need to access specific information many times throughout its processing activities, it
will store it in cache memory so that it is easily and quickly accessible. Data being
retrieved from cache can be accessed much more quickly than if it was stored in real
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:50 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Memory Mapping
Okay, here is your memory, here is my memory, and here is Bob’s memory. No one use each
other’s memory!
Because there are different types of memory holding different types of data, a com-
puter system does not want to let every user, process, and application access all types of
memory anytime they want to. Access to memory needs to be controlled to ensure that
data does not get corrupted. This type of control takes place through memory mapping
and addressing.
The CPU is one of the most trusted components within a system, and therefore it can
access memory directly. It uses physical addresses instead of pointers to memory seg-
ments. The CPU has physical wires connecting it to the memory chips within the com-
puter. Because there are physical wires connecting the two types of components,
physical addresses are used to represent the intersection between the wires and the tran-
sistors on a memory chip. Software does not use physical addresses; instead, it uses vir-
tual or logical memory. Accessing memory indirectly provides an access control layer
between the software and the memory, which is done for protection and efficiency.
Figure 5-3 illustrates how the CPU can access memory directly using physical addresses
and how software must use memory indirectly through a memory mapper.
Let’s look at an analogy. You would like to talk to Mr. Marshall about possibly buying
some acreage in Iowa. You don’t know Mr. Marshall personally, and you do not want to
give out your physical address and have him show up at your doorstep. Instead, you
would like to use a more abstract and controlled way of communicating, so you give Mr.
Marshall your phone number so you can talk about the land and you can make a deter-
mination if you want to meet Mr. Marshall in person. The same type of thing happens in
computers. When a computer runs software, it does not want to expose itself unneces-
sarily to software written by good and bad programmers. Computers enable software to
use memory indirectly using index tables and pointers, instead of giving them the right
to access the memory directly. Only the system itself can access memory directly and
programs can access the memory indirectly, but it is the same memory storage. This is
one way the computer system protects itself.
When a program attempts to access memory, its access rights are verified and then in-
structions and commands are carried out in a way to ensure that badly written code does
not affect other programs or the system itself. Applications, and their processes, can only
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:51 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
access the memory allocated to them, as shown in Figure 5-4. This type of memory ar-
chitecture provides protection and efficiency.
If programs accessed data held in memory directly, each program would have to wait
until the prior program is done before it could access and process data. Mapped mem-
ory enables different programs to access the data and perform their own separate func-
tions on it in a more economical and resourceful manner.
Secondary storage is considered nonvolatile storage media, which can be the com-
puter’s hard drive, floppy disks, or CD-ROM.
When RAM and secondary storage are combined, the result is virtual storage. The
system uses hard drive space to extend RAM memory space capability. The hard drive
space that is used to extend the RAM memory capabilities is incremented in pages.
When a system fills up its volatile memory space, it will write data from memory
onto the hard drive. When a program or user requests access to this data, it is brought from
the hard drive back into memory. This process is called paging. Accessing data that is
kept in pages on the hard drive takes more time than accessing data kept in memory
because actual disk access has to take place; however, the payoff is that it seems as
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:51 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-4 Applications, and the processes they use, only access their own memory segments.
though the system can hold an incredible amount of information in memory, as shown
in Figure 5-5.
The different types of memory we looked at are summed up here:
• Primary storage Main memory directly accessed by the CPU and indirectly
accessed by applications, considered volatile memory
• Secondary storage Nonvolatile storage (floppy disk, CD-ROM disk, hard
drive, and so on)
• Virtual storage RAM and secondary storage used together
• RAM Random access memory, where instructions and data are placed when
being executed
Application
M EMORY
Application
Application
Pages Disk drive
Figure 5-5 Systems send data from memory to the hard drive in units of pages to enable memory to
reach gigabyte sizes.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:52 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
NOTE The actual ring architecture that is being used by a system is dictated
by the processor and the operating system. The hardware chip (processor) is
constructed to work with a certain number of rings, and the operating system
must be developed to also work in this ring structure. This is one reason why
one operating system platform may work with an Intel chip, but not an Alpha chip. They
have different architectures and ways to interpret instruction sets.
Operating system components operate in a ring that gives them the most access to
memory locations, peripheral devices, system drivers, and sensitive configuration pa-
rameters. Because this ring provides much more dangerous access to critical resources, it
is the most protected. Applications usually operate in ring 3, which limits the type of
memory, peripheral device, and driver access activity, and is controlled through the op-
erating system functions or system calls. The different rings are illustrated in Figure 5-6.
The type of commands and instructions that are sent to the CPU from applications in
the outer rings are more restrictive in nature. If an application tries to send instructions
to the CPU that fall outside of its permission level, the CPU treats this violation as an ex-
ception and may show a general protection fault, panic, or exception error and attempt
to shut down the offending application.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:53 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:53 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Process Activity
Computers can run different applications and programs at the same time. They have to
share resources and play nice with each other to ensure a stable and safe computing en-
vironment that maintains its integrity. Some memory, data files, and variables are actu-
ally shared between different applications. It is critical that more than one process does
not attempt to read and write to these items at the same time. The operating system is
the master program that prevents this type of action from taking place and ensures that
programs do not corrupt each other’s data held in memory. The operating system works
with the CPU to provide time slicing and interrupts to ensure that processes are pro-
vided with adequate access to the CPU. This also ensures that critical system functions
are not negatively affected by rogue applications.
Figure 5-7
Ring 3
Processes in
inner rings can
Ring 2
directly access
processes in Ring 1
outer modes but
not vice versa.
Ring 0
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:54 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Operating States
I am in a problem state. Is that bad? Answer: Nope, the CPU is just carrying out your request.
The operating system itself can be in one of two modes at any given point in time. The
operating system can operate in privileged (supervisor state) or user mode (problem
state) depending on what process made a request to execute instructions, but there are
also different operating states in which the different processes can work within. The fol-
lowing outlines the four possible states a process can operate in:
• Stopped The process is not running.
• Waiting The process is waiting for an interrupt to be able to be interact with
the CPU.
• Running The process’s instructions are being executed by the CPU.
• Ready The process is available to be used and waiting for an instruction.
These protection rings, operational modes, and operating states work together to en-
sure a secure and predictable operating environment. They enable the system to protect
itself and work to protect the availability, integrity, and confidentiality of the system,
the information that is being processed, and the applications installed.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:56 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-8 Virtual machines only access their allotted memory segments.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:56 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:56 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Tying It Together
Each of the topics discussed in earlier sections have complete books written on them be-
cause of their complexity and importance to the computing world. Each topic also relates
in some way to a part of security. An operating system is a complex beast that performs
many complicated tasks in order to provide a useful and secure work environment for a
user. It must recognize each process and program that is running, make access decisions,
support system calls, protect memory segments, validate requested commands, properly
process instructions, and ensure that none of these activities introduce vulnerabilities that
can violate the security policy of the system. It does this by enforcing protection rings,
mapping memory, implementing virtual machines, working in different states, and as-
signing trust levels to each and every process. These are integral parts of the security model
for the operating system.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:56 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
System Architecture
Designing a system from the ground up is a complicated task and has many intricate
and abstract goals that have to be achieved through mathematics, logic, design, pro-
gramming code, and implementation. There are fundamental design decisions that
need to be made when constructing a system. Security is only one of the goals of a sys-
tem, but it is the goal security professionals are most concerned about.
Availability, integrity, and confidentiality can be enforced at different places within
an enterprise. For example, a company may store customer credit card information in a
database that many users can access. This information, obviously, requires protection to
ensure that it is not accessed or modified in an unauthorized manner. We start with gen-
eral questions and gradually drill down into the details. Where should this protection
be placed? Should there be access controls that screen users when they log in and assign
them their rights at that point dictating what data they can and cannot access? Should
the data files holding the credit card information be protected at the file system level?
Should protection be provided by restricting users’ operations and activities? Or should
there be a combination of all of these? The first and most general question is “Where
should the protection take place: at the user’s end, where the data is stored, or by restrict-
ing user activities within the environment?” This is illustrated in Figure 5-9.
Once these general questions have been answered, the placement of the mechanisms
needs to be addressed. Security mechanisms can be placed at the hardware, kernel, oper-
ating system, services, or program layers. At which layer(s) should security mechanisms
be implemented? If protection is implemented at the hardware layer, the protection
mechanisms will be more simplistic and provide broad and general protection. As we
ascend up the layers, more complexity is added, and functionality becomes more spe-
cific and granular. The top layer holds the most complexity because it is directed toward
providing the user with a vast amount of functionality and options. Functionality and
complexity of security increases as it approaches the layers that are closer to the user. The
increased complexity lowers the assurance levels of the security mechanisms. This is
shown in Figure 5-10.
The more complex a security mechanism becomes, the less assurance it provides. This
is because the complexity of the mechanism demands more technical understanding
from the individuals who install, test, maintain, and use it. The more complex the tools,
the more chances there are for errors, and therefore increased chances for security com-
promises. The more complex the security mechanism, the harder it is to fully test it under
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:57 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
all possible conditions. On the other hand, simplistic mechanisms cannot provide the de-
sired richness of functionality and options, although they are easier to install, maintain,
use, and test. So the tradeoffs between functionality and assurance need to be fully under-
stood to make the right security mechanism choices when designing a system.
Once the designers have an idea of what the security mechanisms should focus on
(users, operations, or data), what layer(s) the mechanisms should be placed at (hard-
ware, kernel, operating system, services, or program), and the complexity of each mech-
anism, the mechanisms need to be built and integrated in a way to have a proper
relationship with other parts of the system.
The first step is to decide what system mechanisms need to be trusted and specify how
these entities can interact in a secure manner. Although it might seem that you would
want to trust all the components within the system, this would cause too much overhead,
complexity, and performance bottlenecks. For a mechanism to be trusted, it means that it
protects itself and the data it is processing, it performs in predictable and secure manners,
and it does not adversely affect other trusted or untrusted mechanisms. In return, these
trusted components have access to more privileged services, have direct access to memory,
usually have higher priority when requesting CPU processing time, and have more con-
trol over system resources. So the trusted subjects and objects need to be identified and
distinguished from the untrusted ones and placed into defined subsets.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:58 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:58 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Security Perimeter
Now, whom do we trust? Answer: Anyone inside the security perimeter.
As stated previously, not every component and resource falls within the TCB, so some
resources fall outside of this imaginary boundary referred to as the security perimeter. A
perimeter is a boundary that divides the trusted from the untrusted. For the system to stay
in a secure and trusted state when a component within the TCB needs to communicate
with a component outside of the TCB, precise communication standards must be devel-
oped to ensure that this type of communication cannot bring on unexpected security
compromises. This type of communication is handled and controlled through interfaces.
For example, a resource that is within the boundary of the TCB, or security perimeter,
must not pass confidential information to resources outside the TCB. The resource
within the TCB must also be careful about the commands and information it accepts
from less-trusted resources. These limitations and restrictions are built into the inter-
faces that permit this type of communication to take place and are the mechanisms that
enforce the security perimeter, as shown in Figure 5-11. Communication between
trusted components and untrusted components needs to be controlled to ensure that
confidential information does not flow in an unintended way.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:58 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-11 Interfaces control the communication between trusted and untrusted processes.
NOTE The TCB and security perimeter are not physical entities, but
conceptual constructs used by the operating system to delineate between
trusted and untrusted components. They are illustrated here to show the
relationship of the TCB, security perimeter, and different components.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:59 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
• It must provide isolation for the processes carrying out the reference monitor
concept and they must be tamperproof.
• The reference monitor must be invoked for every access attempt and must be
impossible to circumvent. Thus, the reference monitor must be implemented
in a complete and foolproof way.
• The reference monitor must be verifiable as being correct. This means that all
decisions made by the reference monitor should be written to an audit log, and
verified as being correct.
• It must be small enough to be able to be tested and verified in a complete and
comprehensive manner.
These are the requirements of the reference monitor; therefore, they are the require-
ments of the components that provide and enforce the reference monitor concept—the
security kernel.
These issues work in the abstract, but are implemented in the physical world of hard-
ware devices and software code. The assurance that the components are enforcing the
abstract idea of the reference monitor is proved through testing and functionality.
Figure 5-12 provides a quick analogy to show you the relationship between the com-
ponents that make up the kernel, the kernel itself, and the reference monitor concept.
Individuals make up a society. The individuals can represent the components and the
society can represent the kernel. For a society to have a certain standard of living, it
needs to react in specific ways, which is why we have laws. The laws represent the refer-
ence monitor, which enforces proper activity. Each individual is expected to stay within
the bounds of the laws and act in specific ways so society as a whole is not adversely af-
fected and the standard of living is not threatened. The components within a system
must stay within the bounds of the reference monitor’s laws so that they will not ad-
versely affect other components and threaten the security of the system.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:39:59 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-12 Components, like people, need to say inside the bounds of the rules.
References
Rationale Behind the Evaluation Classes: www.kernel.org/pub/linux/libs/
security/Orange-Linux/refs/Orange/OrangeI-II-6.html
The Reference Monitor Concept: citeseer.nj.nec.com/299300.html
Implementing Complete Mediation: www.cs.cornell.edu/html/cs513-sp99/
NL05.html
Domains
Okay, here are all the marbles you can play with. We will call that your domain of resources.
A domain is defined as a set of objects that a subject is able to access. This domain can
be all the resources a user can access, all the files available to a program, the memory seg-
ments available to a process, or the services and processes available to an application. A
subject needs to be able to access and use objects (resources) to perform tasks, and the
domain defines which objects are available to the subject and which objects are un-
touchable and therefore unusable by the subject.
These domains have to be identified, separated, and strictly enforced. An operating
system may work in a privileged mode and a user mode. The reason to even use these
two different modes is to define two different domains. The privileged mode has a much
larger domain to work with (or more resources to access); thus, it can provide much
more functionality. When an operating system works in privileged mode, it can physi-
cally access memory modules, transfer data from an unprotected domain to a protected
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:00 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-13 The higher the level of trust, the larger the number of available resources.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:00 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Security Policy
We have stated that the TCB contains components that directly enforce the security pol-
icy, but what is a security policy?
A security policy is a set of rules and practices dictating how sensitive information is
managed, protected, and distributed. A security policy expresses exactly what the secu-
rity level should be by setting the goals of what the security mechanisms are to accom-
plish. This is an important element that has a major role in defining the design of the
system. The security policy is a foundation for the specifications of a system and pro-
vides the baseline for evaluating a system. In Chapter 3, security policies were examined
in depth, but those policies were directed toward the company itself. The security poli-
cies being addressed here are for operating systems and applications. The different policies
are similar but have different targets: an organization as opposed to an individual com-
puter system.
A system provides trust by fulfilling and enforcing the security policy and typically
deals with the relationships between subjects and objects. The policy must indicate
what subjects can access individual objects, and what actions are acceptable and unac-
ceptable. The definition of what trust means is derived from a framework and the secu-
rity policy works as this framework for computing systems.
For a system to provide an acceptable level of trust, it must be based on an architec-
ture that provides the capabilities to protect itself from untrusted processes, intentional
or accidental compromises, and attacks at different layers of the system. A majority of
the trust ratings require a defined subset of subjects and objects, explicit domains, and
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:00 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Least Privilege
Once resources and processes are isolated properly, least privilege needs to be enforced.
This means that a process has no more privileges than necessary to be able to fulfill its
functions. Only processes that need to carry out critical system functions should be al-
lowed to, and other less-privileged processes should call upon the more privileged pro-
cesses to carry out these types of activities when necessary. This type of indirect activity
protects the system from poorly written or misbehaving code. Processes should possess
a level of privilege only as long as they really need it. If a process needs to have its status
elevated so it can interact directly with sensitive information, as soon as its tasks are
complete, the process’s status should be dropped to a lower privilege to ensure that an-
other mechanism cannot use it to adversely affect the system. Only processes needing
complete system privileges are located in the kernel; other less-privileged processes call
upon them to process sensitive or delicate operations.
References
Access Control Policies and Mechanisms: www.cs.cornell.edu/html/
cs513-sp99/NL03.html
Information Warfare Site: www.iwar.org.uk/comsec/resources/standards/
rainbow/NCSC-TG-028.htm
Discretionary Protection: www.kernel.org/pub/linux/libs/security/
Orange-Linux/refs/Orange/OrangeI-II-2.html
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:01 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Security Models
An important concept in the design and analysis of secure systems is the security model,
because it incorporates the security policy that should be enforced in the system. A
model is a symbolic representation of a policy. It maps the desires of the policy makers
into a set of rules that are to be followed by a computer system.
We have continually mentioned the security policy and its importance, but it is an ab-
stract term that represents the objectives and goals a system must meet and accomplish to
be deemed secure and acceptable. How do we get from an abstract security policy to an
administrator being able to uncheck a box on the graphical user interface (GUI) to disal-
low David from accessing configuration files on his system? There are many complex
steps in between that take place during the system’s design and development.
A security model maps the abstract goals of the policy to information system terms by
specifying explicit data structures and techniques necessary to enforce the security pol-
icy. A security model is usually represented in mathematics and analytical ideas, which
are then mapped to system specifications, and then developed by programmers through
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:01 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
programming code. So we have a policy that encompasses security goals like “each sub-
ject must be authorized to access each object.” The security model takes this require-
ment and provides the necessary mathematical formulas, relationships, and structure to
be followed to accomplish this goal. From here, specifications are developed per operat-
ing system type (Unix, Windows, or Macintosh), and individual vendors can decide
how they are going to implement mechanisms that meet these necessary specifications.
So in a very general and simplistic example, if a security policy states that subjects need
to be authorized to access objects, the security model would provide the mathematical re-
lationships and formulas explaining how x can access y only through outlined specific
methods. Specifications are then developed to provide a bridge to what this means in a
computing environment and how it maps to components and mechanisms that need to
be coded and developed. The developers then write the program code to produce the
mechanisms that provide a way for a system to use access control lists and give adminis-
trators some degree of control. This mechanism presents the network administrator with
a GUI representation, like check boxes, to choose which subjects can access what objects,
to be able to set this configuration within the operating system. This is a rudimentary ex-
ample because security models can be very complex, but it is used to demonstrate the rela-
tionship between the security policy and the security model.
Some security models enforce rules to protect confidentiality, such as the Bell- LaPadula
model. Other models enforce rules to protect integrity, such as the Biba model. Formal se-
curity models, such as Bell-LaPadula and Biba, are used to provide high assurance in secu-
rity. Informal models, such as Clark-Wilson, are used more as a framework to describe how
security policies should be expressed and executed.
A security policy outlines goals with no idea of how they would be accomplished. A
model is a framework that gives the policy form and solves security problems for partic-
ular situations. Several security models have been developed to enforce security poli-
cies, and the following sections provide overviews of each model.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:01 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Bell-LaPadula Model
I don’t want anyone to know my secrets. Response: We need Mr. Bell and Mr. LaPadula in
here then.
In the 1970s, the U.S. military used time-sharing mainframe systems and was con-
cerned about the security of these systems and leakage of classified information. The
Bell-LaPadula model was developed to address these concerns. It was the first mathe-
matical model of a multilevel security policy used to define the concept of a secure state
machine and modes of access and outline rules of access. Its development was funded
by the U.S. government to provide a framework for computer systems that would be
used to store and process sensitive information. The model’s main goal is to prevent secret
information from being accessed in an unauthorized manner.
A system that employs the Bell-LaPadula model is called a multilevel security system
because users with different clearances use the systems, and the systems process data
with different classifications. The level at which information is classified determines the
handling procedures that should be used. These access rights together form a lattice,
which is an upper bound and lower bound of authorized access. A subject that has top
secret clearance can access top-secret, secret, and unclassified data. Top secret is the upper
bound and unclassified is the lower bound. Mandatory access control is based on a lattice
of security labels.
The Bell-LaPadula model is a state machine model enforcing the confidentiality as-
pects of access control. A matrix and security levels are used to determine if subjects can
access different objects. The subject’s clearance is compared to the object’s classification;
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:01 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Top Secret
Public
= Subject
Figure 5-14 In the Bell-LaPadula model, each subject has a lattice of rights.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:02 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
An important thing to note is that the Bell-LaPadula model was developed to make
sure secrets stay secret; thus, it provides and addresses confidentiality only. This model
does not address integrity of the data the system maintains—only who can and cannot
access the data.
Biba Model
The Biba model was developed after the Bell-LaPadula model. It uses a state machine
model and is very similar to the Bell-LaPadula model. Biba addresses the integrity of
data being threatened when subjects at lower integrity levels are able to write to
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:02 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:02 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Clark-Wilson Model
The Clark-Wilson model was developed after Biba and takes some different approaches
to protecting the integrity of information by focusing on preventing authorized users
from making unauthorized modification of data, or commit fraud and errors within
commercial applications.
As stated earlier, military institutions are usually more concerned about confidential-
ity, and the commercial sector is usually more concerned with the integrity of the data
they process. In the Clark-Wilson model, users cannot access and manipulate objects di-
rectly, but must access the object through a program. This provides another layer of pro-
tection between the subject and the object and further restricts the type of actions that
can take place on that object, thus protecting the integrity of the object.
Let’s say Emily is a user of an application that has been built using the Clark-Wilson
model. She cannot access files directly, but must open and manipulate files through the
program built upon the Clark-Wilson model. The programs have their own set of restric-
tions dictating what actions the users can and cannot perform on objects. This stream-
lines the way objects are protected and reduces the methods that could cause the data to
be corrupted or changed in an undesirable manner.
NOTE Ensuring that subjects can only access objects through the use
of an application is referred to as access triple. A subject has to go through
an application to access an object: subject – application – object.
This model also enforces separation of duties, which divides an operation into differ-
ent parts and requires different users or rules to perform each part. This ensures that a
critical task cannot be carried out by one entity. Auditing is also required in this model
to track the information coming in from the outside of the system.
So the Clark-Wilson model prevents authorized users from making modifications by
requiring them to go through programs to modify objects. It also prevents authorized
users from making improper modifications by enforcing separation of duties, and
maintains an audit log for external transactions.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:03 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Goals of Integrity
There are three main goals of integrity:
Clark-Wilson addresses each of these goals in its model. Biba only addresses the
first goal.
Noninterference Model
Stop touching me. Stop touching me. You are interfering with me!
Multilevel security properties can be expressed in other ways, one being
noninterference. This concept is implemented to ensure that any actions that take place at
a higher security level do not affect, or interfere, with actions that take place at a lower
level. This type of model does not concern itself with the flow of data, but with what a
subject knows about the state of the system. So if an entity at a higher security level per-
forms an action, it cannot change the state for the entity at the lower level.
If a lower-level entity was aware of a certain activity that took place by an entity at a
higher level and the state of system changed for this lower-level entity, the entity might
be able to deduce too much information about the activities of the higher state, which
in turn is a way of leaking information.
Users at a lower security level should not be aware of the commands executed by users
at a higher level and should not be affected by those commands in any way.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:03 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Figure 5-15 The Chinese Wall model provides dynamic access controls.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:03 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Security Models
• Bell-LaPadula model A model that protects the confidentiality of the
information within a system.
• Simple security rule A subject cannot read data at a higher security
level (no read up).
• *-property rule A subject cannot write data to an object at a lower
security level (no write down).
• Strong star property rule A subject that has read and write
capabilities can only perform those functions at the same security level.
• Biba model A model that protects the integrity of the information
within a system.
• Simple integrity axiom A subject cannot read data at a lower
integrity level (no read down).
• *-integrity axiom A subject cannot modify an object in a higher
integrity level (no write up).
• Clark-Wilson model An integrity model implemented to protect
the integrity of data and to ensure that properly formatted transactions
take place.
• Subjects can only access objects through authorized programs
(access triple).
• Separation of duties is enforced.
• Auditing is required.
• Information flow model Information is restricted in its flow to only go
to and from entities in a way that does not negate the security policy.
• Noninterference model Commands and activities performed at one
security level should not be seen or affect subjects or objects at a different
security level.
• Brewer and Nash model A model that allows for dynamically changing
access controls that protect against conflicts of interest
• Graham-Denning model A model that creates rights for subjects, which
correlate to the operations that can be execute on objects.
• Harrison-Ruzzo-Ullman model A model that allows for access rights
to be changed and specifies how subjects and objects should be created
and deleted.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:03 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:04 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
References
Data Protection Measures: www.tpub.com/ans/51.htm
Personal Computer Security: www.cs.nps.navy.mil/curricula/tracks/security/
notes/chap02_17.html
Physical Model of Operations: chacs.nrl.navy.mil/publications/CHACS/1997/
jifi_web/node24.html
Defense Security Service, NISPOM Chapter 8: www.dss.mil/isec/ch8nispom/
toc.htm
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:04 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:04 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
A Verified protection
B Mandatory protection
C Discretionary protection
D Minimal security
The classification A represents the highest level of security and D represents the low-
est level of security.
Each division can have one or more numbered classes and each has a corresponding
set of requirements that must be met for a system to achieve that particular rating. The
classes with higher numbers indicate a greater degree of trust and assurance. So B2
would offer more trust than B1, and C2 would offer more trust than C1.
The criteria includes four main topics: security policy, accountability, assurance, and
documentation, but these actually break down into seven different areas:
• Security policy The policy must be explicit and well defined and enforced by
the mechanisms within the system.
• Identification Individual subjects must be uniquely identified.
• Labels Access control labels must be associated properly with objects.
• Documentation This includes the test, design, specification documents, user
guides, and manuals.
• Accountability Audit data must be captured and protected to enforce
accountability.
• Life cycle assurance Software, hardware, and firmware must be able to be
tested individually to ensure that each enforces the security policy in an effective
manner throughout their lifetimes.
• Continuous protection The security mechanisms and the system as a whole
must perform predictably and acceptably in different situations continuously.
These categories are evaluated independently, but the rating that is assigned at the
end does not specify these different objectives individually. The rating is a sum total of
these items.
Each division and class incorporates the requirements of the ones below it. This
means that C2 must meet its criteria requirements and all of C1 requirements, and B3
has its requirements to fulfill along with those of C1, C2, B1, and B2. Each division or
class ups the ante on security requirements and is expected to fulfill the requirements of
all the classes and divisions below it.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:04 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:04 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
NOTE Security labels are not required until security rating B; thus, C2 does
not require security labels but B1 does.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:04 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Rainbow Series
Why are there so many colors in the rainbow? Answer: Because there are so many security topics
in the computing world that needed names.
The Orange Book mainly addresses government and military requirements and ex-
pectations from their computer systems. Many people within the security field have
pointed out several deficiencies of the Orange Book, particularly when it is being applied
to systems that are to be used in commercial areas instead of government organizations.
The following summarizes a majority of the troubling issues security practitioners have
expressed about the use of the Orange Book:
• The Orange Book looks specifically at the operating system and not other issues
like networking, databases, and so on.
• The Orange Book focuses mainly on one attribute of security, confidentiality,
and not at integrity, availability, and authenticity.
• The Orange Book works with government classifications and not the protection
classifications that commercial industries use.
• The Orange Book has a relatively small number of ratings, which means many
different aspects of security are not evaluated and rated independently.
The Orange Book places great emphasis on controlling which users can access a system
and virtually ignores controlling what those users do with the information once they are
authorized. Authorized users can, and usually do, cause more damage to data than out-
side attackers. Commercial organizations have expressed more concern about the integ-
rity of their data while the military organizations stress that their top concern is
confidentiality. Because of these different goals, the Orange Book is a better evaluation
tool for government and military systems.
Because the Orange Book focuses on the operating system, many other areas of secu-
rity were left out. The Orange Book provides a broad framework for building and evalu-
ating trusted systems, but it leaves many questions about topics other than just an
operating system unanswered. So more books were written to extend the coverage of the
Orange Book into other areas of security. These books provide detailed information and
interpretations of certain Orange Book requirements and describe the evaluation pro-
cesses. These books are collectively called the Rainbow Series because each book has
a different color cover.
For an explanation of each book and its usage, please refer to the following references.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Red Book
The Orange Book addresses single-system security, but networks are a combination
of systems and the network needs to be secure without having to fully trust each and ev-
ery system connected to it. The Trusted Network Interpretation (TNI), also called the Red
Book because of the color of its cover, addresses security evaluation topics for networks
and network components. It addresses isolated local area networks and wide area
internetwork systems.
Like the Orange Book, the Red Book does not supply specific details about how to
implement security mechanisms; instead, it provides a framework for securing different
types of networks. A network has a security policy, architecture, and design, as does an
operating system. Subjects accessing objects on the network need to be controlled, mon-
itored, and audited. In a network, the subject could be a workstation and an object
could be a network service on a server.
The Red Book rates confidentiality and integrity of data and operations that happen
within a network and the network products. Data and labels need to be protected from
unauthorized modification, and the integrity of information as it is transferred needs to
be ensured. The source and destination mechanisms used for messages are evaluated
and tested to ensure that modification is not allowed.
Encryption and protocols are components that provide a lot of the security within
a network, and the Red Book measures their functionality, strength, and assurance.
The following is a brief overview of the security items addressed in the Red Book:
• Communication integrity:
• Authentication Protects against masquerading and playback attacks.
Mechanisms include digital signatures, encryption, timestamp, and passwords.
• Message integrity Protects protocol header, routing information, and
the packet payload from being modified. Mechanisms include message
authentication and encryption.
• Nonrepudiation Ensures that a sender cannot deny sending a message.
Mechanisms include encryption, digital signatures, and notary.
• Denial-of-service prevention:
• Continuity of operations Ensures that network is available even if
attacked. Mechanisms include fault tolerant and redundant systems and
the capability to reconfigure network parameters in case of an emergency.
• Network management Monitors network performance and identifies
attacks and failures. Mechanisms include components that enable network
administrators to monitor and restrict resource access.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Information Technology
Security Evaluation Criteria
The Information Technology Security Evaluation Criteria (ITSEC) was the first attempt at
establishing a single standard for evaluating security attributes of computer systems by
many European countries. ITSEC is only used in Europe. The United States looked to the
Orange Book and Rainbow Series, and Europe employed the ITSEC to evaluate and rate
computer systems. (Actually, today everyone is migrating to the Common Criteria, ex-
plained in the next section.)
There are two main attributes of a system when it is evaluated under ITSEC: functional-
ity and assurance. When the functionality of a system is being evaluated, the services that
are provided to the users (access control mechanisms, auditing, authentication, and so
on) are examined and measured. System functionality can be very diverse in nature be-
cause systems are developed differently just to provide different functionality to users.
Nonetheless, when functionality is evaluated, it is tested to see if the system delivers what
it says it delivers. Assurance, on the other hand, is more abstract and harder to test. Assur-
ance is the degree of confidence in a security component, and its effectiveness and capa-
bility to perform consistently. Assurance is generally tested by examining development
practices, documentation, configuration management, and testing mechanisms.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
ITSEC TCSEC
E0 = D
F1 + E1 = C1
F2 + E2 = C2
F3 + E3 = B1
F4 + E4 = B2
F5 + E5 = B3
F5 + E6 = A1
F6 = Systems the provide high integrity
F7 = Systems that provide high availability
F8 = Systems that provide data integrity during communication
F9 = Systems that provide high confidentiality (like cryptographic devices)
F10 = Networks with high demands on confidentiality and integrity
As you can see, a majority of the ITSEC ratings can be mapped to the Orange Book rat-
ings, but then ITSEC took a step farther and added F6 through F10 for specific needs
consumers might have that the Orange Book does not address.
ITSEC is a criteria for operating systems and other products and refers to them as the
target of evaluation (TOE). So if you are reading literature discussing the ITSEC rating of
a product and it states that the TOE has a rating of F1 and E5, you know that the TOE is
the product that was evaluated and that it has a low functionality rating and a high as-
surance rating.
References
Criteria and Methods of Evaluations of Information Systems: www.cordis.lu/
infosec/src/crit.htm
ITSEC: www.iwar.org.uk/comsec/resources/standards/itsec.htm
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Common Criteria
“The TCSEC is too hard, the ITSEC is too soft, but the Common Criteria is just right,” said the
baby bear.
The Orange and Red Books provided evaluation schemes that were too rigid. ITSEC
attempted to provide a more flexible approach by separating the functionality and as-
surance attributes and considering the evaluation of entire systems. However, this flexi-
bility added complexity because evaluators could mix and match functionality and
assurance ratings, which ended up in too many classifications to keep straight. Because
we are a species that continues to try to get it right, the next attempt for an effective and
usable evaluation criteria was the Common Criteria.
In 1990, the International Organization for Standardization (ISO) identified the need
of international standard evaluation criteria to be used globally. The Common Criteria
project started in 1993 when several organizations came together to combine and align
existing and emerging evaluation criteria (TCSEC, ITSEC, Canadian Trusted Computer
Product Evaluation Criteria [CTCPEC], and the Federal Criteria). It was developed
through a collaboration among national security standards organizations within the
United States, Canada, France, Germany, the United Kingdom, and the Netherlands.
The benefit of having a worldwide recognized and accepted criteria helps consumers
by reducing the complexity of the ratings and eliminating the need to understand the
definition and meaning of different ratings within various evaluation schemes. This also
helps manufacturers because now they can build to one specific set of requirements if
they want to sell their products internationally, instead of having to meet several differ-
ent ratings with varying rules and requirements.
The Orange Book evaluated all systems by how they compared to the Bell-LaPadula
model. The Common Criteria provides more flexibility by evaluating a product against a
protection profile, which is structured to address specific security problems. So while the
Orange Book said, “Everyone march this direction in this form using this path,” the Com-
mon Criteria says, “Okay, what are the threats we are facing today and what are the best
ways of battling them?”
An evaluation is carried out on a product and is assigned an evaluation assurance level
(EAL). The thoroughness and stringent testing increases in detailed-oriented tasks as the
levels increase. The Common Criteria has seven assurance levels. The ranges go from
EAL1, where functionality testing takes place, to EAL7, where thorough testing is per-
formed and the system design is verified. The different EAL packages are listed here:
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:05 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:06 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Certification
How did you certify this product? Answer: It came in a very pretty box.
Certification is the comprehensive technical evaluation of the security components
and their compliance for the purpose of accreditation. A certification process can use
safeguard evaluation, risk analysis, verification, testing, and auditing techniques to as-
sess the appropriateness of a specific system, which processes a certain classification
level of information within a particular environment. For example, if Dan were the secu-
rity officer for a company that just purchased new systems to be used to process their
confidential data, he would like to know if these systems are appropriate for these tasks
and if they are going to provide the necessary level of protection. He could pay a com-
pany that specializes in these matters to perform the necessary procedures to certify the
systems. The company will perform tests on the software configurations, hardware,
firmware, design, implementation, system procedures, and the physical and communi-
cation controls. The certification will indicate the good, bad, and the ugly about the se-
curity protection level and the mechanisms that support it within these systems and
how they work within the given environment. If the outcome of this process looks good
to Dan, he will take it to his management to start the accreditation process.
Accreditation
Accreditation is the formal acceptance of the adequacy of a system’s overall security and
functionality by management. The certification information is presented to manage-
ment, or the responsible body, and it is up to the management to ask questions, review
the reports and findings, and decide upon the acceptance of the safeguards and if any
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:07 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
7799 Standards
The British Standard 7799 is a risk-based method for assessing, evaluating, and manag-
ing risks. It takes a holistic approach to security, instead of just focusing on the technical
issues. It is a standard and a framework for developing a security program. This can pro-
vide guidelines for organizations all around the world on how to develop and imple-
ment a security program and how to improve currently deployed programs. Companies
can be certified against these standards, which evaluate and “grade” their overall secu-
rity posture.
The British Standard is divided into ten sections:
• Security policy
• Security organization
• Assets classification and control
• Personnel security
• Physical and environmental security
• Computer and network management
• System access control
• System development and maintenance
• Business continuity planning
• Compliance
The British Standard 7799 was developed in England (who would of thought) and
became a de facto standard. A de facto standard just means that the industry basically
stated, “Hey, that’s a good idea. Let’s all do that.” A de facto standard is not dictated by a
standards board. Then a standards board did get into the act. The International Organi-
zation for Standardization (ISO), which develops standards for 145 countries, formal-
ized the approach a bit and gave it a more international name, ISO I7799, which is also
referred to as the Code of Practice for Information Security Management.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:07 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Open Systems
I want to be able to work and play well with others.
Systems that are described as open are built upon standards, protocols, and interfaces
that have published specifications, which enable third-party vendors to develop add-on
components and devices. This type of architecture provides interoperability between
products by different vendors of different operating systems, applications, and hard-
ware devices. This interoperability is provided by all the vendors involved who follow
specific standards and provide interfaces that enable each system to easily communicate
with other systems and allow add-ons to hook into the system easily.
A majority of the systems in use today are open systems. The reason that an adminis-
trator can have Windows NT 4.0, Windows 2000, Macintosh, and Unix computers on
the same network communicating easily is because these platforms are open. If a soft-
ware vendor creates a closed system, they are restricting their sales to proprietary envi-
ronments instead of to the whole world.
Closed Systems
I only want to work and play with you and him.
Systems that are referred to as closed use an architecture that does not follow industry
standards. Interoperability and standard interfaces are not employed to enable easy
communication between different types of systems and add-on features. Closed systems
are proprietary, meaning that the system can only communicate with like systems.
A closed architecture can provide more security to the system because it does not
have as many doorways in, and it operates in a more secluded environment than open
environments. Because a closed system is proprietary, there are not as many tools to
thwart the security mechanisms and not as many people who understand its design, lan-
guage, and security weaknesses to exploit. However, more security brings less function-
ality. A majority of the systems today are built with open architecture to enable them to
work with other types of systems, easily share information, and take advantage of the
functionality that third-party add-ons bring. However, this opens the doors to more
hacks, cracks, and attacks. You can’t have your cake and eat it too.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:07 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Covert Channels
A covert channel is a way for an entity to receive information in an unauthorized man-
ner. It is an information flow that is not controlled by a security mechanism or the
mechanism has been successfully compromised. This type of information path is usu-
ally not used for communication; thus, the system does not properly protect this path
because the developers never envisioned information being passed this way. For an en-
tity to receive information in this manner violates the security policy of the system.
There are two types of covert channels: timing and storage. In a covert timing channel,
one process relays information to another by modulating its use of system resources.
The modulation of system resources can be accessing the hard drive, using excessive
CPU cycles, or head placement on a hard drive track. For example, if one process wrote
to the hard drive 30 times within 30 seconds this could mean something to another pro-
cess that is programmed to look for this type of activity. The second process watches out
for this “signal” and once it receives it, the second process carries out whatever evil activ-
ity it is programmed to do. You can think of it as a type of Morse code, but with the use
of some type of system resource.
A covert storage channel is when a process writes data to a storage location and an-
other process directly, or indirectly, reads it. The problem occurs when the processes are
at different security levels, and therefore not supposed to be sharing sensitive data.
Maybe an attacker figures out that two processes with different trust levels can view
the pagefile.sys file. Process 1 writes some type of confidential information to the
pagefile.sys file, and process 2 reads it. This would go against the information flow of
the system and directly negate the security policy.
The most common covert channel in use today is the Loki attack. This attack uses the
ICMP protocol for communication purposes. This protocol was not developed to be
used in this manner, it is only supposed to send status and error messages. But someone
developed a tool (Loki) that will allow an attacker to write data right behind the ICMP
header. This allows the attacker to communicate to another system through a covert
channel. It is usually very successful because most firewalls are configured to allow
ICMP traffic in and out of their environments. This is a covert channel because it is using
something for communication purposes that was not developed for this type of com-
munication functionality.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:07 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Backdoors
In the programming world, backdoors are also called maintenance hooks. They are in-
structions within software that only the developer knows about and can invoke. They
are placed in the software for easy access. They also allow the developer to view and edit
the code without having to go through regular access controls. During the development
phase of the software, these can be very useful, but if they are not removed before going
into production, they can cause major security issues.
The backdoor is usually initiated by a random sequence of keystrokes that provides
access into the software without having to go through normal access control and secu-
rity checks and mechanisms.
An application that has a maintenance hook enables the developer to execute specific
commands by using a specific sequence of keystrokes. Once this is done successfully,
the developer is inside the application looking directly at the code. She might do this to
watch problem areas within the code, check variable population, export more code into
the program, or fix problems that she sees that are taking place. Although this sounds
nice and healthy, if an attacker finds out about this maintenance hook, more sinister ac-
tions may be taken. So all backdoors need to be removed from software before it goes
into production.
Countermeasures
Because backdoors are usually inserted by programmers, they are the ones who usually
have to take them out before the programs and systems go into production. Code re-
views and unit and integration testing should always be looking out for backdoors in
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:07 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
• A host intrusion detection system can be used to watch for an attacker using a
backdoor into the system.
• File system permissions can be set to try and protect configuration files and
sensitive information from being modified.
• Strict access control can be added to prevent access to the system in the first place.
• File system encryption can be used to protect sensitive information.
• Auditing should be in place to detect any type of backdoor use.
Asynchronous Attack
Specific attacks can take place on a system that take advantage of the way a system pro-
cesses requests and performs tasks. An asynchronous attack deals with the sequences of
steps a system uses to complete a task. For example, if a system uses an autoexec.bat file,
the system first goes through a boot process and checks to see if an autoexec.bat file exists
on the system. If one does not exist, it will continue with its bootup procedures, but if it
does exist, it will open the file and process it line by line. There is a timing difference of
when the system checks to see if an autoexec.bat file exists and actually executing the
contents of the file. There are actually two different and distinct steps here. A time-of-check
versus time-of-use (TOC/TOU) attack could replace the autoexec.bat with a different
autoexec.bat that compromises the system before the system actually initiates it.
A similar but different issue is called a race condition. When two different processes
need to carry out their tasks on a resource, they need to follow the correct sequence. Pro-
cess 1 needs to carry out its work before process 2 accesses the same resource and carries
out its tasks. If process 2 goes before process 1, the outcome could be very different. If an
attacker could manipulate the processes so that process 2 did its thing first, she is con-
trolling the outcome of the processing procedure.
Countermeasures
It would take a dedicated attacker with great precision to perform these types of at-
tacks, but it is possible and has been done. The following can be used to protect
against this type of attack:
• A host intrusion detection system can be used to watch for this type of
suspicious behavior.
• File system permissions and encryption can be set to protect sensitive files.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:07 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
NOTE This attack would be extremely hard to detect because it deals with the
sequence of steps processes take when carrying out their tasks. There are few,
if any, protection tools that look at these issues to this level of granularity. It is
best addressed during the development of the product.
Buffer Overflows
Buffer overflows happen when programs do not check the length of data that is inputted
into a program. The programmer can set the value of a required input to be 80 charac-
ters, but does not ensure that only up to 80 are actually inputted from a user or another
program. If more than 80 characters are entered, this extra data overflows its allotted
memory segment and is executed by the CPU. The extra data can launch another pro-
gram or be a set of code that was devised to perform disruptive behavior in the system.
This is sometimes referred to as “smashing the stack.” A buffer overflow is usually aimed
at systems that let the extra code be executed with privileged rights, meaning the soft-
ware executes in a more privileged mode and has access to more critical resources.
Countermeasures
The first and best countermeasure to buffer overflows is proper programming and good
coding practices. There are also several types of tools available to help prevent buffer
overflows. Some tools monitor dynamic link library (DLL) usage, and other tools pro-
vide a wrapper around the kernel that monitors calls and watches for known buffer
overflow attacks.
There is not much a user can do to prevent buffer overflows, because they are part of
the program code. But when vendors discover these issues, they develop and distribute
patches to reduce this type of vulnerability. The following can be used to protect against
buffer overflows:
• A host intrusion detection system can be used to watch for this type of
suspicious behavior.
• File system permissions and encryption can be set to protect sensitive files.
• Strict access control measures can be used to prevent an intruder from accessing
the system in the first place.
• Auditing should be in place to catch patterns or indications of buffer overflow
attacks.
Summary
The architecture of a computer system is very important and covers many topics. The
system has to make sure that memory is properly segregated and protected, ensure that
only authorized subjects access objects, ensure that untrusted processes cannot perform
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Quick Tips
• A system can have the exact same hardware, software components, and
applications, but provide different levels of protection because of the different
security policies and security models that the systems were built upon.
• A CPU contains a control unit, which controls the timing of the execution of
instructions and data, and an ALU, which performs mathematical functions
and logical operations.
• Most systems use protection rings. The more privileged processes run in the
lower ring numbers and have access to all or most of the system resources.
Applications run in higher-numbered rings and have access to a smaller
amount of resources.
• Operating system processes are executed in privileged or supervisory mode,
and applications are executed in user mode, also known as “problem” state.
• Secondary storage is nonvolatile and can be a hard drive, CD-ROM, floppy
drive, tape backup, or a zip drive.
• Virtual storage combines RAM and secondary storage so the system seems to
have a larger bank of memory.
• A deadlock situation occurs when two processes are trying to access the same
resource at the same time or when a process commits a resource and does not
release it.
• Security mechanisms can focus on different issues, work at different layers,
and vary in complexity.
• The more complex a security mechanism is, the less amount of assurance it
can provide.
• Not all system components fall under the TCB, only those that enforce the
security policy directly and protect the system. These components are within
the security perimeter.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
Questions
Please remember that these questions are formatted and asked in a certain way for a reason.
You must remember that the CISSP exam is asking questions at a conceptual level. Ques-
tions may not always have the perfect answer, and the candidate is advised against always
looking for the perfect answer. The candidate should look for the best answer in the list.
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:08 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:09 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:09 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:09 PM
Color profile: Generic CMYK printer profile
Composite Default screen All-In-One / CISSP Certification All-in-One Exam Guide / Harris / 222966-7/ Chapter 5
P:\010Comp\All-in-1\966-7\ch05.vp
Monday, May 19, 2003 3:40:09 PM
Fernandez et al. Cybersecurity (2022) 5:7
https://doi.org/10.1186/s42400-022-00109-w
Cybersecurity
Abstract
During the initial stages of software development, the primary goal is to define precise and detailed requirements
without concern for software realizations. Security constraints should be introduced then and must be based on the
semantic aspects of applications, not on their software architectures, as it is the case in most secure development
methodologies. In these stages, we need to identify threats as attacker goals and indicate what conceptual security
defenses are needed to thwart these goals, without consideration of implementation details. We can consider the
effects of threats on the application assets and try to find ways to stop them. These threats should be controlled with
abstract security mechanisms that can be realized by abstract security patterns (ASPs), that include only the core func-
tions of these mechanisms, which must be present in every implementation of them. An abstract security pattern
describes a conceptual security mechanism that includes functions able to stop or mitigate a threat or comply with
a regulation or institutional policy. We describe here the properties of ASPs and present a detailed example. We relate
ASPs to each other and to Security Solution Frames, which describe families of related patterns. We show how to
include ASPs to secure an application, as well as how to derive concrete patterns from them. Finally, we discuss their
practical value, including their use in “security by design” and IoT systems design.
Keywords: Security patterns, Secure software development, Security requirements, Secure software architecture, IoT
systems design
© The Author(s) 2022. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which
permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the
original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or
other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line
to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory
regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this
licence, visit http://creativecommons.org/licenses/by/4.0/.
Fernandez et al. Cybersecurity (2022) 5:7 Page 2 of 17
application—they may reflect business rules and regula- a hierarchy of patterns going from abstract security pat-
tions, and from the necessity to defend against possible terns to platform-oriented versions of these patterns and
threats. At this stage, we can add patterns (or other arti- their code realizations.
facts), to define abstract security mechanisms to express ASPs are different from principles of good security
these restrictions. From our concern for security, by pat- design, e.g., Single-Point-of-Access (Yoder and Barcalow
tern we mean a security pattern, an encapsulated solution 2000) or Need to Know (Fernandez et al. 2011), even if
to a security problem (Fernandez 2013; Steel et al. 2005). these can be represented as patterns. ASPs correspond
These abstract patterns would include only the funda- to application defenses, intended to be realized later by
mental characteristics of the security mechanism, not specific computational mechanisms, they do not describe
including implementation aspects. In Avgeriou (2003), principles, that may have many realizations. In each use
we introduced1 the idea of abstract security pattern case of the requirements stage we can specify what secu-
(ASP), that describes a conceptual security mechanism rity controls we need and in the conceptual model of the
that realizes one or more security policies able to con- analysis stage we add the corresponding ASPs after we
trol (stop or mitigate) a threat or comply with a security have enumerated the expected threats.
regulation or policy. Most works using security patterns Our contributions include:
(Blakeley and Heath 2004; Fernandez 2013; Schumacher
et al. 2006; Steel et al. 2005) apply concrete patterns, • Development and characterization of the concept of
which provide protection at specific architectural levels ASP by means of analysis and examples.
or components, e.g., secure virtual address space (VAS) • Description of the relationships of ASPs to other
in operating systems (Fernandez 2013). In fact, an exami- ASPs and to SSFs to structure the defenses needed
nation of the literature did not find any work on patterns for an application.
(security or other types), where abstraction is explic- • Demonstrating the value of ASPs by showing how
itly considered. While this concept is mentioned in the they can be used to build conceptual models, to
patterns of the GOF (Gamma et al. 1994), they did not derive new patterns, and other possible uses for
develop their possibilities. We develop here the concept secure application development, including security
of ASP based on the definition above and we show its by design and IoT systems design.
possibilities. The common context of all Abstract Secu-
rity Patterns is the problem space of the corresponding “Security patterns and security solution frames” sec-
applications, that can be expressed using domain models tion presents some background, while “Abstract security
for specific knowledge areas. ASPs can be related to each patterns (ASPs)” section discusses the nature of ASPs
other using pattern diagrams or more precisely through and presents a complete example of one of them. “ASP-
Security Solution Frames. Pattern diagrams indicate how based hierarchies” section considers the properties of
patterns relate to each other, showing the contribution a ASP-based hierarchies, while “Relationships between
pattern brings to another. Security solution frames (SSFs) ASPs and security solution frames” section relates ASPs
are sets of patterns that correspond to specific concerns to SSFs. “ASPs in secure conceptual models” section
of a solution, e.g., authentication (Uzunov et al. 2015a, b; shows how to use ASPs to build secure conceptual mod-
Uzunov and Fernandez 2021). els. “Deriving concrete patterns from ASPs” section illus-
Some of the ASPs correspond to standard security trates the derivation of concrete patterns starting from
mechanisms, e.g., Access control (Authorization and Ref- ASPs. “Formalization of ASPs” section formalizes ASPS,
erence Monitor), Security Logger/Auditor, and Authen- while “Evaluation of effectiveness” section evaluates their
ticator. Others may specify more detailed aspects, e.g., effectiveness. “Related work and discussion” section dis-
Access Control/Authorization models including the cusses related work, while “Conclusions and future work”
Access Matrix, role-based access control (RBAC), and section presents some conclusions and possible future
Multilevel models (Fernandez 2013); although those may work.
not be strictly abstract models, they correspond to insti-
tution policies. Starting from ASPs, when developing Security patterns and security solution frames
the lifecycle steps of a complete application we can use A security pattern is a solution to a security problem,
intended to control (stop or mitigate) a specific type
of threat by defining a security mechanism, or a way to
1
We introduced the idea in a two-page paper (Fernandez et al. 2008), but did realize a security policy or regulation, applicable in a
not develop its properties. We further developed the idea in (Fernandez et al. given context (Fernandez 2013; Schumacher et al. 2006).
2014). This paper considerably expands these previous works. We have also The problem solved by the pattern is briefly described
published four complete ASPs (Fernandez et al. 2016, 2018;, 2019, 2020).
in its “Intent” section and elaborated in a “Problem”
Fernandez et al. Cybersecurity (2022) 5:7 Page 3 of 17
section. A set of forces define constraints for the solu- We have developed a systematic way of enumerating
tion, e.g., “the solution must accommodate a variety of threats (Fernandez 2013) which consists of analysis of the
users”. The solution is typically expressed using UML flow of events in a use case or a sequence of use cases, in
class, sequence, state, and activity diagrams (although which each activity is analyzed to uncover related threats.
we usually need only one or two of these models). A set This analysis should be performed for all the system uses
of consequences indicate how well the solution satisfied cases. We use pattern diagrams and unified modeling
the forces; in particular, how well the attacks were con- language (UML) class, sequence, and use case diagrams
trolled, or a regulation was fulfilled. An implementation to describe patterns and architectures. A pattern diagram
section provides guidelines on how to use the pattern in (Buschmann et al. 1996) shows the relationships between
an application, indicating what steps are needed, their patterns, where patterns are shown as rounded rectan-
possible realizations, and variants. A “related patterns” gles; each arc from pattern A to pattern B indicates the
section enumerates other patterns that complement the contribution of pattern A to the pattern it points (B).
pattern or that provide alternative solutions. A domain model (DM) is a model of an area of knowl-
Security patterns are classified as architecture patterns edge, e.g., health systems, using an appropriate language.
because they describe global architecture concepts, e.g., A DM can be defined using sets of related patterns that
“what type of authentication is needed to control access represent specific aspects of the domain. The compo-
for the users of a system?” A few of them can also (or nents of domain models are usually described in UML
instead) be considered as design patterns because they or some ontology language like OWL. A reference archi-
handle aspects of the security code of a component. ASPs tecture (RA) is an abstract architecture, with concepts of
are in effect a variety of analysis patterns. An analysis a particular domain (or set of domains), with no imple-
pattern describes a semantic aspect of an application, e.g., mentation aspects (Avgeriou 2003; Taylor et al. 2010).
the description of types of accounts in a financial institu- RAs are reusable, extensible, and configurable; they can
tion (Fowler 1997). Some security patterns are more use- be built as a set of related patterns describing some type
ful by looking at them in more than one perspective. For of architecture and they can be instantiated into a con-
example, the Security Logger in (Steel et al.2005) concen- crete software architecture by adding implementation
trates on the software implementation of this pattern, so aspects. Security reference architectures (SRAs) include a
this is a design pattern; the Security Logger in Fernandez set of ASPs (or other artifacts) that provide defenses for
(2013) is an ASP because it emphasizes the core functions the threats of a reference architecture (Fernandez 2015).
of this pattern. If we combine both perspectives, this pat-
tern can be useful to software architects and developers. Abstract security patterns (ASPs)
We call the patterns derived from an ASP concrete pat- As indicated earlier, an ASP is a security pattern that
terns, because they refer to some specific software envi- describes a conceptual semantic restriction in a domain,
ronment, e.g., a distributed system. There are different which can be a defense to a threat or a way to comply with a
degrees of concreteness depending on how specific they regulation, with no implementation aspects. That is, an ASP
are. It is possible to even define patterns with contexts provides only the necessary core functions for those objec-
using specific technologies or architectural styles, e.g., tives. In this section, we use the Authenticator ASP as exam-
IoT patterns (van Heesch et al. 2011; Washizaki et al. ple (developed as a complete pattern in (Fernandez et al.
2021). In the development of a software system, we need 2018); further examples of ASPs include Secure IaaS (Fer-
to use patterns for several architectural levels. nandez et al. 2016), Secure Network Segmentation (Fernan-
Security solution frames (SSFs) are sets of patterns that dez et al. 2019), and Secure Publish/Subscribe (Fernandez
correspond to a specific aspect or concern of a security et al. 2020). The Intent section of an Authenticator pattern
solution (Uzunov et al. 2015a; Uzunov and Fernandez as described in (Fernandez 2013) is: “A user or system (sub-
2021). Their vertical grouping collects together all the ject) requesting access to a system identifies itself, how does
patterns that are related to a security concern, often in the system verify that the subject is who it says it is? The
a hierarchical structure; an Authentication SSF could subject must present some information that is recognized
look like Fig. 4 (Uzunov and Fernandez 2021). Different by the system as identifying this subject. After being authen-
levels of abstraction (concreteness) of a security mecha- ticated, the requestor is given some proof of this fact.”
nism define a vertical structuring, while we can define a Authentication restricts access to a system to only
horizontal association by connecting different concerns. registered users; it handles the threat where an intruder
Security patterns and SSFs are not very useful in isola- enters a system and tries to perform unauthorized access
tion (Fernandez 2013; Uzunov et al. 2015b), they should to information or other resources.2 This definition is what
be applied in the stages of a systematic methodology to 2
Systems usually also have another level of control that restricts access to
build secure systems. specific resources, this is Authorization.
Fernandez et al. Cybersecurity (2022) 5:7 Page 4 of 17
<<actor>> : Authentication
: Authenticator
: Subject Info
request
Authentication verify (subject, proof)
(subject, proof)
OK
create
: Token
(subject)
assign
(token)
Fig. 2 Sequence diagram for the use case “authenticate a subject”
Fernandez et al. Cybersecurity (2022) 5:7 Page 5 of 17
request *
Principal Authenticator
* Authent 1
<<create>>
1.. * 1 1 1
X.509 Validated Certification Certification
Certificate Certificate Info Authority
Fig. 5 Class model of the X.509-based authenticator
X.509 Access
SAML RBAC
Certificate Matrix
Authenticator Authorizer
Authenticator Authorizer
Fig. 9 Combining SSFs
SSF for Authentication includes (among others) a family combines patterns where SSF.pi denotes pattern i in an
of Authenticator patterns, which includes Credential- SSF. SCs can be catalogued by defining a start SSF and
based Authenticator, Password-based Authenticator, and using it as index. Figure 10 (a group of pattern diagrams
others. If we add an Authorization/Access Control hier- representing SSFs) shows the construction of a Secu-
archy (as in Fig. 9), we would have an SSF, although Fig. 4 rity Cluster, SC1. To define SC1 the designer decided to
itself is also an SSF. Figure 9 relates an Authenticator use credentials as authentication artefact, then selected
SSF to an Access Controller SSF. The Access Controller attribute-based access control (ABAC), for securing
includes an Authorizer, which defines authorization rules its communications she chose the Advanced Encryp-
that may correspond to and Access Matrix or an RBAC tion Standard, a symmetric encryption algorithm, and
model. The Authorizer must be complemented with a finally used Distributed Logging. This specific selection
Reference Monitor (Fernandez 2013) to enforce the rules. was based on the analysis of the expected threats of this
We can draw an SSF in its own graph or draw sepa-
rate graphs for each level to correlate patterns from dif-
ferent families. The latter type of diagram is useful when
we want to understand a complete system; for example,
when building a banking application we can correlate Authencator Authorizer
all the security patterns needed to protect accounts (see
next section). A given security pattern can belong to
more than one family or to more than one SSF. Ref. (Uzu-
nov et al. 2015a) contains complete descriptions of two Distributed ABAC RBAC
SSFs: Authorization and Security Information Manage- Authencator
ment. Authorization includes three SPFs: Conceptual Encrypon
Authorization Model, Enforcement Architecture, and
Security Process. The Conceptual Authorization Model SC1
SSO Credenal
SPF includes one ASP: Abstract Authorization. The
Enforcement Architecture SPF includes the ASP Abstract Sym Asym
Authorization Architecture. The Security Information Security
Management SSF contains the Policy Management SPF, Logging
which in turn contains the ASP Abstract Policy Manager. AES
Reference (Uzunov and Fernandez 2021) contains SSFs
for secure communications.
A security cluster (SC) is a selection of patterns from Distributed
different SSFs (Fernandez and Yoshioka 2018). Formally: Logging
SCa = {SSFi.pa, SSFj.pb, SSFk.pc,…}, where cluster SCa Fig. 10 An SC definition (from 11)
Fernandez et al. Cybersecurity (2022) 5:7 Page 9 of 17
Authorizer
Authenticator Access Control
Enforcer
authenticates controls
access access
Functional Entity
Access
RBAC Multilevel ABAC
Matrix
logs access
Security Logger
Fig. 11 Entity security services
application, obtained by the method described in “Secu- • Enforcer (Reference Monitor, Policy Enforcement
rity patterns and security solution frames” section. As Point) (Fernandez 2013). Enforces authorizations
we have shown elsewhere, we can map threats to secu- when a process requests access to an object. Done
rity patterns that can stop them (Fernandez 2013; Uzu- through an abstract process that intercepts all
nov et al. 2015b). In a catalog, each SC description should requests for resources from processes and deter-
include recommended applications or include analysis mines if they are authorized by some rule.
patterns where it would fit, as shown in Fig. 10. • Access matrix (Fernandez 2013). Describes authori-
zation rules where subjects are individual users or
systems.
ASPs in secure conceptual models • Role-Based Access Control (RBAC) (Fernandez 2013).
We show now how ASPs are useful to secure applica- Subjects are assigned rights based on their functions
tions by simplifying the work of the designer, who may or tasks in an environment in which there is a large
not have much experience on security. Figure 11 shows number of users or a large variety of resources.
how abstract patterns can provide security controls to a • Multilevel Security pattern (Fernandez 2013). Defines
functional entity (Gollmann 2011). Pattern Functional how to decide access in an environment with security
Entity represents some functional unit in a conceptual classifications for subjects and resources.
model of an application and its basic security services • Attribute-based access control (ABAC) (Priebe et al.
are described by patterns Authenticator, Access Con- 2004). Defines access to resources based on the
troller (showing some common authorization models), attributes of the subjects and the properties of the
and Security Logger. These patterns solve the problems objects.
described below. • Security Logger (Fernandez 2013). Logs all security-
sensitive actions performed by subjects (who did
• Authenticator (Fernandez 2013; Fernandez et al. what to what data and when) and provides controlled
2018). Controls access to the functional entity as a access to records for Audit purposes.
whole unit. We described this pattern in “Abstract
security patterns (ASPs)” section. It is not necessary to attach these controls to each func-
• Authorizer (Fernandez 2013). Describes who is tional entity; from the threat enumeration process we can
authorized to access specific resources in the func- determine which services are actually required to stop
tional entioty and how, in an environment in which the threats (Fernandez 2013). Regulations and institution
we have resources whose access needs to be con- policies may also require additional security mechanisms.
trolled. It indicates for each active entity, which In general, we must not add in each entity all possible
resources a subject can access, what it can do with security mechanisms, which results in systems that:
them, and under what conditions.
Fernandez et al. Cybersecurity (2022) 5:7 Page 10 of 17
The class models of the concrete patterns derived from an ASP must include all the classes of the ASP from which they were derived as well as
classes that handle new aspects. If Ci = set of classes in ASPi, Cci = set of classes in a concrete pattern derived from ASPi, and Cnew = new classes
in concrete pattern Cci, we have: Cci = Ci ∪ Cnew. In OCL:
context Cci
Cci:: = Ci- > union(Cnew)
The context of a pattern subsumes the context of its descendants: CLi ⊇ CLj , where i precedes (it is higher) j in the hierarchy. A CL defines a
domain of application (it includes a set of contextual attributes). However, the pattern context is not shown in the class model and OCL expres-
sions are not applicable
The threats of the concrete patterns are specific realizations of the ASP’s threats using the changed context, or are new threats due to the extra
elements in the class diagram (classes or attributes); that is, Tj ⊇ Ti , where i precedes j in the hierarchy and Ti is a list of the threats of pattern Pi.
Again, OCL constraints are not applicable because the threats are not shown in the class model of the pattern
The forces in concrete patterns include (maybe modified) those of the abstract pattern plus new forces due to their more specific environments.
If Fi is the list of forces of pattern Pi we have that: Fj ⊇ Fi , where i precedes j in the hierarchy. This relationship is also valid for the consequences of
ASP-based hierarchies.; that is, if CSi is the list of consequences of pattern Pi, we have: CSj ⊇ CSi if Pi precedes Pj in the hierarchy. OCL expressions
are not applicable
The related patterns in the derived patterns, RDj, include the related patterns of the ASP and those of the patterns above them in the hierarchy;
that is RDj ⊇ RDi
An invariant I in an ASP must be propagated to all its derived patterns, adjusting the variable names in the derived pattern classes. Each ASP has
its own invariants (see example above)
To formalize the structure of ASPs and their derived Pi is an abstract or concrete pattern that provides a
patterns we can use a semiformal approach, combin- solution composed by classes Ci in order to mitigate the
ing a metamodel with formal annotations (Washizaki corresponding security problem consisting of threats Ti,
et al. 2009b). Figure 13 shows a metamodel for ASPs when considering specific forces Fi in the context of CLi,
and their derived patterns (subpatterns). We first resulting in consequences CSi. Alternative or comple-
need to define what the UML operation of generali- mentary solutions are defined by RDi.
zation means for patterns. The UML security model Also, a pattern is more than its solution; the texts
in the pattern solution is a set of classes and asso- in its sections are very important guidelines for its
ciations; we can then define constraints among these correct application. Ref. (Maña et al. 2013) did a for-
classes. A subpattern must preserve those constraints malization of complete security patterns (not just
and may possibly add more. Considering Fig. 3, where their solutions), with the intention of enabling their
we have a concrete pattern derived from the pattern automatic handling. We try below to formalize all the
of Fig. 1, we can see that the derived pattern includes sections of the patterns; a set of assertions describe
all the classes of Fig. 1, renamed to indicate their dif- the sections of each pattern. A formal language like
ferent context. If we go down one more step in the OCL, Z, or Alloy could be used to describe each sec-
class hierarchy, we get Fig. 5 where there is a new tion more precisely, but we only use here standard
class. Note that the hierarchies starting from ASPs are set notation, where a tuple is indicated as (…), a set
generalization trees. as {}, optional elements as [], ID is a unique identifier
We summarize the formal aspects of ASPs in Table 1, assigned in a catalog for each pattern, SUD refers to
where the following definitions apply: C is the set of System Under Development. We first show the asser-
classes of a class model, CL is a set of contextual attrib- tions for ASPs and then assertions for their derived
utes, T is a set of threats, F is a set of forces, CSi is a set patterns. A derived pattern (DPattern) shows only its
of consequences, and RDi is the set of related patterns. changes with respect to the ASP.
Then, we may define a pattern Pi as follows
Pi = (CLi , Ti , Fi , Ci , CSi , RDi )
Fernandez et al. Cybersecurity (2022) 5:7 Page 13 of 17
Fernandez et al. Cybersecurity (2022) 5:7 Page 14 of 17
Evaluation of effectiveness e.g., web services or cloud computing. This was illus-
ASPs are abstract entities that can be implemented in trated in “Deriving concrete patterns from ASPs” sec-
many ways; this means they cannot be evaluated with tion.
respect to security or performance through experimen- • Can serve as abstract prototypes for existing concrete
tation or testing. Evaluating a specific implementation patterns and to verify they are complete with respect
would not say anything about the model if its secu- to functions and threat coverage. Starting from an
rity failed. As indicated above, patterns are suggestions abstract pattern it is easy to see what security con-
for designers, they do not require to be built exactly as straints (forces, threats) must at least be applied at
described; a designer can cut or add classes, rename a specific architectural level. For example, from an
classes and attributes, or split classes, as far as their ASP for VPNs we can derive TLS and IPSec VPNs
semantics are respected. The evaluation of ASPs must (Fernandez 2013). Other examples were shown in
be based on how well they represent the relevant con- “Relationships between ASPs and security solution
cepts of the systems they describe, how well they handle frames” section. The formalization section can help
abstract threats, how complete they are, how precise they building those patterns.
are, how they can be applied to the design or evaluation • Can serve as ways to connect and relate different
of systems, and how useful they are for other relevant families of patterns. For example, a Communica-
functions. tion Channel can use Intrusion Detection (see “ASP-
From the cases of ““ASP-based hierarchies”– “Deriving based hierarchies” and “Relationships between ASPs
concrete patterns from ASPs” sections, and our experi- and security solution frames” sections). If we build
ence, we have found the following uses of ASPs: a fairly extensive catalog of Security Clusters we can
simplify the work of developers.
• ASPs can be combined with other ASPs to cover all the • We can build Domain models and/or Security Refer-
security concerns of an application, including all their ence Architectures using ASPs. As indicated, DMs and
architectural levels if we use SSFs. In this way, they SRAs are also abstract architectures.
can be applied during the stages of a secure systems • ASPs are a good basis to separate and classify distinct
development methodology such as ASE (Uzunov patterns (Washizaki et al. 2009a). Pattern catalogs
et al. 2015b) or similar. ASPs can also be combined usually include several varieties of the same security
with patterns describing security principles or good pattern, perhaps with different names; ASPs can help
general design principles. For example, the Abstract recognize similar patterns.
Authorizer can be combined with Need-to-Know • IoT patterns are often variations of more general pat-
(Fernandez et al. 2011) to assign rights according terns. When classifying IoT patterns, ASPs help to
to the needs of the subjects; Single Point of Access establish the difference between ASPs and IoT pat-
(Yoder and Barcalow 2000) can be combined with terns, and we can concentrate in finding the changes
Firewall (Saltzer and Schroeder 1975), to restrict the needed in the pattern description due to the specific
placement of firewalls in a network. environment without having to redefine its core
• Can be used to check for security coverage in a com- structure, as we have shown in some examples (Fer-
plete design One of the problems with protecting nandez et al. 2020). This helps also with the problem
complex systems is that it is hard for the designers to of the variety of IoT pattern descriptions found in the
see if all the high-level security threats have been cov- literature (Washizaki et al. 2021).
ered with the applied defenses. This is much easier • Several methodologies that claim to apply “security
when we work at the application level, we can enu- by design”, e.g., Microsoft Security Development Life-
merate all threats and find the corresponding secu- cycle (Howard 2006), start from the system architec-
rity patterns to defend against them; using SSFs we ture, ignoring threats to applications. ASPs empha-
can propagate the defenses to the lower levels. This size the need to start earlier to consider the needs of
explicit handling of threats also allows evaluation of applications; this will result in more secure systems
the security degree reached by the design (Villagran- because methods that start from lower levels ignore
Velasco et al. 2020), a security measure is the number higher-level threats.
of threats covered by the security patterns present in • The forces in ASPs can become security policies for
the design. the derived patterns, thus contributing to make them
• Can guide the search for new patterns (pattern min- more secure.
ing) An abstract pattern defines a range of patterns • ASPs can simplify the job of the designer who has
and one can see if corresponding patterns exist at all now a guide to decide what security mechanisms are
the lower levels, including different environments, needed according to the possible threats and what
Fernandez et al. Cybersecurity (2022) 5:7 Page 15 of 17
specific concrete patterns to use. In this sense, they thus they can also express application constraints. ASPs
can effectively complement a secure development are more detailed than those patterns and are very
methodology (Fernandez 2013; Uzunov et al. 2015b). close in style to standard patterns as those in (Fernan-
• An advantage of standard patterns, and also of dez 2013, Gamma et al. 1994); after defining them in
ASPs, is that they are seamless with respect to life- the analysis stage their transition to design is straight-
cycle approaches such as the rational unified process forward: the design stage just needs to refine them and
(RUP) (Rumbaugh et al. 1999), and use similar nota- express them in terms of software artifacts, something
tion and concepts, which facilitate their use in prac- not easy to do with patterns using different styles.
tice.
• Security usability patterns can complement ASPs
by defining interface requirements to make patterns Conclusions and future work
clearer and easier to use; ASPs can be combined with We have elaborated and characterized the concept
interface patterns (Brambilla et al. 2017). of ASP, introduced by us in earlier work (Fernandez
• We have used ASPs in our own research. In (Fernan- et al. 2008, 2014). We have shown their possible uses
dez et al. 2021, Washizaki et al. 2021), ASPs provided to prove that they have several potential advantages,
a convenient way to classify IoT patterns; in (Uzunov including providing insight into the nature of security
et al. 2015b), they are used to embody a subset of patterns, helping define the early stages of a method-
the early security requirements in a secure software ology to build secure systems, for pattern mining, and
development methodology; in (Villagran-Velasco to build SRAs, among others (Fernandez 2015). To real-
et al. 2020) they were used to evaluate the degree of ize their advantages, we need a good catalog of ASPs
security reached by a secure software methodology that can be used by designers to define secure concep-
using patterns. tual models that address crosscutting concerns. We
already have a good number of ASPs, but we need to
collect them in a specialized catalog of SSFs organ-
Related work and discussion ized according to ASPs; this catalog would be useful to
As indicated earlier, the concept of abstract pattern is help designers satisfy security requirements. This is an
present in the original patterns of the GOF (Gamma et al. important future work.
1994), but they did not develop their possibilities because As indicated earlier, there is no automatic way to build
they were not concerned with the analysis stage, they ASPs. It takes experience and abstraction ability to build
were trying to improve code. them. Pattern builders build catalogs and designers use the
Other varieties of security patterns intended to empha- catalogs to build systems. We have shown two formaliza-
size abstract properties include: tions of ASPs, but specific applications and extensions of
this formalization are left for future work. Combining ASPs
• Jackson’s Problem Frames (Jackson 2001), have been with SSFs and with a systematic methodology such as ASE
used to define patterns for security requirements (Uzunov et al. 2015b) we believe we have a powerful tool to
(Hatebur et al. 2007). build secure applications. We have started exploring their
• Mouratidis uses Secure Tropos, an approach to sup- use to build IoT applications (Fernandez et al. 2021).
port multiple views of security, including organiza- Acknowledgements
tional and external aspects (Mouratidis et al. 2006). We thank the National Institute of Informatics (NII) of Japan for supporting the
visits of E. B. Fernandez and J. Yoder to Tokyo. The CIbSE 2014 and the Cyberse-
curity referees provided useful comments that helped improve this paper.
The approaches based on problem frames have in com-
mon with ASPs that they emphasize the core security Authors’ contributions
EF proposed the main idea, wrote the paper, and supervised the structure of
requirements of the system. However, their patterns use the paper. NY provided ideas, made corrections, and organized discussion
a totally different style, they do not follow the standard meetings. HW provided ideas, references, and helped with the formalization.
pattern structure and use different concepts and nota- JY proofread the paper. All the authors participated in discussions to define
and refine the results of the paper. All the authors have read and approved of
tion. As indicated, an important advantage of standard this content.
patterns and also of ASPs is that they are seamless with
respect to lifecycle approaches such as the rational uni- Funding
This work received no external funding, but the National Institute of Informat-
fied process (RUP) (Rumbaugh et al. 1999), and use simi- ics of Japan funded the trip of the first and fourth authors to Tokyo to partici-
lar notation and concepts, which facilitate their use in pate in meetings where the idea of this paper was developed.
practice.
Availability of data and materials
The patterns in (Moral-García et al. 2014) describe Not applicable.
enterprise activities and their security constraints and
Fernandez et al. Cybersecurity (2022) 5:7 Page 16 of 17
Declarations Gollmann D (2011) Computer security, 3rd edn. Wiley, New York
Hamid B, Gürgens S, Fuchs A (2016) Security patterns modeling and formaliza-
Competing interests tion for pattern-based development of secure software systems. Innov
The authors declare no competing interests. Syst Softw Eng 12:109–140. https://doi.org/10.1007/s11334-015-0259-1
Hatebur D, Heisel M, Schmidt H (2007) A pattern system for security require-
Author details ments engineering. In: Proceedings of ARES, pp 356–365
1
Department of Electrical Engineering and Computer Science, Florida Atlantic Howard M (2006) The security development lifecycle: SDL: a process for
University, Boca Raton, FL, USA. 2 GRACE Center, National Institute of Informat- developing demonstrably more secure software, 1st edn. Microsoft Press,
ics, Tokyo, Japan. 3 Waseda University, Tokyo, Japan. 4 The Refactory, Inc, Urbana, Redmond
IL, USA. Jackson M (2001) Problem frames: analyzing & structuring software develop-
ment problems. Addison-Wesley, Reading
Received: 22 July 2021 Accepted: 6 January 2022 Le Guennec A, Sunyé G, Jézéquel J-M (2000) Precise modeling of design pat-
terns. In: International conference on the unified modeling language, pp
482–496
Maña A, Fernandez EB, Ruiz J, Rudolph C (2013) Towards computer-based
security patterns. In: 20th Conference on pattern languages of programs
References (PLoP)
Avgeriou P (2003) Describing, instantiating and evaluating a reference archi- Moral-García S, Moral-Rubio S, Rosado DG, Fernández EB, Fernández-Medina
tecture: a case study. Enterp Archit J 342:1–24 E (2014) Enterprise security pattern: a new type of security pattern. Secur
Blakeley B, Heath C (2004) Members of the open group security forum: techni- Commun Netw (wiley) 7(11):1670–1690. https://doi.org/10.1002/sec.863
cal guide: security design patterns. The Open Group, London http:// Morrison P, Fernandez EB (2006) The credential pattern. In: Proceedings of the
www.opengroup.org/bookstore/catalog/g031.htm. conference on pattern languages of programs, PLoP 2006, Portland, OR.
Brambilla M et al (2017) “Model-driven development of user interfaces for IoT http://hillside.net/plop/2006/
systems via domain-specific components and patterns. J Internet Serv Mouratidis H, Weiss M, Georgini P (2006) Modelling secure systems using an
Appl 8(1):1–21 agent-oriented approach and security patterns. Int J Soft Eng Knowl Eng
Buschmann F, Meunier R, Rohnert H, Sommerland P, Stal M (1996) Pattern- ori- 16(3):471–498
ented software architecture. Wiley, New York Pereira-Vale A, Fernandez EB (2019) An ontology for security patterns. In: 38th
Dong J, Alencar P, Cowan D (2007) Formal specification and verification of International conference of the chilean computer science society (SCCC
design patterns, chapter 5. In: Taibi T (ed.) Design pattern formalization 2019), Concepción—Chile. November 4–8
techniques. IGI Publishing, pp 94–108 Polya G (1957) How to solve it, 2nd edn. Doubleday Anchor Books, New York
Fernandez EB (2013) Security patterns in practice: building secure architec- Priebe T, Fernandez EB, Mehlau JI, Pernul G (2004) A pattern system for access
tures using software patterns. Wiley series on software design patterns. control. In: Research directions in data and applications security XVIII,
Wiley, New York Farkas C, Samarati P (Eds.) Proceedings of the 18th annual IFIP WG 11.3
Fernandez EB, Yoshioka N (2018) Using a variety of patterns in a secure working conference on da-ta and applications security, Sitges, Spain, July
software development methodology. In: Proceedings 25th Asia-Pacific 25–28
software engineering conference, Nara, Japan Rumbaugh J, Jacobson I, Booch G (1999) The unified modeling language refer-
Fernandez EB, Washizaki H, Yoshioka N (2008) Abstract security patterns. In: ence manual. Addison-Wesley, Boston
Position paper in Proceedings of the 2nd workshop on software patterns Saltzer J, Schroeder M (1975) The protection of information in computer
and quality (SPAQu’08), in conjunction with the 15th conference on pat- systems. Proc IEEE 63(9):1278–1308
tern languages of programs (PLoP 2008), October 18–20, Nashville, TN Schumacher M, Fernandez EB, Hybertson D, Buschmann F, Sommerlad P
Fernandez EB, Mujica S, Valenzuela f (2011) Two security patterns: least privi- (2006) Security patterns: integrating security and systems engineering.
lege and security logger/auditor. In: Proceedings of Asian PLoP. http:// Wiley, New York
patterns-wg.fuka.info.waseda.ac.jp/asianplop/proceedings2011/asian Song Z, Li Z, Dou W (2003) Different approaches for the formal defini-
plop2011_submission_7.pdf tion of authentication property. In: 9th Asia-Pacific conference on
Fernandez EB, Yoshioka N, Washizaki H, Yoder J (2014) Abstract security pat- communications
terns for requirements specification and analysis of secure systems. In: Steel C, Nagappan R, Lai R (2005) Core security patterns: best strategies for
Proceedings of the WER 2014 conference, a track of the 17th Ibero-Amer- J2EE, web services, and identity management. Prentice Hall, Upper Sad-
ican conference on software engineering (CIbSE 2014), Pucon, Chile dle River
Fernandez EB, Monge R, Hashizume K (2015) Building a security reference Taylor RN, Medvidovic N, Dashofy N (2010) Software architecture: foundation,
architecture for cloud systems. Requir Eng. https://doi.org/10.1007/ theory, and practice. Wiley, New York
s00766-014-0218-7 Uzunov AV, Fernandez EB (2021) Cryptography-based security patterns and
Fernandez EB, Washizaki H, Yoshioka N (2016) Patterns for secure cloud IaaS. In: security solution frames for networked and distributed systems. Submit-
5th Asian conference on pattern languages of programs (AsianPLoP) ted for publication (available from the authors)
Fernandez EB, Yoshioka N, Washizaki H (2018) An abstract security pattern for Uzunov A, Fernandez EB, Falkner K (2015a) Security solution frames and
Authentication and a derived concrete pattern, the Credential-based security patterns for authorization in distributed, collaborative systems.
Authentication. In: Asian pattern languages of programs conference Comput Secur 55:193–234. https://doi.org/10.1016/j.cose.2015.08.003
(AsianPLoP) Uzunov A, Fernandez EB, Falkner K (2015b) ASE: a comprehensive pattern-
Fernandez EB, Yoshioka N, Washizaki H (2019) Abstract and IoT security pat- driven security methodology for distributed systems. J Comput Stand
terns for network segmentation. In: Proceedings of the 8th Asian confer- Interfaces 41:112–137. https://doi.org/10.1016/j.csi.2015.02
ence on pattern languages of programs (Asian PLoP) van Heesch U, Hezavehi SM, Avgeriou P (2011) Combining architectural pat-
Fernandez EB, Yoshioka N, Washizaki H (2020) Secure distributed publish/sub- terns and software technologies in one design language. In: Proceedings
scribe (P/S) pattern for IoT. AsianPLoP of the 16th European conference on pattern languages of programs
Fernandez EB, Washizaki H, Yoshioka N, Okubo T (2021) The design of secure (EuroPLoP)
IoT applications using patterns: State of the art and directions for Villagran-Velasco O, Fernandez EB, Ortega-Arjona J (2020) Refining the evalua-
research. Internet Things 15:100408. https://doi.org/10.1016/j.iot.2021. tion of the degree of security of a system built using security patterns. In:
100408 Proceedings 15th international conference on availability, reliability and
Fowler M (1997) Analysis patterns—reusable object models. Addison-Wesley, security (ARES 2020), Dublin, Ireland
Reading Warmer J, Kleppe A (2003) The object constraint language, 2nd edn. Addison-
Gamma E, Helm R, Johnson R, Vlissides J (1994) Design patterns—elements of Wesley, Reading
reusable object-oriented software. Addison-Wesley, Reading Washizaki H, Fernandez EB, Maruyama K, Kubo A, Yoshioka N (2009a)
Improving the classification of security patterns. In: Proceedings 20th
Fernandez et al. Cybersecurity (2022) 5:7 Page 17 of 17
Publisher’s Note
Springer Nature remains neutral with regard to jurisdictional claims in pub-
lished maps and institutional affiliations.
Unified Threat Management (UTM) provides multiple security features and services in a single
device or service on the network, protecting users from security threats in a simplified way.
UTM includes functions such as antivirus, antispam, content filtering, and web filtering. UTM
secures the network from viruses, malware, or malicious attachments by scanning the incoming
data using Deep Packet Inspection and prevents access to unwanted websites by installing
Enhanced Web filtering. For more information, see the following topics:
Antispam Filtering— E-mail spam consists of unwanted e-mail messages, usually sent
by commercial, malicious, or fraudulent entities. The antispam feature examines
transmitted e-mail messages to identify e-mail spam. When the device detects an e-mail
message deemed to be spam, it either drops the message or tags the message header or
subject field with a preprogrammed string. The antispam feature uses a constantly
updated spam block list (SBL). Sophos updates and maintains the IP-based SBL. The
antispam feature is a separately licensed subscription service.
Content Filtering— Content filtering blocks or permits certain types of traffic based
on the MIME type, file extension, protocol command, and embedded object type.
Content filtering does not require a separate license.
Web Filtering— Web filtering lets you manage Internet usage by preventing access to
inappropriate Web content. There are three types of Web filtering solutions. The
integrated Web filtering solution, the decision-making for blocking or permitting Web
access is done on the device after it identifies the category for a URL either from user-
defined categories or from a category server (Websense provides the CPA Server). The
integrated Web filtering feature is a separately licensed subscription service which is
supported only on SRX Series devices. The redirect Web filtering solution intercepts
HTTP requests and forwards the server URL to an external URL filtering server
provided by Websense to determine whether to block or permit the requested Web
access. Redirect Web filtering does not require a separate license. With Juniper Local
Web Filtering, the decision-making for blocking or permitting Web access is done on
the device after it identifies the category for a URL from user-defined categories stored
on the device. With Local filtering, there is no additional Juniper license or remote
category server required.
Starting with Junos OS Release 15.1X49-D60 and Junos OS Release 17.3R1, on
SRX1500 Services Gateways and vSRX instances, UTM policies, profiles, MIME
patterns, filename extensions, and protocol-command numbers are increased to 500;
custom URL patterns and custom URL categories are increased to 1000.
Starting with Junos OS Release 15.1X49-D70 and Junos OS Release 17.3R1, SRX4100
and SRX4200 devices support up to 500 UTM policies, profiles, MIME patterns,
filename extensions, and protocol commands, and up to 1000 custom URL patterns and
custom URL categories.
Starting with Junos OS Release 18.2R1, NFX150 devices support up to 500 UTM
policies, profiles, MIME patterns, filename extensions, and protocol commands, and
up to 1000 custom URL patterns and custom URL categories.
Starting with Junos OS Release 18.2R1, the following commands under the [edit
security utm feature-profile] hierarchy level are deprecated:
This feature requires a license. To understand more about UTM Licensing, see,
Understanding UTM Licensing. Please refer to the Juniper Licensing Guide for general
information about License Management. Please refer to the product Data Sheets at SRX
Series Services Gateways for details, or contact your Juniper Account Team or Juniper
Partner.
Antivirus— The Avira antivirus module in the unified threat management (UTM)
solution consists of a virus pattern database, an application proxy, a scan manager, and
a configurable scan engine. The antivirus module on the SRX Series device scans
specific application layer traffic to protect the user from virus attacks and to prevent
viruses from spreading.
Before you can configure most UTM features, you must first configure the custom objects for
the feature in question. Custom objects are global parameters for UTM features. This means
that configured custom objects can be applied to all UTM policies where applicable, rather than
only to individual policies.
Starting in Junos OS Release 18.2R1, a new dynamic application policy match condition is
added to SRX Series devices, allowing an administrator to more effectively control the
behavior of Layer 7 applications. To accommodate Layer 7 application-based policies in UTM,
the [edit security utm default-configuration] hierarchy level is introduced. If any
parameter in a specific UTM feature profile configuration is not configured, then the
corresponding parameter from the UTM default configuration is applied. Additionally, during
the initial policy lookup phase which occurs prior to a dynamic application being identified, if
there are multiple policies present in the potential policy list which contains different UTM
profiles, the SRX Series device applies the default UTM profile until a more explicit match has
occurred.
Junos® OS
Published
2022-09-08
ii
Juniper Networks, the Juniper Networks logo, Juniper, and Junos are registered trademarks of Juniper Networks, Inc.
in the United States and other countries. All other trademarks, service marks, registered marks, or registered service
marks are the property of their respective owners.
Juniper Networks assumes no responsibility for any inaccuracies in this document. Juniper Networks reserves the right
to change, modify, transfer, or otherwise revise this publication without notice.
The information in this document is current as of the date on the title page.
Juniper Networks hardware and software products are Year 2000 compliant. Junos OS has no known time-related
limitations through the year 2038. However, the NTP application is known to have some difficulty in the year 2036.
The Juniper Networks product that is the subject of this technical documentation consists of (or is intended for use
with) Juniper Networks software. Use of such software is subject to the terms and conditions of the End User License
Agreement ("EULA") posted at https://support.juniper.net/support/eula/. By downloading, installing or using such
software, you agree to the terms and conditions of that EULA.
iii
Table of Contents
About This Guide | xxiii
1 Overview
UTM Overview | 2
Configuring the Predefined Category Upgrading and Base Filter Configuration Using Explicit
Proxy | 15
Allowlist | 24
2 Antivirus Protection
iv
Requirements | 32
Overview | 32
Configuration | 33
Verification | 44
Requirements | 51
Overview | 52
Configuration | 52
Verification | 55
Requirements | 56
Overview | 56
Configuration | 56
Verification | 63
Requirements | 64
Overview | 64
Configuration | 65
Verification | 66
Requirements | 67
Overview | 67
v
Configuration | 67
Verification | 69
Requirements | 70
Overview | 71
Configuration | 71
Verification | 75
Virus-Detected Notifications | 82
Configuring HTTP Trickling to Prevent Timeouts During Antivirus Scanning (CLI Procedure) | 88
3 Antispam Filtering
Antispam Filtering Overview | 90
Requirements | 95
Overview | 95
Configuration | 95
Verification | 101
vi
Requirements | 104
Overview | 105
Configuration | 105
Verification | 111
4 Content Filtering
Content Filtering | 114
Requirements | 122
Overview | 122
Configuration | 122
Verification | 125
Requirements | 126
Overview | 126
Configuration | 127
Verification | 128
Requirements | 129
Overview | 129
Configuration | 129
Verification | 131
5 Web Filtering
Web Filtering Overview | 135
Requirements | 150
Overview | 150
Configuration | 152
Verification | 164
Example: Configuring Site Reputation Action for Enhanced Web Filtering | 170
Requirements | 170
Overview | 170
Configuration | 171
Verification | 175
Requirements | 186
Overview | 186
Configuration | 188
Verification | 197
Example: Enhancing Security by Configuring Redirect Web Filtering Using Custom Objects | 202
Requirements | 202
Overview | 202
viii
Configuration | 203
Verification | 212
Requirements | 219
Overview | 220
Configuration | 220
Verification | 225
Requirements | 234
Overview | 234
Configuration | 235
Verification | 237
Requirements | 240
Overview | 240
Configuration | 241
Verification | 246
Requirements | 249
Overview | 249
ix
Configuration | 250
Verification | 250
Requirements | 252
Overview | 252
Configuration | 252
Verification | 253
Attaching Express Antivirus UTM Policies to Security Policies (J-Web Procedure) | 254
Requirements | 257
Overview | 258
Configuration | 258
Verification | 258
Manually Updating, Reloading, and Deleting Express Antivirus Patterns (CLI Procedure) | 259
Requirements | 264
Overview | 264
Configuration | 264
Verification | 267
Requirements | 271
Overview | 271
x
Configuration | 273
Verification | 278
Requirements | 282
Overview | 282
Configuration | 282
Verification | 283
Requirements | 284
Overview | 284
Configuration | 285
Verification | 286
Attaching Full Antivirus UTM Policies to Security Policies (J-Web Procedure) | 286
Requirements | 290
Overview | 290
Configuration | 290
Verification | 291
Requirements | 293
Overview | 293
Configuration | 293
Verification | 294
Manually Updating, Reloading, and Deleting Full Antivirus Patterns (CLI Procedure) | 295
xi
Requirements | 300
Overview | 300
Configuration | 301
Verification | 302
Requirements | 303
Overview | 303
Configuration | 304
Verification | 305
Requirements | 307
Overview | 307
Configuration | 307
Verification | 308
Requirements | 322
Overview | 322
Configuration | 322
Verification | 325
Requirements | 343
Overview | 343
xiii
Configuration | 344
Verification | 353
7 Configuration Statements
action (Security UTM Web Filtering) | 364
address-blacklist | 365
address-whitelist | 367
admin-email | 368
anti-spam | 379
anti-virus | 383
avira-engine | 389
block-command | 391
block-content-type | 392
block-extension | 394
block-mime | 397
cache | 398
xiv
content-size | 419
content-size-limit | 423
corrupt-file | 424
custom-block-message | 426
custom-objects | 443
custom-page | 445
custom-page-file | 447
custom-tag-string | 449
custom-url-category | 450
decompress-layer | 452
xv
decompress-layer-limit | 454
email-notify | 469
engine-not-ready | 471
exception | 474
feature-profile | 491
filename-extension | 502
hold-interval | 518
http-persist | 527
http-reassemble | 529
intelligent-prescreening | 530
ipc | 534
juniper-enhanced | 535
juniper-express-engine | 538
juniper-local | 541
kaspersky-lab-engine | 543
list | 547
mime-pattern | 555
mime-whitelist | 557
no-autoupdate | 559
no-intelligent-prescreening | 560
no-notify-mail-recipient | 562
no-sbl-default-server | 568
notify-mail-recipient | 573
no-uri-check | 579
out-of-resources | 581
over-limit | 584
packet-filter | 586
password-file | 590
permit-command | 593
policies | 594
xviii
primary-server | 610
profile | 623
protocol-command | 634
proxy-profile | 637
sbl | 642
sbl-default-server | 644
scan-extension | 645
scan-mode | 646
secondary-server | 655
server-connectivity | 662
session-scan | 664
site-reputation-action | 665
sockets | 673
sophos-engine | 674
source-address | 677
spam-action | 678
start-time | 680
surf-control-integrated | 681
sxl-retry | 684
sxl-timeout | 685
traffic-options | 720
trickling | 721
uri-check | 735
url-blacklist | 738
url-pattern | 740
url-whitelist | 743
url-whitelist | 745
utm | 748
default-configuration | 760
utm-policy | 768
web-filtering | 774
websense-redirect | 782
8 Operational Commands
clear security utm anti-spam statistics | 787
Use this guide to configure, monitor, and manage the Unified Threat Management (UTM) features in
Junos OS NFX Series and SRX Series devices to secure the network from viruses, malware, or malicious
attachments and protect the users from security threats.
1 CHAPTER
Overview
UTM Overview | 2
UTM Overview
IN THIS SECTION
Unified Threat Management (UTM) provides multiple security features and services in a single device or
service on the network, protecting users from security threats in a simplified way. UTM includes
functions such as antivirus, antispam, content filtering, and web filtering. UTM secures the network from
viruses, malware, or malicious attachments by scanning the incoming data using Deep Packet Inspection
and prevents access to unwanted websites by installing Enhanced Web filtering. For more information,
see the following topics:
IN THIS SECTION
Unified Threat Management (UTM) is a term used to describe the consolidation of several security
features into one device, protecting against multiple threat types. The advantage of UTM is streamlined
installation and management of these multiple security capabilities.
• Antispam Filtering— E-mail spam consists of unwanted e-mail messages, usually sent by commercial,
malicious, or fraudulent entities. The antispam feature examines transmitted e-mail messages to
identify e-mail spam. When the device detects an e-mail message deemed to be spam, it either drops
the message or tags the message header or subject field with a preprogrammed string. The antispam
feature uses a constantly updated spam block list (SBL). Sophos updates and maintains the IP-based
SBL. The antispam feature is a separately licensed subscription service.
3
• Content Filtering— Content filtering blocks or permits certain types of traffic based on the MIME
type, file extension, protocol command, and embedded object type. Content filtering does not
require a separate license.
• Web Filtering— Web filtering lets you manage Internet usage by preventing access to inappropriate
Web content. There are three types of Web filtering solutions. The integrated Web filtering solution,
the decision-making for blocking or permitting Web access is done on the device after it identifies
the category for a URL either from user-defined categories or from a category server (Websense
provides the CPA Server). The integrated Web filtering feature is a separately licensed subscription
service which is supported only on SRX Series devices. The redirect Web filtering solution intercepts
HTTP requests and forwards the server URL to an external URL filtering server provided by
Websense to determine whether to block or permit the requested Web access. Redirect Web
filtering does not require a separate license. With Juniper Local Web Filtering, the decision-making
for blocking or permitting Web access is done on the device after it identifies the category for a URL
from user-defined categories stored on the device. With Local filtering, there is no additional Juniper
license or remote category server required.
• Starting with Junos OS Release 15.1X49-D60 and Junos OS Release 17.3R1, on SRX1500 Services
Gateways and vSRX instances, UTM policies, profiles, MIME patterns, filename extensions, and
protocol-command numbers are increased to 500; custom URL patterns and custom URL categories
are increased to 1000.
Starting with Junos OS Release 15.1X49-D70 and Junos OS Release 17.3R1, SRX4100 and SRX4200
devices support up to 500 UTM policies, profiles, MIME patterns, filename extensions, and protocol
commands, and up to 1000 custom URL patterns and custom URL categories.
Starting with Junos OS Release 18.2R1, NFX150 devices support up to 500 UTM policies, profiles,
MIME patterns, filename extensions, and protocol commands, and up to 1000 custom URL patterns
and custom URL categories.
Starting with Junos OS Release 18.2R1, the following commands under the [edit security utm feature-
profile] hierarchy level are deprecated:
Starting with Junos OS Release 18.4R3, on SRX1500, SRX4100, SRX4200, SRX4600, SRX4800,
SRX5400, SRX5600, and SRX5800 devices, UTM policies, profiles, MIME patterns, filename
extensions, protocol commands, and custom messages, are increased up to 1500. Custom URL
patterns and custom URL categories are increased up to 3000.
This feature requires a license. To understand more about UTM Licensing, see, Understanding UTM
Licensing. Please refer to the Juniper Licensing Guide for general information about License
Management. Please refer to the product Data Sheets at SRX Series Services Gateways for details, or
contact your Juniper Account Team or Juniper Partner.
• Antivirus— The Avira antivirus module in the unified threat management (UTM) solution consists of a
virus pattern database, an application proxy, a scan manager, and a configurable scan engine. The
antivirus module on the SRX Series device scans specific application layer traffic to protect the user
from virus attacks and to prevent viruses from spreading.
Before you can configure most UTM features, you must first configure the custom objects for the
feature in question. Custom objects are global parameters for UTM features. This means that configured
custom objects can be applied to all UTM policies where applicable, rather than only to individual
policies.
• Web Filtering (see "Example: Configuring Integrated Web Filtering" on page 343)
5
Starting in Junos OS Release 18.2R1, a new dynamic application policy match condition is added to SRX
Series devices, allowing an administrator to more effectively control the behavior of Layer 7
applications. To accommodate Layer 7 application-based policies in UTM, the [edit security utm default-
configuration] hierarchy level is introduced. If any parameter in a specific UTM feature profile
configuration is not configured, then the corresponding parameter from the UTM default configuration
is applied. Additionally, during the initial policy lookup phase which occurs prior to a dynamic application
being identified, if there are multiple policies present in the potential policy list which contains different
UTM profiles, the SRX Series device applies the default UTM profile until a more explicit match has
occurred.
SEE ALSO
Release Description
18.4R3 Starting with Junos OS Release 18.4R3, on SRX1500, SRX4100, SRX4200, SRX4600, SRX4800,
SRX5400, SRX5600, and SRX5800 devices, UTM policies, profiles, MIME patterns, filename
extensions, protocol commands, and custom messages, are increased up to 1500. Custom URL
patterns and custom URL categories are increased up to 3000
18.2R1 Starting with Junos OS Release 18.2R1, NFX150 devices support up to 500 UTM policies, profiles,
MIME patterns, filename extensions, and protocol commands, and up to 1000 custom URL patterns
and custom URL categories.
18.2R1 Starting with Junos OS Release 18.2R1, the following commands under the [edit security utm
feature-profile] hierarchy level are deprecated:
18.2R1 Starting in Junos OS Release 18.2R1, a new dynamic application policy match condition is added to
SRX Series devices, allowing an administrator to more effectively control the behavior of Layer 7
applications. To accommodate Layer 7 application-based policies in UTM, the [edit security utm
default-configuration] hierarchy level is introduced. If any parameter in a specific UTM feature
profile configuration is not configured, then the corresponding parameter from the UTM default
configuration is applied. Additionally, during the initial policy lookup phase which occurs prior to a
dynamic application being identified, if there are multiple policies present in the potential policy list
which contains different UTM profiles, the SRX Series device applies the default UTM profile until a
more explicit match has occurred.
6
15.1X49- Starting with Junos OS Release 15.1X49-D70 and Junos OS Release 17.3R1, SRX4100 and
D70 SRX4200 devices support up to 500 UTM policies, profiles, MIME patterns, filename extensions,
and protocol commands, and up to 1000 custom URL patterns and custom URL categories.
15.1X49- Starting with Junos OS Release 15.1X49-D60 and Junos OS Release 17.3R1, on SRX1500 Services
D60 Gateways and vSRX instances, UTM policies, profiles, MIME patterns, filename extensions, and
protocol-command numbers are increased to 500; custom URL patterns and custom URL
categories are increased to 1000.
RELATED DOCUMENTATION
IN THIS SECTION
Allowlist | 24
IN THIS SECTION
A WELF log file is composed of records. Each record is a single line in the file. Records are always in
chronological order. The earliest record is the first record in the file; the most recent record is the last
record in the file. WELF places no restrictions on log filenames or log file rotation policies.
NOTE: Each WELF record is composed of fields. The record identifier field (id=) must be the first
field in a record. All other fields can appear in any order.
The fields from the example WELF record include the following required elements (all other fields are
optional):
• id (Record identifier)
• time (Date/time)
IN THIS SECTION
Requirements | 8
Overview | 8
Configuration | 8
Verification | 11
This example shows how to configure WELF logging for UTM features.
Requirements
Before you begin, review the fields used to create a WELF log file and record. See "UTM Overview" on
page 2.
Overview
A WELF log file is composed of records. Each record is a single line in the file. Records are always in
chronological order. The earliest record is the first record in the file; the most recent record is the last
record in the file. WELF places no restrictions on log filenames or log file rotation policies. In this
example, the severity level is emergency and the name of the security log stream is utm-welf.
Configuration
IN THIS SECTION
Procedure | 9
9
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
NOTE: You must save the WELF logging messages to a dedicated WebTrends server.
6. Enter the host address of the dedicated WebTrends server to which the log messages are to be sent.
Results
From configuration mode, confirm your configuration by entering the show security log command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
[edit]
user@host# show security log
stream utm-welf {
severity emergency;
format welf;
category content—
security;
11
host {
5.6.7.8;
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show security utm status command to verify if the UTM service is
running or not.
SEE ALSO
IN THIS SECTION
Configuring the Predefined Category Upgrading and Base Filter Configuration Using Explicit
Proxy | 15
UTM support the use of an explicit proxy for the cloud-based connectivity for Enhanced Web Filtering
(EWF) and Sophos antivirus (SAV) on unified threat management (UTM). The explicit proxy hides the
identity of the source device and establishes a connection with the destination device.
To use the explicit proxy, create one or more proxy profiles and refer to those profiles:
• In EWF, the explicit proxy is configured by referring to the created proxy-profile in security utm default-
configuration web-filtering juniper-enhanced server hierarchy. The connection is established with the TSC
server.
• In EWF predefined category upgrading and base filter, the explicit proxy is configured by referring to
the created proxy-profile in security utm custom-objects category-package proxy-profile hierarchy. You can
download and dynamically load new EWF categories without any software upgrade. The proxy-profile
category file is installed and used for transfer of the traffic.
SRX device sends CONNECT request to the proxy server, the SRX device and TSC server
communicates through the HTTP connection. Then the proxy server is expected to identify the
configured IP addresses, allowlist and allow SRX device to send traffic to the TSC server in cloud via
proxy. After proxy filtering, it will create connection to real TSC server.
13
• In Sophos Antivirus (SAV), the explicit proxy is configured by referring to the created proxy-profile in
security utm default-configuration anti-virus sophos-engine pattern-update hierarchy. The utmd process
connects to the proxy host instead of the SAV pattern update server on the cloud.
On EWF, if the proxy profile is configured in UTM Web filtering configuration, the TSC server
connection is established with the proxy host instead of the UTM server on the cloud.
On SAV, if the proxy profile is configured, the utmd process connects to the proxy host instead of the
SAV pattern update server on the cloud.
NOTE: The proxy server authentication is not supported if the proxy-profile is configured.
Create a proxy profile with host and port information, and refer it in the Juniper enhanced server to
establish a connection to the UTM cloud server.
The following configuration shows how to configure the explicit proxy on Juniper enhanced server.
3. Assign the proxy profile to the Web filtering Juniper enhanced server.
Results
14
From configuration mode, confirm your configuration by entering the show security and show services
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security
default-configuration {
web-filtering {
type juniper-enhanced;
juniper-enhanced {
server {
proxy-profile proxy1;
}
}
}
}
[edit]
user@host# show services
proxy {
profile proxy1 {
protocol {
http {
host 192.0.2.1;
port 3128;
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
15
IN THIS SECTION
Purpose | 15
Action | 15
Meaning | 15
Purpose
Action
From operational mode, enter the show security utm web-filtering status command.
Meaning
This command provides information on server status of Enhanced Web Filtering (EWF) using Websense
Threatseeker Cloud (TSC).
Configuring the Predefined Category Upgrading and Base Filter Configuration Using
Explicit Proxy
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
Create a proxy profile with host and port information, and refer it in the predefined category upgrade
and base filter to download and dynamically load new EWF categories without any software upgrade.
The following configuration shows how to configure the explicit proxy on predefined category upgrading
and base filter.
16
3. Assign the proxy profile to the category packages in the custom objects.
Results
From configuration mode, confirm your configuration by entering the show security and show services
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security
custom-objects {
category-package {
proxy-profile proxy1;
}
}
[edit]
user@host# show services
proxy {
profile proxy1 {
protocol {
http {
host 203.0.113.1;
port 3128;
17
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
IN THIS SECTION
Purpose | 17
Action | 17
Meaning | 18
Purpose
Display the Enhanced Web Filtering (EWF) predefined category package download, install, and update
status.
Action
From operational mode, enter the show security utm web-filtering category status CLI command to see the
web filtering category status.
NOTE: Before you execute the show security utm web-filtering category status CLI command, you
must execute the request security utm web-filtering category download-install CLI command to get
the results.
Meaning
This command provides information on the number of installed and downloaded categories and the
update status.
Create a proxy profile with host and port information, and refer it in the Sophos Antivirus (SAV) pattern
update. The utmd process connects to the proxy host instead of the SAV pattern update server on the
cloud.
The following configuration shows how to configure the explicit proxy on SAV pattern update.
Results
From configuration mode, confirm your configuration by entering the show security and show services
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security
default-configuration {
19
anti-virus {
sophos-engine {
pattern-update {
proxy-profile proxy1;
}
}
}
}
[edit]
user@host# show services
proxy {
profile proxy1 {
protocol {
http {
host 203.0.113.1;
port 3128;
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
IN THIS SECTION
Purpose | 19
Action | 20
Meaning | 20
Purpose
Action
From operational mode, enter the show security utm anti-virus status CLI command to see the UTM
antivirus status.
Meaning
This command provides information on the the Sophos Antivirus (SAV) pattern update server, update
status, antivirus signature version, antivirus engine type and antivirus engine information.
IN THIS SECTION
IN THIS SECTION
Unified policies are now supported on SRX Series devices, allowing granular control and enforcement of
dynamic Layer 7 applications within the traditional security policy.
Unified policies are security policies in which you can use dynamic applications as match conditions
along with existing 5-tuple or 6-tuple matching conditions (with user firewall) to detect application
changes over time. The use of unified policies enable you to enforce a set of rules for the transit traffic.
It uses the match criteria, namely, source zone, destination zone, source addresses, destination
addresses, and application names. This results in potential match policies.
The unified policy configuration handles all Application Firewall (AppFW) functionalities and simplifies
the task of configuring firewall policy to permit or block application traffic from the network. As part of
the unified policy, a new dynamic application policy match condition is added to SRX Series devices,
allowing an administrator to more effectively control the behavior of Layer 7 applications.
To accommodate Layer 7 application-based policies in UTM, the [edit security utm default-configuration]
command is introduced. If any parameter in a specific UTM feature profile configuration is not
configured, then the corresponding parameter from the UTM default configuration is applied.
Additionally, during the initial policy lookup phase which occurs prior to a dynamic application being
identified, if there are multiple policies present in the potential policy list which contains different UTM
profiles, the SRX Series device applies the default UTM profile until a more explicit match has occurred.
A new predefined default UTM policy is available with the factory default configuration to provide a
default UTM configuration. This predefined global UTM policy inherits the configuration from the
default UTM configuration profile.
If there is an existing UTM policy defined, it will continue to be used to evaluate traffic based on the
existing security policy configuration.
When a policy lookup is performed, existing UTM policies are evaluated prior to global policies. The
predefined UTM default policy is leveraged if multiple UTM policies exist in the potential policy list
during the UTM session creation process.
The predefined UTM default policy parameters are included under [edit security utm default-configuration]
hierarchy level. These parameters are available for Web filtering, content filtering, antivirus, and
antispam profile. If no UTM feature profile is configured (Web filtering, content filtering, antivirus, and
antispam), the parameters in the predefined global UTM configuration are applied.
The predefined UTM default policy is available in [edit groups junos-defaults security utm]. You can modify
certain parameters for Web filtering, content filtering, antivirus, and antispam. You can also modify
default UTM profile parameters for Web filtering, content filtering, antivirus, and antispam features
profiles at [edit security utm default-configuration].
22
SEE ALSO
IN THIS SECTION
UTM is supported for active/active chassis cluster and active/backup chassis cluster configuration. For
more information, see the following topics:
All the following UTM features are supported in active/active chassis cluster:
• Antispam Filtering
• Content Filtering
• On-box/Avira AV
UTM supports active/active chassis cluster configuration from Junos OS Release 19.4R1 onwards.
Active/Active cluster is a cluster where interfaces can be active on both cluster nodes simultaneously.
23
This is the case when there are more than one data-plane redundancy-groups, that is redundancy-
groups 1 and higher or when local (non-reth) interfaces are used on the cluster nodes.
Enhanced Web Filtering cloud connection does not support failover, it will create new connection
automatically after the old connection is retired.
• Content filtering
• Antispam filtering
Active/Active cluster is a cluster where interfaces can be active on both cluster nodes at the same time.
This is the case when there are more than one data-plane redundancy-groups, i.e. redundancy-groups 1
and higher or when local (non-reth) interfaces are used on the cluster nodes.
If multiple data-plane redundancy-groups are configured, UTM works only if all the redundancy groups
are active in the single node. In case one of the redundancy-group failed over automatically to another
node, UTM won't work.
SEE ALSO
RELATED DOCUMENTATION
Allowlist
IN THIS SECTION
A URL allowlist defines all the URLs listed for a specific category to always bypass the scanning process.
The allowlist include hostnames that you want to exempt from undergoing SSL proxy processing. For
more information, see the following topics:
A MIME entry is case-insensitive. An empty MIME is an invalid entry and should never appear in the
MIME list. If the MIME entry ends with a / character, prefix matching takes place. Otherwise, exact
matching occurs.
There are two types of MIME lists used to configure MIME type antivirus scan bypassing:
• mime-allowlist list—This is the comprehensive list for those MIME types that can bypass antivirus
scanning.
• exception list—The exception list is a list for excluding some MIME types from the mime-allowlist list.
This list is a subset of MIME types found in the mime-allowlist.
For example, if the mime-allowlist includes the entry,video/ and the exception list includes the entry
video/x-shockwave-flash, by using these two lists, you can bypass objects with “video/” MIME type but
not bypass “video/x-shockwave-flash” MIME type.
You should note that there are limits for mime-allowlist entries as follows:
25
IN THIS SECTION
Requirements | 25
Overview | 25
Configuration | 25
Verification | 26
This example shows how to configure MIME allowlists to bypass antivirus scanning.
Requirements
Before you begin, decide the type of MIME lists used to configure MIME type antivirus scan bypassing.
See Understanding MIME Allowlist.
Overview
In this example, you create MIME lists called avmime2 and ex-avmime2 and add patterns to them.
Configuration
IN THIS SECTION
Procedure | 26
26
Procedure
Step-by-Step Procedure
[edit]
user@host# set security utm custom-objects mime-pattern avmime2 value [video/quicktime
image/x-portable-anymap x-world/x-vrml]
user@host# set security utm custom-objects mime-pattern ex-avmime2 value [video/quicktime-
inappropriate]
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
Starting with Junos OS Release 15.1X49-D80 and Junos OS Release 17.3R1, the allowlisting feature is
extended to include URL categories supported by UTM in the allowlist configuration of SSL forward
proxy. For more information, see Application Security User Guide for Security Devices.
Starting with Junos OS Release 17.4R1, the allowlisting feature is extended to support custom URL
categories supported by UTM in the allowlist configuration of SSL forward proxy.
RELATED DOCUMENTATION
Release Description
17.4R1 Starting with Junos OS Release 17.4R1, the allowlisting feature is extended to support custom URL
categories supported by UTM in the allowlist configuration of SSL forward proxy.
15.1X49-D80 Starting with Junos OS Release 15.1X49-D80 and Junos OS Release 17.3R1, the allowlisting
feature is extended to include URL categories supported by UTM in the allowlist configuration of
SSL forward proxy. For more information, see Application Security User Guide for Security
Devices.
2 CHAPTER
Antivirus Protection
Virus-Detected Notifications | 82
IN THIS SECTION
Read this topic to understand about how to use Avira Antivirus for scanning application traffic and
preventing viruses from entering your network.
You can also watch the video Avira Antivirus Solution on SRX Series Devices to understand about
installing and using Avira antivirus on your security device.
IN THIS SECTION
Benefits | 31
Junos OS unified threat management (UTM) integrates with Avira’s Antivirus functionality and provides
full file-based scan engine. This antivirus protection secures your device by scanning the application
layer traffic and blocks the harmful content such as infected files, trojans, worms, spyware, and other
malicious data.
Avira Antivirus scans the network traffic by accessing the virus pattern database and identifies the virus.
Avira Antivirus drops the infected file and notifies the user.
Table 1 on page 30 lists the components and license details for Avira Antivirus.
30
Virus pattern Avira Antivirus checks the virus signature database to identify and then remove signatures.
database
The virus pattern database is available at the following locations:
• Default: https://update.juniper-updates.net/avira
By default, SRX Series devices downloads the updates for pattern database. See "Configure
Avira Antivirus Scanning Options" on page 31 to schedule the automatic download option.
Avira Antivirus Avira Antivirus provides the scan engine that examines a file for known viruses at real-time.
scan engine You must install and activate Avira Antivirus scan engine on your SRX Series device. See
"Example: Configure Avira Antivirus" on page 31 for steps to install and activate Avira
Antivirus scan engine.
Avira Antivirus scan engine decompresses files before scanning for virus detection. For more
information, see "decompress-layer-limit" on page 454.
In the following scenarios, Avira Antivirus scan engine on the SRX Series device does not scan
the application traffic:
With this license, you can use a full file-based and real-time Avira Antivirus scanning function.
The antivirus functionality uses the latest updated virus signature database.
When the license expires, you can continue to use the locally stored antivirus signatures
without any updates. If you delete the local database, you cannot run antivirus scanning.
For more information about licenses, see Licenses for SRX Series.
Benefits
• Secures your device and protects your network from viruses, trojans, rootkits, and other types of
malicious code.
• Provides improved scanning performance as the virus signature database and Avira Antivirus scan
engine reside locally on the device.
SEE ALSO
IN THIS SECTION
Requirements | 32
Overview | 32
Configuration | 33
Verification | 44
32
In this example, you’ll learn how to configure Avira antivirus on your security device. This topic includes
the details about using default antivirus profile and customized antivirus profile to secure your device
from the harmful content such as infected files, trojans, worms, spyware, and other malicious data.
Requirements
Before you begin:
• Verify that you have a Avira antivirus license. For more information on how to verify licenses on your
device, see Understanding Licenses for SRX Series Devices.
We’ve tested this example using an SRX1500 device with Junos OS Release 18.4R1.
Overview
Let’s take a look at a typical enterprise network. An end user unknowingly visits a compromised Website
and downloads a malicious content. This action results in compromise of the endpoint. The harmful
content on the endpoint also becomes a threat to other hosts within the network. It is important to
prevent the download of the malicious content.
You can use an SRX Series device with Avira antivirus to protect users from virus attacks and to prevent
spreading of viruses in your system, Avira antivirus scans network traffic for viruses, trojans, rootkits,
and other types of malicious code and blocks the malicious content immediately when detected.
33
Figure 1 on page 33 shows an example of Avira antivirus on SRX Series device usage.
In this example, you’ll learn how to configure Avira antivirus on your security device. You have the
following options.
• To use default Avira antivirus options to get started, see "Use Default Antivirus Profile to Start
Antivirus Scanning" on page 34.
• To customize antivirus options as per your requirements, see "Configure Avira Antivirus Scanning
Options" on page 35 .
• To set antivirus scanning options, see "Configure Avira Antivirus Scanning with Custom Profile" on
page 37 .
Configuration
IN THIS SECTION
Results | 41
You can enable the Juniper Networks pre-configured antivirus profile. When you use the default
antivirus feature profile option, you don't have to configure additional parameter. In this procedure, you
create an UTM policy with default antivirus profiles for all protocols and apply the UTM policy in a
security policy for the permitted traffic.
Step-by-Step Procedure
After configuring Avira as the antivirus type, reboot the device for the new scan engine to take
effect.
2. Select default antivirus profile for HTTP, FTP, SMTP, POP3, and IMAP protocols.
[edit]
user@host# set security utm default-configuration anti-virus type avira
user@host# set security utm utm-policy P1 anti-virus http-profile junos-av-defaults
user@host# set security utm utm-policy P1 anti-virus ftp upload-profile junos-av-defaults
user@host# set security utm utm-policy P1 anti-virus ftp download-profile junos-av-defaults
user@host# set security utm utm-policy P1 anti-virus smtp-profile junos-av-defaults
user@host# set security utm utm-policy P1 anti-virus pop3-profile junos-av-defaults
user@host# set security utm utm-policy P1 anti-virus imap-profile junos-av-defaults
[edit]
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 match source-
address any
35
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 match
destination-address any
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 match
application any
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 then permit
application-services utm-policy P1
[edit]
user@host# commit
You can also watch the video Avira Antivirus Solution on SRX Series Devices to understand about
installing and using Avira antivirus on your security device.
Step-by-Step Procedure
In this procedure, you’ll perform optional steps to prepare your security device to use Avira antivirus.
1. Manually update the virus signature database, specify the URL of the database server. If you do not
specify a URL, a default URL is provided, https://update.juniper-updates.net/avira. By default, your
security device downloads the pattern updates from https://update.juniper-updates.net/avira. The
location of virus pattern database depends on your SRX Series mode. See Table 1 on page 30 for
more details.
[edit]
user@host# set security utm default-configuration anti-virus avira-engine pattern-update url
http://www.example.net/
This step downloads the pattern and engine files from the specified URL.
[edit]
user@host# set security utm default-configuration anti-virus avira-engine pattern-update
interval 2880
36
In this step, you are changing the default from every 24 hours to every 48 hours. The default
antivirus pattern-update interval is 1440 minutes (every 24 hours).
[edit]
user@host# set security utm default-configuration anti-virus avira-engine pattern-update email-
notify admin-email admin@email.net custom-message “Avira antivirus data file was updated”
custom-message-subject “AV data file updated”
[edit]
set security utm default-configuration anti-virus avira-engine pattern-update proxy-profile
proxy-profile <proxy-profile>
Use this option in case your internal network device do not have direct access to the Internet and the
device can reach the Internet only through a proxy server.
[edit]
user@host# set chassis onbox-av-load-flavor heavy
To use the antivirus scan in light mode, use the delete chassis onbox-av-load-flavor heavy command.
Reboot the device once you change the modes.
6. (Optional) Change the operating mode from the default continuous delivery function (CDF) to hold
mode. When you change to hold mode, the system withhold all the packets until you get the final
result.
[edit]
user@host# set security utm default-configuration anti-virus forwarding-mode hold
For more details on CDF mode and Inline Tap mode, see forwarding-mode.
37
You must complete the steps as in Table 2 on page 37 to configure Avira antivirus with custom options
on your security device.
Step Details
Step 1: Define custom objects In this step, you will define antivirus scanning options:
• MIME exception list—Specify excluding some MIME types from the MIME
allowlist
Step 2: Create antivirus feature • Apply MIME list, exception list, and custom URL category created in step 1
profile to the antivirus feature profile.
Step 3: Create UTM policy Associate the antivirus profile created in Step 2 for FTP, HTTP, POP3, SMTP,
and IMAP traffic. UTM policies control which protocol traffic is sent to the
antivirus scanning engine.
Step 4: Apply UTM policy to a Specify UTM policy as application services in the security policy. The UTM
security policy antivirus settings are applied for the traffic that matches the security policy
rules.
See scan-options and trickling to understand about the scanning configuration parameters available for
antivirus feature.
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
38
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
set security policies from-zone trust to-zone untrust policy POLICY-1 then permit application-
services utm-policy UTM-AV-Policy
NOTE: The [edit security utm feature-profile] hierarchy level is deprecated in Junos OS Release
18.2R1. For more information, see "UTM Overview" on page 2.
Step-by-Step Procedure
1. Enable Avira antivirus scan on your security device if you have not already enabled..
[edit]
user@host# set security utm default-configuration anti-virus type avira-engine
After configuring Avira as the antivirus type, reboot the device for the new scan engine to take
effect.
[edit]
user@host# set security utm custom-objects mime-pattern Mime_1 value video/
user@host# set security utm custom-objects mime-pattern Mime_exception value video/x-shockwave-
flash
user@host# set security utm custom-objects url-pattern Pattern_List_1 value www.juniper.net
user@host# set security utm custom-objects custom-url-category Cust_URL_Cat value
Pattern_List_1
[edit]
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile
[edit]
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile fallback-
40
Fallback options specify the actions to take when traffic cannot be scanned.
[edit]
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile notification-
options fallback-block type protocol-only
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile notification-
options fallback-block notify-mail-sender
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile notification-
options fallback-block custom-message " fallback block action occured “
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile notification-
options fallback-block custom-message-subject " Antivirus Fallback Alert "
6. Configure the antivirus module to use MIME bypass lists and exception lists.
[edit]
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile mime-whitelist
list Mime_exception
7. Configure the antivirus module to use URL bypass lists. URL allowlists are valid only for HTTP traffic.
In this example you use the lists that you set up earlier.
[edit]
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile mime-whitelist
list Mime_1
user@host# set security utm feature-profile anti-virus profile Avira-AV-Profile url-whitelist
Cust_URL_Cat
41
[edit]
user@host# set security utm utm-policy UTM-AV-Policy anti-virus http-profile Avira-AV-Profile
user@host# set security utm utm-policy UTM-AV-Policy anti-virus ftp upload-profile Avira-AV-
Profile
user@host# set security utm utm-policy UTM-AV-Policy anti-virus ftp download-profile Avira-AV-
Profile
user@host# set security utm utm-policy UTM-AV-Policy anti-virus smtp-profile Avira-AV-Profile
user@host# set security utm utm-policy UTM-AV-Policy anti-virus pop3-profile Avira-AV-Profile
user@host# set security utm utm-policy UTM-AV-Policy anti-virus imap-profile Avira-AV-Profile
9. Configure a security policy and apply the UTM policy UTM-AV-Policy as application services for the
permitted traffic.
[edit]
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 match source-
address any
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 match
destination-address any
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 match
application any
user@host# set security policies from-zone trust to-zone untrust policy POLICY-1 then permit
application-services utm-policy UTM-AV-Policy
Results
From configuration mode, confirm your configuration by entering the show security utm, show services, and
show security policies commands. If the output does not display the intended configuration, repeat the
configuration instructions in this example to correct it.
}
url-pattern {
Pattern_List_1 {
value www.juniper.net;
}
}
custom-url-category {
Cust_URL_Cat {
value Pattern_List_1;
}
}
}
feature-profile {
anti-virus {
profile Avira-AV-Profile {
fallback-options {
default log-and-permit;
content-size block;
engine-not-ready log-and-permit;
timeout log-and-permit;
out-of-resources log-and-permit;
too-many-requests log-and-permit;
}
notification-options {
fallback-block {
type protocol-only;
notify-mail-sender;
custom-message " fallback block action occured ";
custom-message-subject " Antivirus Fallback Alert ";
}
}
mime-whitelist {
list Mime_1;
}
url-whitelist Cust_URL_Cat;
}
}
}
utm-policy P1 {
anti-virus {
http-profile junos-av-defaults;
ftp {
upload-profile junos-av-defaults;
43
download-profile junos-av-defaults;
}
smtp-profile junos-av-defaults;
pop3-profile junos-av-defaults;
imap-profile junos-av-defaults;
}
}
utm-policy UTM-AV-Policy {
anti-virus {
http-profile Avira-AV-Profile;
ftp {
upload-profile Avira-AV-Profile;
download-profile Avira-AV-Profile;
}
smtp-profile Avira-AV-Profile;
pop3-profile Avira-AV-Profile;
imap-profile Avira-AV-Profile;
}
}
[edit]
user@host# show security policies
from-zone untrust to-zone trust {
policy POLICY-1 {
match {
source-address any;
destination-address any;
application any;
}
then {
permit {
application-services {
utm-policy UTM-AV-Policy;
}
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
44
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show security utm anti-virus status command to view the antivirus
status.
Sample Output
command-name
Meaning
• Interval—The time period, in minutes, when the device will update the data file from the update
server.
• Pattern update status—When the data file will be updated next, displayed in minutes.
Purpose
Action
Use the safe way of testing the antivirus capability using Eicar.org website. Your security device displays
an error message as shown when you try to download an unsafe file.
Meaning
The message indicates that your security device has blocked a malicious content.
RELATED DOCUMENTATION
IN THIS SECTION
The Sophos antivirus scanner uses a local internal cache to maintain query responses from the external
list server to improve lookup performance. The Sophos antivirus scanning is offered as a less CPU-
intensive alternative to the full file-based antivirus feature. For more information, see the following
topics:
47
Sophos antivirus is as an in-the-cloud antivirus solution. The virus pattern and malware database is
located on external servers maintained by Sophos (Sophos Extensible List) servers, thus there is no need
to download and maintain large pattern databases on the Juniper device. The Sophos antivirus scanner
also uses a local internal cache to maintain query responses from the external list server to improve
lookup performance.
Because a significant amount of traffic processed by Juniper Unified Threat Management (UTM) is HTTP
based, Uniform Resource Identifier (URI) checking is used to effectively prevent malicious content from
reaching the endpoint client or server. The following checks are performed for HTTP traffic: URI lookup,
true file type detection, and file checksum lookup. The following application layer protocols are
supported: HTTP, FTP, SMTP, POP3 and IMAP.
The full file-based antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, sophos antivirus scanning is offered as a less CPU-
intensive alternative to the full file-based antivirus feature. Sophos supports the same protocols as full
antivirus and functions in much the same manner; however, it has a smaller memory footprint and is
compatible with lower end devices that have less memory.
Starting with Junos OS Release 15.1X49-D100, IPv6 pass-through traffic for HTTP, HTTPS, FTP, SMTP,
POP3, IMAP protocols is supported for Sophos antivirus, Web filtering and Content filtering security
features of UTM.
Starting with Junos OS Release 12.3X48-D35 and Junos OS Release 17.3R1, the UTM Sophos antivirus
(SAV) single session throughput is increased for optimizing tcp-proxy forwarding.
Starting from Junos OS Release 19.4R1, the antivirus feature supports implicit and explicit SMTPS,
IMAPS, and POP3S protocol, and supports only explicit passive mode FTPS.
Explicit mode—First connect to unsecured channel, then secure the communication by issuing
STARTTLS command. For POP3S, use STLS command.
SEE ALSO
• Sophos antivirus expanded MIME decoding support—Sophos antivirus offers decoding support for
HTTP, POP3, SMTP, and IMAP. MIME decoding support includes the following for each supported
protocol:
• Base64 decoding, printed quote decoding, and encoded word decoding in the subject field
• Sophos antivirus supports HTTPS traffic—Starting with Junos OS Release 12.3X48-D25 and Junos
OS Release 17.3R1, Sophos antivirus over SSL forward proxy supports HTTPS traffic. Sophos
antivirus over SSL forward proxy does so by intercepting HTTPS traffic passing through the SRX
Series device. The security channel from the SRX Series device is divided as one SSL channel
between the client and the SRX Series device and another SSL channel between the SRX Series
device and the HTTPS server. SSL forward proxy acts as the terminal for both channels and forwards
the cleartext traffic to UTM. UTM extracts the URL and the file checksum information from cleartext
traffic. The Sophos antivirus scanner determines whether to block or permit the requests.
SSL forward proxy does not support client authentication. If client authentication is required by the
server, UTM bypasses the traffic. UTM bypasses the HTTPS traffic under the following conditions:
• If SSL proxy does not parse the first handshake packet from the client, SSL forward proxy
bypasses the traffic.
• If the SSL proxy handshake with the client and server is incomplete because of compatibility
issues, connection drops.
• If the system resource is low, SSL forward proxy cannot handle the new connection and Sophos
antivirus bypasses the traffic.
• If HTTPS traffic hits the allowlist of SSL forward proxy, SSL forward proxy and Sophos antivirus
bypass the traffic.
• Sophos antivirus scan result handling—With Sophos antivirus, the TCP, traffic is closed gracefully
when a virus is found and the data content is dropped.
The following fail mode options are supported: content-size, default, engine-not-ready, out-of-
resource, timeout, and too-many-requests. You can set the following actions: block, log-and-permit,
and permit. Fail mode handling of supported options with Sophos is much the same as with full
antivirus.
• Sophos Uniform Resource Identifier checking—Sophos provides Uniform Resource Identifier (URI)
checking, which is similar to antispam realtime null route list (RBL) lookups. URI checking is a way of
49
analyzing URI content in HTTP traffic against the Sophos database to identify malware or malicious
content. Because malware is predominantly static, a checksum mechanism is used to identify
malware to improve performance. Files that are capable of using a checksum
include .exe, .zip, .rar, .swf, .pdf, and .ole2 (doc and xls).
If you have a Juniper Networks device protecting an internal network that has no HTTP traffic, or has
webservers that are not accessible to the outside world, you might want to turn off URI checking. If
the webservers are not accessible to the outside world, it is unlikely that they contain URI
information that is in the Sophos URI database. URI checking is on by default.
Starting from Junos OS Release 18.4R1 onwards, the URI checking is off by default.
SEE ALSO
Sophos antivirus uses a small set of data files that need to be updated periodically. These data files only
contain information on guiding scanning logic and do not contain the full pattern database. The main
pattern database, which includes protection against critical viruses, URI checks, malware, worms,
Trojans, and spyware, is located on remote Sophos Extensible List servers maintained by Sophos.
The Sophos data files are updated over HTTP or HTTPS and can be updated manually or scheduled to
update automatically. With Sophos antivirus:
• The signature database auto-update interval is once a day by default. This interval can be changed.
• There is no interruption in virus scanning capability during the data file update. If the update fails, the
existing data files will continue to be used.
• By default, the URL for Sophos antivirus data file update is http://update.juniper-updates.net/SAV/.
NOTE: The Sophos antivirus scanning feature is a separately licensed subscription service. When
your antivirus license key expires, functionality will no longer work because the pattern lookup
database is located on remote Sophos servers. You have a 30-day grace period in which to
update your license.
50
SEE ALSO
The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1x49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, Sophos Antivirus is much like Juniper Express
Antivirus and also has similarities to the Full Antivirus feature:
• Unlike the Juniper Express and Full Antivirus solutions, the antivirus and malware database for
Sophos is stored on a group of remote Sophos Extensible List servers. Queries are performed using
the DNS protocol. Sophos maintains these servers, so there is no need to download and maintain
large pattern databases on the Juniper device. Because the database is remote, and there is a quicker
response to new virus outbreaks. The Antivirus database has no size limitation, but there is a
limitation with the scan file size.
NOTE: Sophos antivirus uses a set of data files that need to be updated on a regular basis.
These are not typical virus pattern files; they are a set of small files that help guide virus
scanning logic. You can manually download the data files or set up automatic download.
• Sophos does not provide the same prescreening detection as Kaspersky Antivirus. Sophos does
provide a similar solution that is part of the Sophos engine and cannot be turned on and off.
• The Sophos antivirus scanning feature is a separately licensed subscription service. Also, the pattern
lookup database is located on remote servers maintained by Sophos, so when your antivirus license
key expires, functionality will no longer work. You have a 30-day grace period in which to update
your license.
SEE ALSO
Sophos antivirus is part of the Unified Threat Management (UTM) feature set, so you first configure
UTM options (custom objects), configure the Sophos Feature, then create a UTM policy and a security
policy. The security policy controls all traffic that is forwarded by the device, and the UTM policy
specifies which parameters to use to scan traffic. The UTM policy is also used to bind a set of protocols
to one or more UTM feature profiles, including Sophos antivirus in this case.
1. Configure UTM custom objects and MIME lists. See "Example: Configuring Sophos Antivirus Custom
Objects" on page 51,
2. Configure the Sophos antivirus feature profile. See "Example: Configuring Sophos Antivirus Feature
Profile" on page 55.
3. Configure a UTM policy. See "Example: Configuring Sophos Antivirus UTM Policies" on page 64
4. Configure a security policy. See "Example: Configuring Sophos Antivirus Firewall Security Policies" on
page 67.
IN THIS SECTION
Requirements | 51
Overview | 52
Configuration | 52
Verification | 55
This example shows you how to create UTM global custom objects to be used with Sophos antivirus.
Requirements
Before you begin, read about UTM custom objects. See "UTM Overview" on page 2.
52
Overview
Configure MIME lists. This includes creating a MIME allowlist and a MIME exception list for antivirus
scanning. In this example, you bypass scanning of QuickTime videos, unless if they contain the MIME
type quicktime-inappropriate.
Configuration
IN THIS SECTION
Procedure | 52
Procedure
Step-by-Step Procedure
1. Click the Configure tab from the taskbar, and then select Security>UTM>Custom Objects.
2. Click the MIME Pattern List tab and then click Add.
4. In the MIME Pattern Value box, type video/quicktime, and click Add.
5. In the MIME Pattern Value box, type image/x-portable-anympa, and click Add.
6. In the MIME Pattern Value box, type x-world/x-vrml, and click Add.
Step-by-Step Procedure
1. Click the Configure tab from the taskbar, and then select Security>UTM>Custom Objects.
2. Click the MIME Pattern List tab and then select Add.
4. In the MIME Pattern Value box, type video/quicktime-inappropriate and click Add.
53
Step-by-Step Procedure
Configure a URL pattern list (allowlist) of URLs or addresses that will be bypassed by antivirus scanning.
After you create the URL pattern list, you will create a custom URL category list and add the pattern list
to it.
NOTE: Because you use URL pattern lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure custom URL category lists.
1. Click the Configure tab from the taskbar, and then select Security>UTM>Custom Objects.
2. Click the URL Pattern List tab, and then click Add.
4. In the URL Pattern Value box, enter http://example.net. (You can also us the IP address of the server
instead of the URL.)
Step-by-Step Procedure
NOTE: URL pattern wildcard support—The wildcard rule is as follows: \*\.[]\?* and you must
precede all wildcard URLs with http://. You can use “*” only if it is at the beginning of the URL
and is followed by a “.”. You can only use “?” at the end of the URL.
The following wildcard syntax is supported: http://*.example.net, http://www.example.ne?, http://
www.example.n??. The following wildcard syntax is not supported: *.example.net ,
www.example.ne?, http://*example.net, http://*.
Step-by-Step Procedure
To configure antivirus protection using the CLI, you must create your custom objects in the following
order:
1.
54
2. Configure a URL pattern list (allowlist) of URLs or addresses that you want to bypass. After you
create the URL pattern list, you create a custom URL category list and add the pattern list to it.
Configure a URL pattern list custom object by creating the list name and adding values to it as
follows. As you use URL pattern lists to create custom URL category lists, you must configure URL
pattern list custom objects before you configure custom URL category lists.
NOTE: URL pattern wildcard support—The wildcard rule is as follows: \*\.[]\?* and you must
precede all wildcard URLs with http://. You can only use “*” if it is at the beginning of the URL
and is followed by a “.”. You can only use “?” at the end of the URL.
The following wildcard syntax is supported: http://*.example.net, http://www.example.ne?,
http://www.example.n??. The following wildcard syntax is not supported: *.example.net ,
www.example.ne?, http://*example.net, http://*.
3. Configure a custom URL category list custom object by using the URL pattern list urllist2 that you
created earlier:
Verification
IN THIS SECTION
Purpose
To verify the Sophos Antivirus custom objects configuration., enter the show security utm custom-objects
command.
Action
From the operational mode, enter the show security utm custom-objects command to verify the Sophos
Antivirus custom objects configuration.
SEE ALSO
Allowlist | 24
IN THIS SECTION
Requirements | 56
Overview | 56
Configuration | 56
Verification | 63
56
This example shows you how to configure a Sophos antivirus profile that defines the parameters that
will be used for virus scanning.
Requirements
Before you begin:
• Configure custom objects for UTM. See "Example: Configuring Sophos Antivirus Custom Objects" on
page 51.
Overview
The following configuration defines Sophos as the antivirus engine and sets parameters, such as the data
file update interval, notification options for administrators, fallback options, and file size limits.
NOTE: The [edit security utm feature-profile] hierarchy level is deprecated in Junos OS Release
18.2R1. For more information, see "UTM Overview" on page 2.
Configuration
IN THIS SECTION
Procedure | 56
Procedure
Step-by-Step Procedure
The following example shows you how to create a custom Sophos profile. If you want to use the Juniper
Networks preconfigured profile, use the profile named junos-sophos-av-defaults in your UTM policy.
See "Example: Configuring Sophos Antivirus UTM Policies" on page 64.
1. Select and configure the engine type. Because you are configuring Sophos antivirus, you configure
sophos-engine:
57
Step-by-Step Procedure
a. Click the Configure tab from the taskbar, and then select Security>UTM>Anti-Virus.
2. Return to the antivirus Global Options screen as you did in step 1, and set the following parameters:
Step-by-Step Procedure
d. In the box, type the e-mail address that will receive SophosAdmin e-mail data file update
notifications. For example - admin@ example.net.
e. In the Custom message subject box, type Sophos Data File Updated.
Step-by-Step Procedure
a. Click the Configure tab from the taskbar and then select Security>UTM>Anti-Virus. Click Add.
When enabling the trickling option, it is important to understand that trickling might send part of
the file to the client during the antivirus scan. It is possible that some of the content could be
received by the client and the client might become infected before the file is fully scanned.
e. URI checking is on by default. To turn it off, clear yes in the URI check box.
4. Configure fallback settings by clicking the Fallback settings tab. In this example, all fallback options
are set to log and permit. Click Log and permit for the following items: Default action, Content size,
Engine not ready, Timeout, Out of resource, Too many requests.
5. Configure notification options by clicking the Notification options tab. You can configure
notifications for both fallback blocking and fallback nonblocking actions and for virus detection.
Step-by-Step Procedure
6. To configure notification options for virus detection, click the Notification options cont... tab.
Step-by-Step Procedure
Step-by-Step Procedure
The following example shows you how to create a custom Sophos profile. If you want to use the Juniper
Networks preconfigured profile, use the profile named junos-sophos-av-defaults in your UTM policy.
See "Example: Configuring Sophos Antivirus UTM Policies" on page 64.
59
1. Select and configure the engine type. Because you are configuring Sophos antivirus, you configure
sophos-engine.
[edit]
user@host# set security utm default-configuration anti-virus type sophos-engine
3. Select a time interval for updating the data files. The default antivirus pattern-update interval is
1440 minutes (every 24 hours). You can choose to leave this default, or you can change it. You can
also force a manual update, if needed. To change the default from every 24 hours to every 48
hours:
4. Configure the network device with the proxy server details, to download the pattern update from a
remote server:
5. In most circumstances, you will not need to change the URL to update the pattern database. If you
do need to change this option, use the following command:
6. You can configure the device to notify a specified administrator when data files are updated. This is
an e-mail notification with a custom message and a custom subject line.
7. Configure a list of fallback options as block, log and permit, or permit. The default setting is log-
and-permit. You can use the default settings, or you can change them.
60
Configure the content size action. In this example, if the content size is exceeded, the action taken
is block.
Configure log-and-permit if there are too many requests for the virus engine to handle.
8. Configure notification options. You can configure notifications for fallback blocking, fallback
nonblocking actions, and virus detection.
In this step, configure a custom message for the fallback blocking action and send a notification for
protocol-only actions to the administrator and the sender.
When you configure the content-size value, keep in mind that in certain cases, content size is
available in the protocol headers, so the max-content-size fallback is applied before a scan request
is sent. However, in many cases, content size is not provided in the protocol headers. In these cases,
the TCP payload is sent to the antivirus scanner and accumulates until the end of the payload. If the
accumulated payload exceeds the maximum content size value, then max-content-size fallback is
applied. The default fallback action is log and permit, so you may want to change this option to
block, in which case such a packet is dropped and a block message is sent to the client.
In this example, if the content size exceeds 20 MB, the packet is dropped.
12. Configure the timeout setting for the scanning operation to 1800 seconds.
13. The Sophos Extensible List servers contain the virus and malware database for scanning operations.
Set the response timeout for these servers to 3 seconds (the default is 2 seconds).
14. Configure the Sophos Extensible List server retry option to 2 retries (the default is 1).
15. Configure the trickling setting to 180 seconds. If you use trickling, you can also set timeout
parameters. Trickling applies only to HTTP. HTTP trickling is a mechanism used to prevent the
HTTP client or server from timing out during a file transfer or during antivirus scanning.
When you enable the trickling option, keep in mind that trickling might send part of a file to the
client during its antivirus scan. It is therefore possible that some of the content could be received by
the client before the file has been fully scanned.
16. Configure the antivirus module to use MIME bypass lists and exception lists. You can use your own
custom object lists, or you can use the default list that ships with the device called junos-default-
bypass-mime. In this example, you use the lists that you set up earlier.
17. Configure the antivirus module to use URL bypass lists. If you are using a URL allowlist, this is a
custom URL category you have previously configured as a custom object. URL allowlists are valid
only for HTTP traffic. In this example you use the lists that you set up earlier.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show security utm anti-virus status command to view the antivirus
status.
Meaning
• Interval—The time period, in minutes, when the device will update the data file from the update
server.
• Pattern update status—When the data file will be updated next, displayed in minutes.
• Last result—Result of the last update. If you already have the latest version, this will display already
have latest database.
64
• Scan engine information—Result of the last action that occurred with the current scan engine.
SEE ALSO
IN THIS SECTION
Requirements | 64
Overview | 64
Configuration | 65
Verification | 66
This example shows how to create a UTM policy for Sophos antivirus.
Requirements
Before you create the UTM policy, create custom objects and the Sophos feature profile.
1. Configure UTM custom objects and MIME lists. See "Example: Configuring Sophos Antivirus Custom
Objects" on page 51.
2. Configure the Sophos antivirus feature profile. See "Example: Configuring Sophos Antivirus Feature
Profile" on page 55.
Overview
After you have created an antivirus feature profile, you configure a UTM policy for an antivirus scanning
protocol and attach this policy to a feature profile. In this example, HTTP will be scanned for viruses, as
65
indicated by the http-profile statement. You can scan other protocols as well by creating different
profiles or adding other protocols to the profile, such as: imap-profile, pop3-profile, and smtp-profile.
Configuration
IN THIS SECTION
Procedure | 65
Procedure
Step-by-Step Procedure
1. Click the Configure tab from the taskbar, and then select Security>Policy>UTM Policies. Then click
Add.
2. Click the Main tab. In the Policy name box, type utmp3.
3. Click the Anti-Virus profiles tab. In the HTTP profile list, select sophos-prof1.
Step-by-Step Procedure
[edit]
user@host# edit security utm
66
2. Create the UTM policy utmp3 and attach it to the http-profile sophos-prof1. You can use the default
Sophos feature profile settings by replacing sophos-prof1 in the above statement with junos-sophos-
av-defaults.
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm utm-policy utmp3 command.
SEE ALSO
IN THIS SECTION
Requirements | 67
Overview | 67
Configuration | 67
Verification | 69
This example shows how to create a security policy for Sophos antivirus.
Requirements
Before you create the security policy, create custom objects, the Sophos feature profile, and the UTM
policy.
1. Configure UTM custom objects and MIME lists. See "Example: Configuring Sophos Antivirus Custom
Objects" on page 51.
2. Configure the Sophos antivirus feature profile. See "Example: Configuring Sophos Antivirus Feature
Profile" on page 55.
3. Configure a UTM policy. See "Example: Configuring Sophos Antivirus UTM Policies" on page 64.
Overview
Create a firewall security policy that will cause traffic from the untrust zone to the trust zone to be
scanned by Sophos antivirus using the feature profile settings defined in "Example: Configuring Sophos
Antivirus Feature Profile" on page 55. Because the match application configuration is set to any, all
application types will be scanned.
Configuration
IN THIS SECTION
Procedure | 68
68
Procedure
Step-by-Step Procedure
1. Configure the untrust to trust policy to match any source address or destination address, and select
the applications to be scanned to any.
Step-by-Step Procedure
a. Click the Configure tab from the taskbar, and then select Security>Policy>FW Policies. Then
select Add.
f. In the Source Address and Destination Address boxes, make sure that Matched is set to any.
g. In the Applications boxes, select any from the Application/Sets list, and move it to the Matched
list.
2. Attach the UTM policy named utmp3 to the firewall security policy. This will cause matched traffic to
be scanned by the Sophos antivirus feature.
Step-by-Step Procedure
a. From the Edit Policy box, click the Application Services tab.
Step-by-Step Procedure
[edit security]
user@host# set policies from-zone untrust to-zone trust policy p3 match source-address any
[edit security]
user@host# set policies from-zone untrust to-zone trust policy p3 match destination-address
any
[edit security]
user@host# set policies from-zone untrust to-zone trust policy p3 match application any
4. Attach the UTM policy named utmp3 to the firewall security policy. This will cause matched traffic to
be scanned by the Sophos antivirus feature.
[edit security]
user@host# set policies from-zone untrust to-zone trust policy p3 then permit application-
services utm-policy utmp3
Verification
IN THIS SECTION
Purpose
To verify the security policy configuration, enter the show security policies command.
Action
From the operational mode, enter the show security policies command.
SEE ALSO
Allowlist | 24
IN THIS SECTION
Requirements | 70
Overview | 71
Configuration | 71
Verification | 75
This example shows how to configure Sophos antivirus over SSL forward proxy to support HTTPS traffic
passing through SRX Series devices.
NOTE: Starting with Junos OS Release 12.3X48-D25 and Junos OS Release 17.3R1, Sophos
antivirus over SSL forward proxy supports HTTPS traffic.
Requirements
Before you begin, understand Sophos antivirus features. See "Sophos Antivirus Features" on page 48.
71
Overview
In this example, you configure Sophos antivirus over SSL forward proxy to support HTTPS traffic. You
load the PKI certificate, generate a self-signed CA certificate, configure a trusted CA list, configure an
SSL proxy profile using the root certificate, and enable SSL forward proxy. To configure UTM over SSL
forward proxy, first match the source/destination/application, set up the SSL proxy service, and perform
scanning to determine whether to block or permit the requests.
NOTE: The [edit security utm feature-profile] hierarchy level is deprecated in Junos OS Release
18.2R1. For more information, see "UTM Overview" on page 2.
Configuration
IN THIS SECTION
Procedure | 72
Results | 73
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the edit hierarchy level, and then enter commit from configuration mode.
request security pki generate-key-pair certificate-id ssl-inspect-ca size 2048 type rsa
request security pki local-certificate generate-self-signed certificate-id ssl-inspect-ca domain-
name www.example.net subject "CN=www.example.net,OU=IT,O=example,L=Sunnyvale,ST=CA,C=US" email
security-admin@example.net
set security pki ca-profile trusted-ca-example ca-identity trusted-ca-example
request security pki ca-certificate load ca-profile trusted-ca-example filename trusted-ca-
example.crt
set services ssl proxy profile ssl-inspect-profile root-ca ssl-inspect-ca
set services ssl proxy profile ssl-inspect-profile trusted-ca trusted-ca-example
set security policies from-zone untrust to-zone trust policy 1 then permit application-services
ssl-proxy profile-name ssl-inspect-profile
72
Procedure
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
[edit]
user@host# set security pki ca-profile trusted-ca-example ca-identity trusted-ca-example
[edit]
user@host# set services ssl proxy profile ssl-inspect-profile root-ca ssl-inspect-ca
user@host# set services ssl proxy profile ssl-inspect-profile trusted-ca trusted-ca-example
[edit]
user@host# set security policies from-zone untrust to-zone trust policy 1 then permit
application-services ssl-proxy profile-name ssl-inspect-profile
73
Results
From configuration mode, confirm your configuration by entering the show security utm, show services, and
show security policies commands. If the output does not display the intended configuration, repeat the
configuration instructions in this example to correct it.
[edit]
user@host# show security utm
traceoptions {
flag all;
}
application-proxy {
traceoptions {
flag sophos-anti-virus;
}
}
default-configuration {
anti-virus {
type sophos-engine;
scan-options {
uri-check;
sxl-timeout 4;
}
traceoptions {
flag all;
}
profile profile1 {
fallback-options {
default log-and-permit;
content-size log-and-permit;
engine-not-ready log-and-permit;
timeout log-and-permit;
out-of-resources log-and-permit;
too-many-requests log-and-permit;
}
notification-options {
virus-detection {
type message;
}
fallback-block {
type message;
}
74
}
}
}
}
}
utm-policy policy1 {
anti-virus {
http-profile profile1;
}
}
[edit]
user@host# show services
ssl {
traceoptions {
file ssl_trace size 1g;
flag all;
}
proxy {
profile ssl-p {
root-ca haojue;
actions {
ignore-server-auth-failure;
}
}
}
}
[edit]
user@host# show security policies
from-zone trust to-zone untrust {
policy trust_2_untrust {
match {
source-address any;
destination-address any;
application [ junos-http junos-https ];
}
then {
permit {
application-services {
ssl-proxy {
profile-name ssl-p;
}
utm-policy policy1;
}
75
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From configurationl mode, enter the show security pki local-certificate command.
Sunnyvale, ST = CA, C = US
Validity:
Not before: 01-28-2016 22:28 UTC
Not after: 01-26-2021 22:28 UTC
Public key algorithm: rsaEncryption(2048 bits)
Meaning
The sample output confirms that the PKI local ceritificate ssl-inspect-ca is configured.
Purpose
Action
From operational mode, enter the show security utm anti-virus statistics command.
Intelligent-prescreening passed: 0
MIME-whitelist passed: 0
URL-whitelist passed: 0
Session abort: 0
Scan Request:
Fallback:
Log-and-Permit Block Permit
Engine not ready: 0 0 0
Out of resources: 0 0 0
Timeout: 0 0 0
Maximum content size: 0 0 0
Too many requests: 0 0 0
77
Decompress error: 0 0 0
Others: 0 0 0
Meaning
Purpose
Action
From operational mode, enter the show security utm anti-virus statistics detail command.
URI request:
Total Clean Threat-found Need-further-inspection Abort
10 1 1 8 0
File request:
Total Clean Threat-found Fallback Abort
8 6 1 1 0
FTP
Scan request:
Total Clean Threat-found Fallback Abort
78
10 8 1 1 0
SMTP
Scan request:
Total Clean Threat-found Fallback Abort
10 8 1 1 0
POP3
Scan request:
Total Clean Threat-found Fallback Abort
10 8 1 1 0
IMAP
Scan request:
Total Clean Threat-found Fallback Abort
10 8 1 1 0
Out of resources: 0 0 0
Timeout: 0 0 0
Maxmium content size: 1 0 0
Too many requests: 0 0 0
Others 0 0 0
Meaning
Purpose
Action
From operational mode, enter the show security utm anti-virus status command to view the antivirus
status.
Meaning
• Interval—The time period, in minutes, when the device updates the data file from the update
server.
• Auto update status—Displays the next automatic update of the data file in minutes.
• Scan engine type—The antivirus scan engine type that is currently running.
• Scan engine information—Result of the last action that occurred with the current scan engine.
SEE ALSO
• Install a Sophos antivirus license. See the Installation and Upgrade Guide.
• Configure Sophos as the antivirus feature for the device. See "Example: Configuring Sophos Antivirus
Feature Profile" on page 55. To set the antivirus engine type, you run the set security utm feature-
profile anti-virus type sophos-engine statement.
In this example, you configure the security device to update the data files automatically every 4320
minutes (every 3 days). The default data file update interval is 1440 minutes (every 24 hours).
NOTE: The following commands are performed from CLI operational mode.
81
To check the status of antivirus, which also shows the data files version:
SEE ALSO
Release Description
15.1X49-D100 Starting with Junos OS Release 15.1X49-D100, IPv6 pass-through traffic for HTTP, HTTPS, FTP,
SMTP, POP3, IMAP protocols is supported for Sophos antivirus, Web filtering and Content
filtering security features of UTM.
15.1X49-D10 The full file-based antivirus feature is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1x49-
D10 and Junos OS Release 17.3R1 onwards.
82
12.3X48-D35 Starting with Junos OS Release 12.3X48-D35 and Junos OS Release 17.3R1, the UTM Sophos
antivirus (SAV) single session throughput is increased for optimizing tcp-proxy forwarding.
12.3X48-D25 Starting with Junos OS Release 12.3X48-D25 and Junos OS Release 17.3R1, Sophos antivirus
over SSL forward proxy supports HTTPS traffic.
12.3X48-D25 Starting with Junos OS Release 12.3X48-D25 and Junos OS Release 17.3R1, Sophos antivirus
over SSL forward proxy supports HTTPS traffic.
RELATED DOCUMENTATION
Virus-Detected Notifications | 82
Full Antivirus Protection | 260
Licenses Required for UTM Features
Enabling TCP Proxy Session to Increase the Network Transmit Speed
Virus-Detected Notifications
IN THIS SECTION
Virus-Detected notification is used to notify the sender or the recipient about the detected viruses or
the scanning errors. For more information, see the following topics:
83
The Protocol-Only Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards. For previous releases, when content is blocked because a
virus is found or a scan error occurs, the client generally still receives a successful response code but
with modified content (file replacement) containing a warning message. But with protocol-only
notifications, a protocol-specific error code may be returned to the client. This way, the client
determines that a virus was detected rather than interpreting that a file transfer succeeded.
The Protocol-Only Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards. For previous releases, to configure protocol-only virus-
detected notifications, use the following CLI configuration statements:
NOTE: The [edit security utm feature-profile] hierarchy level is deprecated in Junos OS Release
18.2R1. For more information, see "UTM Overview" on page 2.
The E-Mail Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, for mail protocols (SMTP, POP3, IMAP), e-mail
84
notification is used to notify the sender or the recipient about the detected viruses or the scanning
errors. There are three settings for e-mail notifications:
• fallback-block/notify-mail-sender — This setting is used when other scan codes or scanning errors
are returned and the message is dropped. If it is enabled, an e-mail is sent to the sender when an
error code is returned.
The E-Mail Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, to configure the system to send e-mail
notifications when viruses are detected, use the following CLI configuration statements:
NOTE: The [edit security utm feature-profile] hierarchy level is deprecated in Junos OS Release
18.2R1. For more information, see "UTM Overview" on page 2.
85
The Custom Message Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards. For previous releases, custom message notifications are
mainly used in file replacement or in a response message when the antivirus scan result is to drop the
file. When using custom messages, you can provide a customized message in the message content you
can define customized subject tags.
The Custom Message Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards. For previous releases, to configure the system to send
custom messages when viruses are detected, use the following CLI configuration statements:
NOTE: The [edit security utm feature-profile] hierarchy level is deprecated in Junos OS Release
18.2R1. For more information, see "UTM Overview" on page 2.
Release Description
15.1X49-D10 The Protocol-Only Virus-Detected Notifications are not supported from Junos OS Release
15.1X49-D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Protocol-Only Virus-Detected Notifications are not supported from Junos OS Release
15.1X49-D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The E-Mail Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-D10
and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The E-Mail Virus-Detected Notifications are not supported from Junos OS Release 15.1X49-D10
and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Custom Message Virus-Detected Notifications are not supported from Junos OS Release
15.1X49-D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Custom Message Virus-Detected Notifications are not supported from Junos OS Release
15.1X49-D10 and Junos OS Release 17.3R1 onwards.
RELATED DOCUMENTATION
IN THIS SECTION
Configuring HTTP Trickling to Prevent Timeouts During Antivirus Scanning (CLI Procedure) | 88
HTTP trickling is a mechanism used to prevent the HTTP client or server from timing-out during a file
transfer or during antivirus scanning. For more information, see the following topics:
HTTP trickling is a mechanism used to prevent the HTTP client or server from timing-out during a file
transfer or during antivirus scanning. On some slow link transferring, a large file could timeout if too
much time is taken for the antivirus scanner to scan a complex file.
For Sophos Antivirus, the HTTP trickling is supported from Junos OS Release 10.1R1. Starting from
Junos OS Release 15.1X49-D10 and Junos OS Release 17.3R1, Kaspersky Anitvirus support is
discontinued. For Avira Antivirus, the HTTP Trickling is supported from Junos OS Release 18.4R1.
HTTP trickling is the forwarding of specified amounts of unscanned HTTP traffic to the requesting HTTP
client to prevent the browser window from timing out while the scan manager examines downloaded
HTTP files. (The security device forwards small amounts of data in advance of transferring an entire
scanned file.)
HTTP Trickling is time-based and there is only one parameter, the time-out interval, to configure for this
feature. By default, trickling is disabled.
The timeout based trickling is packet driven. This means, if no packet is received within a certain time
frame, HTTP trickling is discontinued. This setting is only supported for HTTP connections.
88
Release Description
18.4R1 For Avira Antivirus, the HTTP Trickling is supported from Junos OS Release 18.4R1.
15.1X49-D10 Starting from Junos OS Release 15.1X49-D10 and Junos OS Release 17.3R1, Kaspersky Anitvirus
support is discontinued.
RELATED DOCUMENTATION
Antispam Filtering
IN THIS SECTION
Antispam filtering allows you to tag or block unwanted e-mail traffic by scanning inbound and outbound
SMTP e-mail traffic. Antispam filtering allows you to use both a third-party server-based spam block list
(SBL) and to optionally create your own local allowlists and blocklists for filtering against e-mail
messages. For more information, see the following topics:
IN THIS SECTION
Spam consists of unwanted e-mail messages, usually sent by commercial, malicious, or fraudulent
entities. The antispam feature examines transmitted e-mail messages to identify spam. When the device
detects a message deemed to be spam, it blocks the e-mail message or tags the e-mail message header
or subject with a preprogrammed string.
Antispam filtering allows you to use both a third-party server-based spam block list (SBL) and to
optionally create your own local allowlists (benign) and blocklists (malicious) for filtering against e-mail
messages. The antispam feature is not meant to replace your antispam server, but to complement it.
Starting in Junos OS Release 18.2R1, the antispam filtering supports IPv6 traffic.
Starting in Junos OS Release 19.4R1, the antispam filtering supports implicit and explicit SMTPS
protocol.
Explicit mode—First connect to unsecured channel, then secure the communication by issuing
STARTTLS command.
The device can block and drop detected spam at either the connection level or the e-mail level:
When the SMTP sender is identified as a spam sender based on its IP address, the SMTP connection
is rejected and dropped. An error message with a proper error code from the firewall is sent out on
behalf of the SMTP server. An example of such an error message is:
When a particular e-mail sender is identified as spam sender based on its sender address, the e-mail
is rejected and dropped. An error message with a proper error code from the firewall is sent back to
the sender on behalf of the server. An example of such an error message is:
The device can allow and tag the e-mail if the message sender is detected as a spammer. This tagging
can occur at the connection level so that all the e-mails for the connection in question are tagged.
Otherwise, you can tag only an individual e-mail. Two tagging methods are supported:
• Tag the subject: A user-defined string is added at the beginning of the subject of the e-mail.
SEE ALSO
RELATED DOCUMENTATION
IN THIS SECTION
Server-based spam filtering supports only IP-based spam blocklist lookup. Server-based antispam
filtering requires Internet connectivity with the spam block list (SBL) server. For more information, see
the following topics:
Server-based antispam filtering requires Internet connectivity with the spam block list (SBL) server.
Domain Name Service (DNS) is required to access the SBL server. The firewall performs SBL lookups
through the DNS protocol. The lookups are against the IP address of the sender (or relaying agent) of
the e-mail, adding the name of the SBL server as the authoritative domain. The DNS server then
forwards each request to the SBL server, which returns a DNS response to the device. The device then
interprets the DNS response to determine if the e-mail sender is a spammer.
IP addresses that are included in the block lists are generally considered to be invalid addresses for mail
servers or easily compromised addresses. Criteria for listing an IP address as a spammer on the SBL can
include:
By default, the device first checks incoming e-mail against local allowlists and blocklists. If there are no
local lists, or if the sender is not found on local lists, the device proceeds to query the SBL server over
the Internet. When both server-based spam filtering and local list spam filtering are enabled, checks are
done in the following order:
1. The local allowlist is checked. If there is a match, no further checking is done. If there is no match...
2. The local blocklist is checked. If there is a match, no further checking is done. If there is no match...
NOTE:
• SBL server matching stops when the antispam license key is expired.
• Server-based spam filtering supports only IP-based spam blocklist lookup. Sophos updates
and maintains the IP-based spam block list. Server-based antispam filtering is a separately
licensed subscription service. When your antispam license key expires, you can continue to
use locally defined blocklists and allowlists.
When you delete or deactivate a feature profile created for server based antispam filtering for
SBL server, the default SBL server configuration is applied automatically. When a default SBL
server configuration is applied, the default SBL server lookup is enabled. If you want to
disable the default SBL server lookup, that is, you want to configure the no-sbl-default-server
option as a default value, then you must use the set security utm default-configuration anti-spam
sbl no-sbl-default-server command.
SEE ALSO
For each UTM feature, configure feature parameters in the following order:
94
3. Configure a UTM policy for each protocol, and attach this policy to a profile.
user@host# set security policies from-zone trust to-zone untrust policy p1 then permit
application-services utm-policy utmp1
IN THIS SECTION
Requirements | 95
Overview | 95
Configuration | 95
Verification | 101
Requirements
Before you begin, review how to configure the feature parameters for each UTM feature. See "Server-
Based Antispam Filtering Configuration Overview" on page 93.
Overview
Server-based antispam filtering requires Internet connectivity with the spam block list (SBL) server.
Domain Name Service (DNS) is required to access the SBL server.
Configuration
IN THIS SECTION
Procedure | 95
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
1. Configure a profile and enable/disable the SBL server lookup. Select Configure>Security>UTM>Anti-
Spam.
Step-by-Step Procedure
a. In the Anti-Spam profiles configuration window, click Add to configure a profile for the SBL server,
or click Edit to modify an existing item.
b. In the Profile name box, enter a unique name for the antispam profile that you are creating.
c. If you are using the default server, select Yes next to Default SBL server. If you are not using the
default server, select No.
The SBL server is predefined on the device. The device comes preconfigured with the name and
address of the SBL server. If you do not select Yes, you are disabling server-based spam filtering.
You should disable it only if you are using only local lists or if you do not have a license for server-
based spam filtering.
d. In the Custom tag string box, enter a custom string for identifying a message as spam. By default,
the devices uses ***SPAM***.
e. From the antispam action list, select the action that the device should take when it detects spam.
Options include Tag subject, Block email, and Tag header.
2. Configure a UTM policy for SMTP to which you attach the antispam profile.
Step-by-Step Procedure
d. In the Policy name box, type a unique name for the UTM policy.
e. In the Session per client limit box, type a session per client limit. Valid values range from 0 to
2000.
97
f. From the Session per client over limit list, select the action that the device should take when the
session per client limit for this UTM policy is exceeded. Options include Log and permit and Block.
h. From the SMTP profile list, select an antispam profile to attach to this UTM policy.
Step-by-Step Procedure
b. In the Security Policy window, click Add to configure a security policy with UTM or click Edit to
modify an existing policy.
h. Choose an application by selecting junos-smtp (for antispam) in the Application Sets box and
move it to the Matched box.
i. Next to Policy Action, select one of the following: Permit, Deny, or Reject.
When you select Permit for Policy Action, several additional fields become available in the
Applications Services tab, including UTM Policy.
k. Next to UTM Policy, select the appropriate policy from the list. This attaches your UTM policy to
the security policy.
m. If the policy is saved successfully, you receive a confirmation, and you must click OK again. If the
profile is not saved successfully, click Details in the pop-up window to discover why.
NOTE:
98
• In SRX Series devices the confirmation window that notifies you that the policy is
saved successfully disappears automatically.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
1. Create a profile.
[edit security]
user@host# set utm feature-profile anti-spam sbl profile sblprofile1
[edit security]
user@host# set utm feature-profile anti-spam sbl profile sblprofile1 sbl-default-server
If you are using server-based antispam filtering, you should type sbl-default-server to enable the
default SBL server. (The SBL server is predefined on the device. The device comes preconfigured with
the name and address of the SBL server.) You should disable server-based antispam filtering using the
no-sbl-default-server option only if you are using only local lists or if you do not have a license for
server-based spam filtering.
3. Configure the action to be taken by the device when spam is detected (block, tag-header, or tag-
subject).
[edit security]
user@host# set utm feature-profile anti-spam sbl profile sblprofile1sbl-default-server spam-
action block
99
[edit security]
user@host# set utm feature-profile anti-spam sbl profile sblprofile1 sbl-default-server
custom-tag-string ***spam***
[edit security]
user@host# set utm utm-policy spampolicy1 anti-spam smtp-profile sblprofile1
6. Configure a security policy for UTM to which to attach the UTM policy.
[edit]
user@host# set security policies from-zone trust to-zone untrust policy utmsecuritypolicy1
match source-address any
user@host# set security policies from-zone trust to-zone untrust policy utmsecuritypolicy1
match destination-address any
user@host# set security policies from-zone trust to-zone untrust policy utmsecuritypolicy1
match application junos-smtp
user@host# set security policies from-zone trust to-zone untrust policy utmsecuritypolicy1
then permit application-services utm-policy spampolicy1
NOTE: The device comes preconfigured with a default antispam policy. The policy is called
junos-as-defaults. It contains the following configuration parameters:
anti-spam {
sbl {
profile junos-as-defaults {
sbl-default-server;
spam-action block;
custom-tag-string "***SPAM***";
}
}
}
100
Results
From configuration mode, confirm your configuration by entering the show security utm and show security
policies commands. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security utm
feature-profile {
anti-spam {
sbl {
profile sblprofile1 {
sbl-default-server;
spam-action block;
custom-tag-string ***spam***;
}
}
}
utm-policy spampolicy1 {
anti-spam {
smtp-profile sblprofile1;
}
}
[edit]
user@host# show security policies
from-zone trust to-zone untrust {
policy utmsecuritypolicy1 {
match {
source-address any;
destination-address any;
application junos-smtp;
}
then {
permit {
application-services {
utm-policy spampolicy1;
}
}
}
101
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show security utm anti-spam status and show security utm anti-spam
statistics commands.
Total connections: #
Denied connections: #
Total greetings: #
Denied greetings: #
Total e-mail scanned: #
White list hit: #
102
SEE ALSO
RELATED DOCUMENTATION
Allowlist | 24
Content Filtering | 114
IN THIS SECTION
Antispam filtering allows you to use both a third-party server-based spam block list (SBL) and to
optionally create your own local allowlists (benign) and blocklists (malicious) for filtering against e-mail
messages. The antispam feature is not meant to replace your antispam server, but to complement it. For
more information, see the following topics:
103
When creating your own local allowlist and blocklist for antispam filtering, you can filter against domain
names, e-mail addresses, and/or IP addresses. Pattern matching works a bit differently depending upon
the type of matching in question. For example, pattern matching for domain names uses a longest suffix
match algorithm. If the sender e-mail address has a domain name of aaa.bbb.ccc, the device tries to
match "aaa.bbb.ccc" in the list. If no match is found, it tries to match "bbb.ccc", and then "ccc". IP address
matching, however, does not allow for partial matches.
Antispam filtering uses local lists for matching in the following manner:
1. Sender IP: The sender IP is checked against the local allowlist, then the local blocklist, and then the
SBL IP-based server (if enabled).
2. Sender Domain: The domain name is checked against the local allowlist and then against the local
blocklist.
3. Sender E-mail Address: The sender e-mail address is checked against the local allowlist and then
against the local blocklist.
By default, the device first checks incoming e-mail against the local allowlist and blocklist. If the sender
is not found on either list, the device proceeds to query the SBL server over the Internet. When both
server-based antispam filtering and local list antispam filtering are enabled, checks are done in the
following order:
1. The local allowlist is checked. If there is a match, no further checking is done. If there is no match...
Local blocklist and allowlist matching continues after the antispam license key is expired.
2. The local blocklist is checked. If there is a match, no further checking is done. If there is no match...
SEE ALSO
For each UTM feature, configure feature parameters in the following order:
104
3. Configure a UTM policy for each protocol, and attach this policy to a profile.
user@host# set security policies from-zone trust to-zone untrust policy p1 then permit
application-services utm-policy utmp1
IN THIS SECTION
Requirements | 104
Overview | 105
Configuration | 105
Verification | 111
Requirements
Before you begin, review how to configure the feature parameters for each UTM feature. See "Local List
Antispam Filtering Configuration Overview" on page 103.
105
Overview
Antispam filtering uses local lists for matching. When creating your own local allowlist and blocklist for
antispam filtering, you can filter against domain names, e-mail addresses, and/or IP addresses.
Configuration
IN THIS SECTION
Procedure | 105
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
1. Create local allowlist and blocklist custom objects by configuring a URL pattern list.
Step-by-Step Procedure
b. In the UTM custom objects configuration window, select the URL Pattern List tab.
NOTE: If you are creating a allowlist, it is helpful to indicate this in the list name. The same
applies to a blocklist. The name you enter here becomes available in the Address Allowlist
and Address Blocklist fields when you are configuring your antispam profiles.
e. Next to URL Pattern Value, type the URL pattern for allowlist or blocklist antispam filtering.
2. Configure antispam filtering to use the allowlist and blocklist custom objects.
Step-by-Step Procedure
c. Under Anti-Spam, select an Address Allowlist and/or an Address Blocklist from the list for local
lists for spam filtering. (These lists are configured as custom objects.)
d. Click OK.
e. If the configuration item is saved successfully, you receive a confirmation, and you must click OK
again. If it is not saved successfully, click Details in the pop-up window to discover why.
g. Click Add to configure an anti-spam profile. The profile configuration pop-up window appears.
107
i. If you are using the default server, select Yes beside Default SBL server. If you are not using the
default server, select No.
If you select No, you are disabling server-based spam filtering. You disable it only if you are using
local lists or if you do not have a license for server-based spam filtering.
j. In the Custom tag string box, type a custom string for identifying a message as spam. By default,
the device uses ***SPAM***.
k. In the Actions list, select the action that the device should take when it detects spam. Options
include Tag subject, Block email, and Tag header.
3. Configure a UTM policy for SMTP to which you attach the antispam profile.
Step-by-Step Procedure
b. In the UTM policy configuration window, click Add to configure a UTM policy. The policy
configuration pop-up window appears.
e. In the Session per client limit box, type a session per client limit. Valid values range from 0 through
2000.
f. From the Session per client over limit list, select the action that the device should take when the
session per client limit for this UTM policy is exceeded. Options include Log and permit and Block.
h. From the SMTP profile list, select the antispam profile that you are attaching to this UTM policy.
Step-by-Step Procedure
b. In the Security Policy window, click Add to configure a security policy with UTM. The policy
configuration pop-up window appears.
h. Choose an application by selecting junos-smtp (for antispam) in the Application Sets box and
move it to the Matched box.
i. Next to Policy Action, select one of the following: Permit, Deny, or Reject.
When you select Permit for policy action, several additional fields become available in the
Applications Services tab, including UTM Policy.
k. Next to UTM Policy, select the appropriate policy from the list. This attaches your UTM policy to
the security policy.
m. If the policy is saved successfully, you receive a confirmation, and you must click OK again. If the
profile is not saved successfully, click Details in the pop-up window to discover why.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
1. Configure the local list spam blocking by first creating your global local spam lists.
[edit security]
user@host# set utm custom-objects url-pattern as-black value [150.61.8.134]
user@host# set utm custom-objects url-pattern as-white value [150.1.2.3]
109
2. Configure the local list antispam feature profile by first attaching your custom-object blocklist or
allowlist or both.
When both the allowlist and the blocklist are in use, the allowlist is checked first. If there is no match,
then the blocklist is checked.
[edit security]
user@host# set utm feature-profile anti-spam address-whitelist as-white
Although you are not using the SBL for local list spam blocking, you configure your profile from
within that command similar to the server-based spam blocking procedure.
[edit security]
user@host# set utm feature-profile anti-spam sbl profile localprofile1
4. Configure the action to be taken by the device when spam is detected (block, tag-header, tag-
subject).
[edit security]
user@host# set utm feature-profile anti-spam sbl profile localprofile1 spam-action block
[edit security]
user@host# set utm feature-profile anti-spam sbl profile localprofile1 custom-tag-string
***spam***
[edit security]
user@host# set utm utm-policy spampolicy2 anti-spam smtp-profile localprofile1
7. Configure a security policy for UTM, and attach the UTM policy to the security policy.
[edit]
user@host# set security policies from-zone trust to-zone untrust policy utmsecuritypolicy2
110
Results
From configuration mode, confirm your configuration by entering the show security utm and show security
policies commands. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security utm
custom-objects {
anti-spam {
url-pattern patternwhite;
address-whitelist as-white;
sbl {
profile localprofile1 {
spam-action block;
custom-tag-string ***spam***;
}
}
}
utm-policy spampolicy2 {
anti-spam {
smtp-profile localprofile1;
}
}
[edit]
user@host# show security policies
from-zone trust to-zone untrust {
policy utmsecuritypolicy2 {
match {
source-address any;
destination-address any;
111
application junos-smtp;
}
then {
permit {
application-services {
utm-policy spampolicy2;
}
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show security utm anti-spam status and show security utm anti-spam
statistics commands.
Total connections: #
Denied connections: #
Total greetings: #
Denied greetings: #
Total e-mail scanned: #
White list hit: #
Black list hit: #
Spam total: #
Spam tagged: #
Spam dropped: #
DNS errors: #
Timeout errors: #
Return errors: #
Invalid parameter errors: #
Statistics start time:
Statistics for the last 10 days.
SEE ALSO
spam-action | 678
Antispam Filtering Overview | 90
RELATED DOCUMENTATION
Allowlist | 24
4 CHAPTER
Content Filtering
Content Filtering
IN THIS SECTION
Content Filtering provides basic data loss prevention functionality. Content filtering filters traffic is
based on MIME type, file extension, and protocol commands. You can also use the content filter module
to block ActiveX, Java Applets, and other types of content. Content filtering does not require a separate
license. For more information, see the following topics:
IN THIS SECTION
Previously, content filtering was performed to block or permit certain types of traffic based on the
MIME type, file extension, and protocol command. The content filter controls file transfers across the
115
gateway by checking traffic against configured filter lists. This type of evaluation based on file type is
supported only on Junos OS Releases prior to Junos OS Release 21.4R1.
Starting in Junos OS Release 21.4R1, content evaluation is done based of the file content. The file type-
based evaluation of content is deprecated and the related configurations are hidden.
You can use the legacy functionality if you do not want to migrate to enhanced content filtering
functionality. You will be allowed to use the legacy configurations, but all the legacy configuration knobs
are deprecated and hidden. Also, you will receive system logs and error message warnings when you use
the legacy configuration options.
In this type of evaluation the content filter module evaluates the traffic before all other UTM modules,
except Web Filtering. Therefore, if traffic meets criteria configured in the content-filter, the content-
filter acts first upon this traffic.
• MIME Pattern Filter — MIME patterns are used to identify the type of traffic in HTTP and MAIL
protocols. There are two lists of MIME patterns that are used by the content filter to determine the
action to be taken. The block MIME list contains a list of MIME type traffic that is to be blocked by
the content filter. The MIME exception list contains MIME patterns that are not to be blocked by the
content filter and are generally subsets of items on the blocklist. Note that the exception list has a
higher priority than the blocklist. If you have MIME entries that appear on both lists, those MIME
types are not blocked by the content filter because the exception list takes priority. Therefore, when
adding items to the exception list, it is to your advantage to be specific.
• Block Extension List — Because the name of a file is available during file transfers, using file
extensions is a highly practical way to block or allow file transfers. The content filter list contains a
list of file extensions to be blocked. All protocols support the use of the block extension list.
• Protocol Command Block and Permit Lists — Different protocols use different commands to
communicate between servers and clients. By blocking or allowing certain commands, traffic can be
controlled on the protocol command level.
The block and permit command lists are intended to be used in combination, with the permit list
acting as an exception list to the blocklist.
If a protocol command appears on the both the permit list and the blocklist, that command is
permitted.
Starting with Junos OS Release 15.1X49-D100, IPv6 pass-through traffic for HTTP, FTP, SMTP,
POP3, IMAP protocols is supported for Web filtering and Content filtering security features of UTM.
Because not all harmful files or components can be controlled by the MIME type or by the file extension,
you can also use the content filter module to block ActiveX, Java Applets, and other types of content.
The following types of content blocking are supported only for HTTP:
116
• Block ActiveX
• Block cookies
Content filtering was previously performed based on file type, mime-type, content-type, and protocol
command. File detection using the MIME type, protocol command filters, or by file extension filters is
not reliable always.The easiest way to identify a file type is by file name extensions, but it is not
authentic as any extension can be given to any kind of file.
Starting in Junos OS Release 21.4R1, UTM performs content filtering to determine the file type based
on the file content and not based on the file extensions. The file content is first analyzed to accurately
determine the file type. This feature complements application identification (App ID) and allows you to
configure the firewall for identifying and controlling access to Web (HTTP and HTTPS) traffic and to
protect your network from attacks. When the final application match is confirmed by App ID, the
matching UTM policy is considered for content filtering.
• File identification: For every file type, there are rules defined to examine the content and determine
the file type. UTM process uses the file content and matches it against the rules defined to
determine the file type.
• Define content filtering rules for traffic direction: The UTM process reads configuration from CLI,
parses and interprets rule-sets and rules. You can define the content filtering rules and enforce the
rules to direct the traffic.
Rule-set and rules configurations are added under the [edit security utm utm-policy <utm-policy-name>
content-filtering] hierarchy level.
You can configure connection reset option in the content filter rule. When the content listed within
the rule is detected, protocol handlers perform TCP connection reset with the client and server
exactly as configured in the policy.
NOTE: Content filtering options based on mime-type, content-type, and protocol command is
not supported. After you upgrade to Junos OS Release 21.4R1, previously existing file
extension based content filtering options under the [edit security utm utm-policy <utm-policy-
name> content-filtering] and [edt security utm feature-profile content-filtering profile <profile-
name>hierarchies are not supported.
• Use the rules and rules sets defined for content filtering: You can use the rules and rule sets defined
above from the [edit security utm default-configuration content-filtering hierarchy. These rules and rule-
set allows you to configure direction specific content filters and connection reset.
• UTM policy selection for content filtering: Once final application match is confirmed by APP ID, the
matching potential UTM policy in which content filtering rules are defined is chosen for processing.
For every UTM policy, a chain is created with list of rule-set nodes and all rules configured under a
rule-set are added to a list and then attached to the respective rule-set node.
After all checks are passed, a unique ID is allocated for each rule-set and rule configured to preserve
and organize respective information in the local memory. This storage in the local memory is required
to track the configuration changes you make and to synchronize the updates.
• Verification: Use the following commands to view the content-filtering system statistics and errors.
• To display content filtering statistics in a policy within root-logical-system use the show security utm
content-filtering statistics utm policy <utm policy name> and show security utm content-filtering
statistics root-logical-system utm-policy <utm policy name> commands.
• To display content filtering statistics in a policy within a specified logical system use the show
security utm content-filtering statistics logical-system <logical-system-name> utm-policy <utm policy name>
command.
118
If you migrate to this new feature and if there are legacy options in your configurations, then you will
receive the following error messages and commit will fail.
ERRMSG (“The config \'%s\' is deprecated”, “security utm utm-policy <> content-filtering http-profile")
Benefits
• Provides safe web access and protects your network from attacks using accurately detected file-
types in the content filtering rules.
• Controls the traffic that traverses your network and enforces content filtering rules based on traffic
direction.
• Improved log messages to include user and source identity, session ID, and packet direction
information.
SEE ALSO
IN THIS SECTION
Each supported protocol may implement available content filters differently. Not all filtering capabilities
are supported for each protocol. This topic contains the following sections:
HTTP Support
The HTTP protocol supports all content filtering features. With HTTP, the content filter remains in the
gateway, checking every request and response between the HTTP client and server.
If an HTTP request is dropped due to content filtering, the client receives a response such as:
FTP Support
The FTP protocol does not support all content filtering features. It supports only the following: Block
Extension List and Protocol Command Block List.
When content filtering blocks an FTP request, the following response is sent through the control
channel:
550 5.5.5.1:21->4.4.4.1:45237 Requested action not taken and the request is dropped for Content
Filtering file extension block list
E-Mail Support
E-mail protocols (SMTP, IMAP, POP3) have limited content filtering support for the following features:
Block Extension List, Protocol Command Block List, and MIME Pattern Filtering. Support is limited for e-
mail protocols for the following reasons:
120
• The content filter scans only one level of an e-mail header. Therefore recursive e-mail headers and
encrypted attachments are not scanned.
• If an entire e-mail is MIME encoded, the content filter can only scan for the MIME type.
• If any part of an e-mail is blocked due to content filtering, the original e-mail is dropped and replaced
by a text file with an explanation for why the e-mail was blocked.
Starting from Junos OS Release 19.4R1, the antivirus and content filtering feature supports implicit and
explicit SMTPS, IMAPS, and POP3S protocol, and supports only explicit passive mode FTPS.
Explicit mode—First connect to unsecured channel, then secure the communication by issuing
STARTTLS command. For POP3S, use STLS command.
SEE ALSO
To configure content filtering protocols, use the following CLI configuration statements:
content-filtering {
profile name {
permit-command cmd-list
block-command cmd-list
block-extension file-ext-list
block-mime {
list mime-list
exception ex-mime-list
}
block-content-type {
activex
java-applet
exe
zip
http-cookie
121
}
notification-options {
type { message }
notify-mail-sender
custom-message msg
}
}
traceoptions {
flag {
all
basic
detail
}
}
}
A content security filter blocks or allows certain type of traffic base on the mime type, file extension,
protocol commands and embedded object type. The content filter controls file transfers across the
gateway by checking traffic against configured filter lists. The content filtering module evaluates traffic
before all other UTM modules, if traffic meets the criteria configured in the content filter, the content
filter acts first upon this traffic. The following procedure lists the recommended order in which you
should configure content filters:
1. Configure UTM custom objects for the feature. See "Example: Configuring Content Filtering Custom
Objects" on page 122.
2. Configure the main feature parameters using feature profiles. See Example: Configuring Content
Filtering Feature Profiles .
3. Configure a UTM policy for each protocol and attach this policy to a profile. See "Example:
Configuring Content Filtering UTM Policies" on page 126.
4. Attach the UTM policy to a security policy. See "Example: Attaching Content Filtering UTM Policies
to Security Policies" on page 128.
122
IN THIS SECTION
Requirements | 122
Overview | 122
Configuration | 122
Verification | 125
Requirements
Before you begin:
1. Decide on the type of content filter you require. See "Content Filtering Overview" on page 114.
2. Understand the order in which content filtering parameters are configured. See "Content Filtering
Configuration Overview" on page 121.
Overview
In this example, you define custom objects that are used to create content filtering profiles. You perform
the following tasks to define custom objects:
1. Create two protocol command lists called ftpprotocom1 and ftpprotocom2, and add user, pass, port,
and type commands to it.
2. Create a filename extension list called extlist2, and add the .zip, .js, and .vbs extensions to it.
3. Define block-mime list call cfmime1 and add patterns to the list.
Configuration
IN THIS SECTION
Procedure | 123
123
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
set security utm custom-objects protocol-command ftpprotocom1 value [user pass port type]
set security utm custom-objects protocol-command ftpprotocom2 value [user pass port type]
set security utm custom-objects filename-extension extlist2 value [zip js vbs]
set security utm custom-objects mime-pattern cfmime1 value [video/quicktime image/x-portable-
anymap x-world/x-vrml]
set security utm custom-objects mime-pattern ex-cfmime1 value [video/quicktime-inappropriate]
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
[edit]
userhost#show security utm
custom-objects {
mime-pattern {
cfmime1 {
value [ video/quicktime image/x-portable-anymap x-world/x-vrml ];
}
ex-cfmime1 {
value video/quicktime-inappropriate;
125
}
}
filename-extension {
extlist2 {
value [ zip js vbs ];
}
}
protocol-command {
ftpprotocom1 {
value [ user pass port type ];
}
}
protocol-command {
ftpprotocom2 {
value [ user pass port type ];
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show configuration security utm command.
126
SEE ALSO
Allowlist | 24
IN THIS SECTION
Requirements | 126
Overview | 126
Configuration | 127
Verification | 128
This example describes how to create a content filtering UTM policy to attach to your feature profile.
Requirements
Before you begin:
1. Decide on the type of content filter you require. See "Content Filtering Overview" on page 114.
2. Configure UTM custom objects for each feature and define the content-filtering profile. See "Content
Filtering Configuration Overview" on page 121.
Overview
You configure UTM policies to selectively enforce various UTM solutions on network traffic passing
through a UTM-enabled device. Through feature profiles you associate custom objects to these policies
and specify blocking or permitting certain types of traffic.
In this example, you configure a UTM policy called utmp4, and then assign the preconfigured feature
profile confilter1 to this policy.
127
Configuration
IN THIS SECTION
Procedure | 127
Procedure
Step-by-Step Procedure
You can configure different protocol applications in the UTM policy. The example only shows HTTP and
not other protocols. Earlier you configured custom objects for FTP (ftpprotocom1 and ftpprotocom2).
Next you should add a content filter policy for FTP, for example:
[edit]
user@host# commit
128
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
SEE ALSO
IN THIS SECTION
Requirements | 129
Overview | 129
Configuration | 129
Verification | 131
This example shows how to create a security policy and attach the UTM policy to the security policy.
129
Requirements
Before you begin:
1. Configure UTM custom objects, define the content filtering profile, and create a UTM policy. See
"Content Filtering Configuration Overview" on page 121.
2. Enable and configure a security policy. See Example: Configuring a Security Policy to Permit or Deny
All Traffic.
Overview
By attaching content filtering UTM policies to security policies, you can filter traffic transiting from one
security zone to another.
In this example, you create a security policy called p4 and specify that traffic from any source address to
any destination address with an HTTP application matches the criteria. You then assign a UTM policy
called utmp4 to the security policy p4. This UTM policy applies to any traffic that matches the criteria
specified in the security policy p4.
Configuration
IN THIS SECTION
Procedure | 129
Procedure
To quickly attach a content filtering UTM policy to a security policy, copy the following commands, paste
them into a text file, remove any line breaks, change any details necessary to match your network
configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter
commit from configuration mode.
[edit]
set security policies from-zone trust to-zone untrust policy p4 match source-address any
set security policies from-zone trust to-zone untrust policy p4 match destination-address any
set security policies from-zone trust to-zone untrust policy p4 match application junos-htttp
130
set security from-zone trust to-zone untrust policy p4 then permit application-services utm-
policy utmp4
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
[edit]
user@host# edit security policies from-zone trust to-zone untrust policy p4
Results
From configuration mode, confirm your configuration by entering the show security policies command. If
the output does not display the intended configuration, repeat the configuration instructions in this
example to correct it.
[edit]
user@host# show security policies
from-zone trust to-zone untrust {
policy p4 {
match {
131
source-address any;
destination-address any;
application junos-http;
}
then {
permit {
application-services {
utm-policy utmp4;
}
}
}
}
}
default-policy {
permit-all;
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Verify the attachment of the content filtering UTM policy to the security policy.
Action
SEE ALSO
IN THIS SECTION
Purpose | 132
Action | 132
Purpose
Action
To view content filtering statistics in the CLI, enter the user@host > show security utm content-filtering
statistics command.
The content filtering show statistics command displays the following information:
2. You can click Clear Content filtering statistics to clear all current viewable statistics and begin
collecting new statistics.
Release Description
15.1X49-D100 Starting with Junos OS Release 15.1X49-D100, IPv6 pass-through traffic for HTTP, FTP, SMTP,
POP3, IMAP protocols is supported for Web filtering and Content filtering security features of
UTM.
RELATED DOCUMENTATION
Web Filtering
IN THIS SECTION
The Web filtering lets you to manage Internet usage by preventing access to inappropriate Web content.
There are three types of Web filtering solutions:
• Redirect Web filtering—The redirect Web filtering solution intercepts HTTP and HTTPS requests and
sends them to an external URL filtering server, provided by Websense, to determine whether to
block the requests.
• Local Web filtering—The local Web filtering solution intercepts every HTTP request and the HTTPS
request in a TCP connection. In this case, the decision making is done on the device after it looks up
a URL to determine if it is in the allowlist or blocklist based on its user-defined category.
Local Web filtering does not require a license or a remote category server.
• Enhanced Web filtering—The enhanced Web filtering solution intercepts the HTTP and the HTTPS
requests and sends the HTTP URL or the HTTPS source IP to the Websense ThreatSeeker Cloud
(TSC). The TSC categorizes the URL into one of the 151 or more categories that are predefined and
also provides site reputation information. The TSC further returns the URL category and the site
reputation information to the device. The device determines if it can permit or block the request
based on the information provided by the TSC.
You can bind either Web filtering profiles or antivirus profiles, or both, to a firewall policy. When both
are bound to a firewall policy, Web filtering is applied first, then antivirus is applied. If a URL is blocked
by Web filtering, the TCP connection is closed and no antivirus scanning is necessary. If a URL is
permitted, the content of the transaction is then passed to the antivirus scanning process.
Web filtering supports HTTPS protocol. Web filtering solution uses the IP address of the HTTPS packet
to make blocklist, allowlist, permit, or block decisions.
136
During a block decision, the Web filtering solution does not generate a block page because the clear text
is not available for a HTTPS session. However, the solution terminates the session and sends resets to
the client and the server for the blocked HTTPS sessions.
Web filtering configuration for HTTP is also applicable for the HTTPS sessions.
The sessions-per-client limit CLI command, which imposes a session throttle to prevent a malicious user
from generating large amounts of traffic simultaneously, does not support Web filtering.
Starting with Junos OS Release 15.1X49-D100, IPv6 pass-through traffic for HTTP, HTTPS, FTP, SMTP,
POP3, IMAP protocols is supported for Web filtering and Content filtering security features of UTM.
SNI is an extension of SSL/TLS protocol to indicate what server name the client is contacting over an
HTTPS connection. SNI inserts the actual hostname of the destination server in "Client Hello" message
in clear text format before the SSL handshake is complete. Web filtering includes SNI information in the
query. In this implementation, the SNI includes only the server name, and not the full URL of the server.
Support of SNI enhances the Web filtering feature as using only destination IP address in the query
might lead to inaccurate results, because multiple HTTP servers might share the same host IP address.
With SNI support, Web filtering analyzes the first packet of the HTTPS traffic as a "Client Hello"
message and extracts the server name from the SNI extension, and uses server name along with the
destination IP address to maintain/run the query. If this packet has no SNI extension or if an error is
encountered during parsing, Web filtering reverts to using only destination IP address.
In Web Filtering (EWF), if HTTPS session with SSL forward proxy is enabled, then the Server Name
Indication (SNI) is obtained before Web filtering and used for pre-check query, site-reputation and
category in response. If the cache is enabled, then these responses populates the cache without any
action. EWF extracts the full path and checks if there is a cache. If the full path in the cache is not
matched, then the EWF sends a query.
The SNI functionality is enabled by default for all types of Web filtering, and therefore, no additional
configuration using the CLI is required.
Release Description
15.1X49-D100 Starting with Junos OS Release 15.1X49-D100, IPv6 pass-through traffic for HTTP, HTTPS, FTP,
SMTP, POP3, IMAP protocols is supported for Web filtering and Content filtering security
features of UTM.
137
RELATED DOCUMENTATION
IN THIS SECTION
Example: Configuring Site Reputation Action for Enhanced Web Filtering | 170
Web Filtering provides URL filtering capability by using either a local Websense server or Internet-based
SurfControl server. For more information, see the following topics:
IN THIS SECTION
User Messages and Redirect URLs for Enhanced Web Filtering (EWF) | 138
138
Enhanced Web Filtering (EWF) with Websense is an integrated URL filtering solution. When you enable
the solution on the device, it intercepts the HTTP and the HTTPS requests and sends the HTTP URL or
the HTTPS source IP to the Websense ThreatSeeker Cloud (TSC). The TSC categorizes the URL into one
of the 95 or more categories that are predefined and also provides site reputation information. The TSC
further returns the URL category and the site reputation information to the device. The device
determines if it can permit or block the request based on the information provided by the TSC.
Starting in Junos OS Release 15.1X49-D40 and Junos OS Release 17.3R1, EWF supports HTTPS traffic
by intercepting HTTPS traffic passing through the SRX Series device. The security channel from the
device is divided as one SSL channel between the client and the device and another SSL channel
between the device and the HTTPS server. SSL forward proxy acts as the terminal for both channels and
forwards the cleartext traffic to the UTM. UTM extracts the URL from the HTTP request message.
You can consider the EWF solution as the next-generation URL filtering solution, building upon the
existing Surf-Control solution.
• GET
• POST
• OPTIONS
• HEAD
• PUT
• DELETE
• TRACE
• CONNECT
User Messages and Redirect URLs for Enhanced Web Filtering (EWF)
Starting with Junos OS Release 15.1X49-D110, a new option, custom-message, is added for the custom-
objects command that enables you to configure user messages and redirect URLs to notify users when a
URL is blocked or quarantined for each EWF category. The custom-message option has the following
mandatory attributes:
You configure a user message or redirect URL as a custom object and assign the custom object to an
EWF category.
• User messages indicate that website access has been blocked by an organization's access policy. To
configure a user message, include the type user-message content message-text statement at the [edit
security utm custom-objects custom-message message] hierarchy level.
• Redirect URLs redirect a blocked or quarantined URL to a user-defined URL. To configure a redirect
URL, include the type redirect-url content redirect-url statement at the [edit security utm custom-objects
custom-message message] hierarchy level.
• You can configure a separate custom message or redirect URL for each EWF category.
• The custom-message option allows you to fine-tune messages to support your polices to know which
URL is blocked or quarantined.
Only one custom-message configuration option is applied for each category. The custom-message
configuration is supported only on Enhanced Web Filtering (EWF). Therefore, only the Juniper EWF
engine type is supported.
Starting with Junos OS Release 17.4R1, support for custom category configuration is available for local
and Websense redirect profiles.
SEE ALSO
IN THIS SECTION
User Messages and Redirect URLs for Enhanced Web Filtering (EWF) | 146
140
Web filtering enables you to manage Internet access, preventing access to inappropriate Web content.
The Enhanced Web Filtering (EWF) feature intercepts, scans, and acts upon HTTP or HTTPS traffic in
the following way:
1. The device creates TCP socket connections to the Websense ThreatSeeker Cloud (TSC).
2. The device intercepts an HTTP or an HTTPS connection and extracts URL or hostname or IP address
to perform Web filtering. For an HTTPS connection, EWF is supported through SSL forward proxy.
Starting with Junos OS Release 12.3X48-D25 and Junos OS Release 17.3R1, Enhanced Web Filtering
(EWF) over SSL forward proxy supports HTTPS traffic.
3. The device looks for the URL in the user-configured blocklist or allowlist.
A blocklist or a allowlist action type is a user-defined category in which all the URLs or IP addresses
are always blocked or permitted and optionally logged.
• If the URL is in the user-configured blocklist, the device blocks the URL.
• If the URL is in the user-configured allowlist, the device permits the URL.
4. The device checks the user-defined categories and blocks or permits the URL based on the user-
specified action for the category.
5. The device looks for predefiend category in local cache or from cloud service.
• If the URL is not available in the URL filtering cache, the device sends the URL in HTTP format to
the TSC with a request for categorization. The device uses one of the connections made available
to the TSC to send the request.
• The TSC responds to the device with the categorization and a reputation score.
6. The device performs the following actions based on the identified category:
• If the URL is permitted, the device forwards the HTTP request to the HTTP server.
• If the URL is blocked, the device sends a deny page to the HTTP client and also sends a reset
message to the HTTP server to close the connection
• If the URL is quarantined, the device sends a quarantine page with set-cookie to the HTTP client.
If the client decided to continue, the device permits new request with cookie.
• If the category is configured and the category action is available, the device permits or blocks the
URL based on the category action.
• If the category is not configured, the device permits or blocks the URL based on the global
reputation action.
141
• If the global reputation is not configured, the device permits or blocks the URL based on the
default action configured in the Web filtering profile.
By default, the EWF processes a URL in the order of blocklist, allowlist, custom category, and then
predefined category.
The following items are required to use Enhanced Web Filtering (EWF):
• License key— You need to install a new license to upgrade to the EWF solution.
You can ignore the warning message "requires 'wf_key_websense_ewf' license” because it is
generated by routine EWF license validation check.
A grace period of 30 days, consistent with other UTM features, is provided for the EWF feature after
the license key expires.
This feature requires a license. To understand more about UTM Licensing, see, Understanding UTM
Licensing. Please refer to the Licensing Guide for general information about License Management.
Please refer to the product Data Sheets at SRX Series Services Gateways for details, or contact your
Juniper Account Team or Juniper Partner.
When the grace period for the EWF feature has passed (or if the feature has not been installed), Web
filtering is disabled, all HTTP requests bypass Web filtering, and any connections to the TSC are
disabled. When you install a valid license, the connections to the server are established again.
• The debug command provides the following information to each TCP connection available on the
device:
• TCP connection between a Web client and a webserver—An application identification (APPID)
module is used to identify an HTTP connection. The EWF solution identifies an HTTP connection
after the device receives the first SYN packet. If an HTTP request has to be blocked, EWF sends a
block message from the device to the Web client. EWF further sends a TCP FIN request to the client
and a TCP reset (RST) to the server to disable the connection. The device sends all the messages
through the flow session. The messages follow the entire service chain.
• HTTP request interception—EWF intercepts the first HTTP request on the device and performs URL
filtering on all methods defined in HTTP 1.0 and HTTP 1.1. The device holds the original request
while waiting for a response from the TSC. If the first packet in the HTTP URL is fragmented or if the
device cannot extract the URL for some reason, then the destination IP address is used for the
142
categorization. If you turn on http-reassemble, EWF can recover the whole request from fragment and
get URL.
For HTTP 1.1 persistent connections, the subsequent requests on that session are ignored by the
EWF module.
If the device holds the original request for a long time, then the client will retransmit the request. The
URL filtering code will detect the retransmitted packets. If the original HTTP request has already
been forwarded, then EWF forwards the retransmitted packet to the server. However, if EWF is in
the middle of first-packet processing or makes the calculation to block the session, then the solution
drops the retransmitted packet. A counter tracks the number of retransmitted packets received by
the device.
If the TSC does not respond in time to the categorization request from the device, then the original
client request is blocked or permitted according to the timeout fallback setting.
• HTTPS request interception—Starting with Junos OS 15.1X49-D40 and Junos OS Release 17.3R1,
EWF intercepts HTTPS traffic passing through the SRX Series device. The security channel from the
device is divided as one SSL channel between the client and the device and another SSL channel
between the device and the HTTPS server. SSL forward proxy acts as the terminal for both channels
and forwards the cleartext traffic to the UTM. UTM extracts the URL from the HTTP request
message.
• Blocking message—The blocking message sent to the Web client is user-configurable and is of the
following types:
• The Juniper Networks blocking message is the default message defined in the device that can be
modified by the user. The default blocking message contains the reason why the request is
blocked and the category name (if it is blocked because of a category).
• Syslog message.
For example, if you have set the action for Enhanced_Search_Engines_and_Portals to block, and you
try to access www.example.com, the blocking message is of the following form: Juniper Web
Filtering:Juniper Web Filtering has been set to block this site. CATEGORY:
Enhanced_Search_Engines_and_Portals REASON: BY_PRE_DEFINED . However, the corresponding
syslog message on the device under test (DUT) is: WEBFILTER_URL_BLOCKED: WebFilter:
ACTION="URL Blocked" 56.56.56.2(59418)->74.125.224.48(80)
CATEGORY="Enhanced_Search_Engines_and_Portals" REASON="by predefined category"
PROFILE="web-ewf" URL=www.example.com OBJ=/ .
• Monitoring the Websense server—The URL filtering module uses two methods to determine if the
TSC is active: socket connections and heartbeat. EWF maintains persistent TCP sockets to the TSC.
The server responds with a TCP ACK if it is enabled. EWF sends an application layer NOOP
keepalive to the TSC. If the device does not receive responses to three consecutive NOOP
keepalives in a specific period, it determines the socket to be inactive. The EWF module attempts to
143
open a new connection to the TSC. If all sockets are inactive, the TSC is considered to be inactive.
Therefore an error occurs. The error is displayed and logged. Subsequent requests and pending
requests are either blocked or passed according to the server connectivity fallback setting until new
connections to the TSC are opened again.
• HTTP protocol communication with the TSC—EWF uses the HTTP 1.1 protocol to communicate
with the TSC. This ensures a persistent connection and transmission of multiple HTTP requests
through the same connection. A single HTTP request or response is used for client or server
communication. The TSC can handle queued requests; for optimal performance, an asynchronous
request or response mechanism is used. The requests are sent over TCP, so TCP retransmission is
used to ensure request or response delivery. TCP also ensures that valid in-order, non-retransmitted
HTTP stream data is sent to the HTTP client on the device.
• Responses—The responses adhere to the basic HTTP conventions. Successful responses include a
20x response code (typically 200). An error response includes a 4xx or 5xx code. Error responses in
the 4xx series indicate issues in the custom code. Error responses in the 5xx series indicate issues
with the service.
• 400–Bad request
• 403–Forbidden
• 404–Not found
Errors in the 400 series indicate issues with the request. Errors in the 500 series indicate issues with
the TSC service. Websense is notified of these errors automatically and responds accordingly.
You can configure the default fallback setting to determine whether to pass or block the request:
set security utm feature-profile web-filtering juniper-enhanced profile juniper-enhanced fallback-settings
default ?
The response also contains the site categorization and site reputation information.
• Categories—A category list is available on the device. This list consists of categories, each containing
a category code, a name, and a parent ID. Categories can also be user-defined. Each category
consists of a list of URLs or IP addresses. Categories are not updated dynamically and are tied to the
Junos OS release because they have to be compiled into the Junos OS image. Any update in
categories needs to be synchronized with the Junos OS release cycle.
Starting with Junos OS Release 17.4R1, you can download and dynamically load new EWF
categories. The downloading and dynamic loading of the new EWF categories do not require a
144
software upgrade. Websense occasionally releases new EWF categories. EWF classifies websites into
categories according to host, URL, or IP address and performs filtering based on the categories.
If the category file transfer fails between the primary and secondary devices, then the file transfer
results in an upgrading error and an error log is generated.
During new category file installation, if the category filename is changed, then the new category file
overwrites the old category file in the internal system and all related output information is replaced
with the new category name.
Starting with Junos OS Release 17.4R1, predefined base filters, defined in a category file, are
supported for individual EWF categories. Each EWF category has a default action in a base filter,
which is attached to the user profile to act as a backup filter. If the categories are not configured in
the user profile, then the base filter takes the action.
A base filter is an object that contains a category-action pair for all categories defined in the category
file. A base filter is a structured object, and is defined with the help of a filter name and an array of
category-action pairs.
The following is an example of a base filter with an array of category-action pairs. For the
Enhanced_Adult_Material category, the action is block; for the Enhanced_Blog_Posting category, the
action is permit; and so on.
{
"predefined-filter": [
{
"filter-name": "ewf-default-filter",
"cat-action-table": [
{"name":"Enhanced_Adult_Material","action":"block"},
{"name":"Enhanced_Blog_Posting","action":"permit"},
{"name":"Enhanced_Blog_Commenting","action":"permit"}
]
}
]
}
EWF supports up to 16 base filters. Junos OS Release 17.4R1 also supports online upgradation of
base filters.
If the user profile has the same name as the base filter, then the Web filter uses the wrong profile.
• Caching—Successfully categorized responses are cached on the device. Uncategorized URLs are not
cached. The size of the cache can be configured by the user.
145
• Safe search (HTTP support only, not HTTPS)—A safe-search solution is used to ensure that the
embedded objects, such as images on the URLs received from the search engines, are safe and that
no undesirable content is returned to the client.
A URL is provided to the TSC to provide categorization information. If it is a search URL, the TSC also
returns a safe-search string. For instance, the safe-search string is safe=active. This safe-search string
is appended to the URL, and a redirect response for redirecting the client's query with safe search is
turned on. This ensures that no unsafe content is returned to the client. If the TSC indicates that it
needs to be safe-searched, then you can perform the safe-search redirect.
For example, the client makes a request to the URL https://www.google.com/search?q=test, which is
permitted by EWF profile. On packet mode, the EWF on the DUT will generate a HTTP 302
response, with the redirect URL: https://www.google.com/search?q=test&safe=active. This response
returns to the client. The client now sends out a safe redirect request to this URL. On stream mode,
the EWF on the DUT rewrites the URL to https://www.google.com/search?q=test&safe=active and
forwards it.
NOTE: Safe-search redirect supports HTTP only. You cannot extract the URL for HTTPS.
Therefore it is not possible to generate a redirect response for HTTPS search URLs. Safe-
search redirects can be disabled by using the CLI option no-safe-search.
• Site reputation—The TSC provides site reputation information. Based on these reputations, you can
choose a block or a permit action. If the URL is not handled by a allowlist or a blocklist and does not
fall in a user or predefined category, then the reputation can be used to perform a URL filtering
decision.
Starting with Junos OS Release 17.4R1, the reputation base scores are configurable. Users can apply
global reputation values, provided by the Websense ThreatSeeker Cloud (TSC). For the non-category
URLs, the global reputation value is used to perform filtering,
The device maintains a log for URLs that are blocked or permitted based on site reputation scores.
146
• Profiles—A URL filtering profile is defined as a list of categories, with each profile having an action
type (permit, log-and-permit, block, quarantine) associated with it. A predefined profile, junos-wf-
enhanced-default, is provided to users if they choose not to define their own profile.
You can also define an action based on site reputations in a profile to specify the action when the
incoming URL does not belong to any of the categories defined in the profile. If you do not configure
the site reputation handling information, then you can define a default action. All URLs that do not
have a defined category or defined reputation action in their profile will be blocked, permitted,
logged-and-permitted, or quarantined depending on the block or permit handling for the default
action explicitly defined in the profile. If you do not specify a default action, then the URLs will be
permitted. For search engine requests, if there is no explicit user-defined configuration, and the URL
request is without the safe-search option, then EWF generates a redirect response and sends it to
the client. The client will generate a new search request with the safe-search option enabled.
• Multiple user-defined and predefined categories, each with a permit or block action
• Multiple site reputation handling categories, each with a permit or block action
The order of search is blocklist, allowlist, user-defined category, predefined category, safe-search, site
reputation, and default action.
User Messages and Redirect URLs for Enhanced Web Filtering (EWF)
Starting with Junos OS Release 15.1X49-D110, a new option, custom-message, is added for the custom-
objects statement that enables you to configure user messages and redirect URLs to notify users when a
URL is blocked or quarantined for each EWF category. The custom-message option has the following
mandatory attributes:
• Content: Content of the custom message; maximum length is 1024 ASCII characters.
You configure a user message or redirect URL as a custom object and assign the custom object to an
EWF category.
• User messages indicate that website access has been blocked by an organization's access policy. To
configure a user message, include the type user-message content message-text statement at the [edit
security utm custom-objects custom-message message] hierarchy level.
147
• Redirect URLs redirect a blocked or quarantined URL to a user-defined URL. To configure a redirect
URL, include the type redirect-url content redirect-url statement at the [edit security utm custom-objects
custom-message message] hierarchy level.
• You can configure a separate custom message or redirect URL for each EWF category.
• The custom-message option allows you to fine-tune messages to support your polices to know which
URL is blocked or quarantined.
Only one custom-message configuration option is applied for each category. The custom-message
configuration is supported only on Enhanced Web Filtering (EWF). Therefore, only the Juniper EWF
engine type is supported.
Starting with Junos OS Release 17.4R1, support for custom category configuration is available for local
and Websense redirect profiles.
SEE ALSO
You can download and dynamically load new Enhanced Web Filtering (EWF) categories without any
software upgrade. The predefined base filters defined in a category file are supported for individual EWF
categories.
1. Configure UTM custom objects for the UTM features. Set the interval, set the start time, and enter
the URL of category package download:
user@host# set security utm custom-objects category-package automatic route-instance VRF url
https://update.juniper-updates.net/EWF
2. Configure the predefined base filters. Each EWF category has a default action in a base filter, which is
attached to the user profile to act as a backup filter. If the categories are not configured in the user
profile, then the base filter takes the action. You can also upgrade the base filters online.
category-package{
automatic{
interval 60;
enable;
start-time "2017-09-05.08.08.08";
}
route-instance VRF;
url https://update.juniper-updates.net/EWF;
}
server {
host rp.cloud.threatseeker.com;
}
sockets 8;
profile ewf_p1 {
+ base-filter gov-filter;
default log-and-permit;
timeout 15;
149
}
+reputation {
reputation-very-safe 90;
reputation-moderately-safe 80;
reputation-fairly-safe 70;
reputation-suspicious 60;
}
SEE ALSO
IN THIS SECTION
Requirements | 150
Overview | 150
Configuration | 152
Verification | 164
This example shows how to configure Enhanced Web filtering (EWF) for managing website access. This
feature is supported on all SRX Series devices. The EWF solution intercepts HTTP and the HTTPS
requests and sends the HTTP URL or the HTTPS source IP to the Websense ThreatSeeker Cloud (TSC).
The TSC categorizes the URL into one of the 151 or more predefined categories and also provides site
reputation information. The TSC further returns the URL category and the site reputation information to
the device. The SRX Series device determines whether it can permit or block the request based on the
information provided by the TSC.
150
Requirements
This example uses the following hardware and software components:
• SRX5600 device
Before you begin, you should be familiar with Web filtering and Enhanced Web filtering (EWF). See
"Web Filtering Overview" on page 135 and "Understanding Enhanced Web Filtering Process" on page
139.
Overview
Web filtering is used to monitor and control how users access the website over HTTP and HTTPS. In this
example, you configure a URL pattern list (allowlist) of URLs or addresses that you want to bypass. After
you create the URL pattern list, define the custom objects. After defining the custom objects, you apply
them to feature profiles to define the activity on each profile, apply the feature profile to the UTM
policy, and finally attach the Web filtering UTM policies to the security policies. Table 3 on page 150
shows information about EWF configuration type, steps, and parameters used in this example.
Table 3: Enhanced Web filtering (EWF) Configuration Type, Steps, and Parameters
URL pattern and custom objects Configure a URL pattern list • [http://www.example.net
(allowlist) of URLs or addresses that 1.2.3.4]
you want to bypass.
• value urllist3
Create a custom object called
urllist3 that contains the pattern • http://www.untrusted.com
http://www.example.net 1.2.3.4
• http://www.trusted.com
Table 3: Enhanced Web filtering (EWF) Configuration Type, Steps, and Parameters (Continued)
• site-reputation-action:
• very-safe permit
152
Table 3: Enhanced Web filtering (EWF) Configuration Type, Steps, and Parameters (Continued)
• fallback-settings:
• server-connectivity block
• timeout block
• too-many-requests block
• quarantine-custom-message “**The
requested webpage is blocked by
your organization's access
policy**”.
• quarantine-message url
besgas.spglab.example.net
• ewf_my_profile-default:
• timeout 10
• no-safe-search
Configuration
IN THIS SECTION
Configuring Enhanced Web Filtering Custom Objects and URL Patterns | 153
This example shows how to configure custom URL patterns, custom objects, feature profiles, and
security policies.
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Starting with Junos OS Release 15.1X49-D110, the “* “ in a wildcard syntax, required to create URL
pattern for Web filtering profile, matches all subdomains. For example, *.example.net matches:
• http://a.example.net
• http://example.net
• a.b.example.net
A custom category does not take precedence over a predefined category when it has the same name as
one of the predefined categories. Do not use the same name for a custom category that you have used
for a predefined category.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
1. Configure a URL pattern list (allowlist) of URLs or addresses that you want to bypass. After you
create the URL pattern list, you create a custom URL category list and add the pattern list to it.
154
Configure a URL pattern list custom object by creating the list name and adding values to it as
follows:
NOTE: Because you use URL pattern lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure custom URL category lists.
NOTE: The guideline to use a URL pattern wildcard is as follows: Use \*\.[]\?* and precede all
wildcard URLs with http://. You can use “*” only if it is at the beginning of the URL and is
followed by “.”. You can use “?” only at the end of the URL.
The following wildcard syntaxes are supported: http://*.example.net, http://www.example.ne?,
http://www.example.n??. The following wildcard syntaxes are not supported: *.example.???,
http://*example.net, http://?.
2. Create a custom object called urllist3 that contains the pattern http://www.example.net and then add
the urllist3 custom object to the custom URL category custurl3.
4. Configure the custom URL category list custom object by using the URL pattern list of untrusted and
trusted sites.
Results
From configuration mode, confirm your configuration by entering the show security utm custom-objects
command. If the output does not display the intended configuration, repeat the instructions in this
example to correct.
[edit]
userhost#show security utm custom-objects
url-pattern {
urllist3 {
value [ 1.2.3.4 http://www.example.net ];
}
urllistblack {
value [ 13.13.13.13 http://www.untrusted.com ];
}
urllistwhite {
value [ 11.11.11.11 http://www.trusted.com ];
}
}
custom-url-category {
custurl3 {
value urllist3;
}
custblacklist {
value urllistblack;
}
custwhiltelist {
value urllistwhite;
}
}
If you are done configuring the device, enter commit from configuration mode.
156
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Starting in Junos OS Release 12.3X48-D25, new CLI options are available. The http-reassemble and http-
persist options are added in the show security utm feature-profile web-filtering command.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
1. Configure the Web filtering URL blocklist, URL allowlist, and the Web filtering engine.
2. Set the cache size and cache timeout parameters for the configured EWF engine.
3. Set the server name or IP address and the port number for communicating with the server. The
default host value in the system is rp.cloud.threatseeker.com.
4. Set the http-reassemble statement to reassemble the requested packet and the http-persist statement
to check every HTTP request packet in the same session. If the http-reassemble statement is not
configured for cleartext HTTP traffic, then EWF does not reassemble the fragmented HTTP request
to avoid incomplete parsing in the packet-based inspection. If the http-persist statement is not
configured for cleartext HTTP traffic, then EWF does not check every HTTP request packet in the
same session.
5. Create a profile name, and select a category from the included allowlist and blocklist categories.
6. Specify the action to be taken depending on the site reputation returned for the URL if there is no
category match found.
8. Define a redirect URL server so that instead of the device sending a block page with plain text
HTML, the device will send an HTTP 302 redirect to this redirect server with some special variables
embedded in the HTTP redirect location field. These special variables can be parsed by the redirect
server and serve a special block page to the client with rich images and formatting.
If you configure the security utm feature-profile web-filtering juniper-enhanced profile ewf_my_profile
block-message statement, then the default block message configuration takes precedence over the
security utm feature-profile web-filtering juniper-enhanced profile ewf_my_profile custom-block-message
configuration.
9. Specify a default action (permit, log and permit, block, or quarantine) for the profile, when no other
explicitly configured action (blocklist, allowlist, custom category, predefined category actions, or
site reputation actions) is matched .
10. Configure the fallback settings (block or log and permit) for this profile.
11. Enter a timeout value in seconds. When this limit is reached, fallback settings are applied. This
example sets the timeout value to 10. You can also disable the safe-search functionality. By default,
search requests have safe-search strings attached to them, and a redirect response is sent to ensure
that all search requests are safe or strict.
NOTE: The timeout value range for SRX210, SRX220, SRX240, SRX300, SRX320, SRX345,
SRX380, SRX550, SRX1500, SRX4100, and SRX4200 is 0 through 1800 seconds and the
default value is 15 seconds. The timeout value range for SRX3400 and SRX3600 is 1
through 120 seconds and the default value is 3 seconds.
12. Configure a UTM policy (mypolicy) for the Web-filtering HTTP protocol, associating ewf_my_profile
to the UTM policy, and attach this policy to a security profile to implement it.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
command. If the output does not display the intended configuration, repeat the instructions in this
example to correct.
[edit]
user@host# show security utm
feature-profile{
web-filtering {
url-whitelist custwhitelist{
url-blacklist custblacklist;
http-reassemble;
http-persist;
juniper-enhanced;
juniper-enhanced {
161
cache {
timeout 1800;
size 500;
}
server {
host rp.cloud.threatseeker.com;
port 80;
}
profile ewf_my_profile {
category {
Enhanced_Hacking {
action log-and-permit;
}
Enhanced_Government {
action quarantine;
}
}
site-reputation-action {
very-safe permit;
moderately-safe log-and-permit;
fairly-safe log-and-permit;
harmful block;
suspicious block;
}
default block;
custom-block-message "***access denied ***";
fallback-settings {
default block;
server-connectivity block;
timeout block;
too-many-requests block;
}
timeout 10;
no-safe-search;
}
utm-policy mypolicy {
web-filtering {
http-profile ewf_my_profile;
}
}
}
If you are done configuring the device, enter commit from configuration mode.
162
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
set security policies from-zone trust to-zone untrust policy sec_policy match source-address any
set security policies from-zone trust to-zone untrust policy sec_policy match destination-
address any
set security policies from-zone trust to-zone untrust policy sec_policy match application any
set security policies from-zone trust to-zone untrust policy sec_policy then permit application-
services utm-policy mypolicy
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
[edit]
user@host# set security policies from-zone trust to-zone untrust policy sec_policy
Results
From configuration mode, confirm your configuration by entering the show security policies command. If
the output does not display the intended configuration, repeat the configuration instructions in this
example to correct it.
[edit]
user@host# show security policies
from-zone trust to-zone untrust {
sec_policy {
match {
source-address any;
destination-address any;
application any;
}
then {
permit {
application-services {
utm-policy mypolicy;
}
}
}
}
}
default-policy {
permit-all;
}
After you are done configuring the device, enter commit from configuration mode.
164
Verification
IN THIS SECTION
Verifying That the Web Filtering UTM Policy Is Attached to the Security Policy | 166
Purpose
Action
From the top of the configuration in operational mode, enter the show security utm web-filtering status
command.
Meaning
The command output shows that the Web filtering server connection is up.
Purpose
Verify the increase in Web filtering statistics. The initial counter value is 0; if there is an HTTP request
URL hit, then there is a increase in the Web filtering statistics.
165
Action
From the top of the configuration in operational mode, enter the show security utm web-filtering statistics
command.
Too-many-requests 0 0
Meaning
The output displays Web filtering statistics for connections including allowlist and blocklist hits and
custom category hits. If there is an HTTP request URL hit, then there is a increase in the Web filtering
statistics from an earlier value.
Verifying That the Web Filtering UTM Policy Is Attached to the Security Policy
Purpose
Verify that the Web filtering UTM policy mypolicy is attached to the security policy sec_policy.
Action
Meaning
The output displays a summary of all security policies configured on the device. If a particular policy is
specified, it displays information specific to that policy. If UTM is enabled, then mypolicy is attached to
sec_policy.
167
SEE ALSO
IN THIS SECTION
User Messages and Redirect URLs for Enhanced Web Filtering (EWF) | 169
UTM Enhanced Web Filtering supports block, log-and-permit, and permit actions for HTTP/HTTPS
requests. In addition to this, UTM Enhanced Web Filtering now supports the quarantine action which
allows or denies access to the blocked site based on the user’s response to the message.
The following sequence explains how the HTTP or HTTPs request is intercepted, redirected, and acted
upon by the quarantine action:
• The device intercepts the HTTP request and sends the extracted URL to the Websense Thread
Seeker Cloud (TSC).
• The TSC returns the URL category and the site reputation information to the device.
• If the action configured for the category is quarantine, the device logs the quarantine action and
sends a redirect response to HTTP client.
• The device shows a warning message stating that the access to the URL is blocked according to the
organization’s security policies and prompts the user to respond.
• If the user response is “No,” the session is terminated. If the user response is “Yes,” the user is allowed
access to the site and such access is logged and reported to the administrator.
NOTE: The quarantine action is supported only for UTM Enhanced Web Filtering or Juniper
enhanced type of Web filtering.
168
Quarantine Message
The quarantine message sent to the HTTP client is user-configurable and is of the following types:
• Default message
The default quarantine message is displayed when a user attempts to access a quarantined website
and it contains the following information:
• URL name
• Quarantine reason
For example, if you have set the action for Enhanced_Search_Engines_and_Portals to quarantine, and
you try to access www.search.example.com, the quarantine message is as follows:
• Syslog message.
The syslog message will be logged by the system when the user access the web page that has already
been quarantined and marked as block or permit.
Starting in Junos OS 12.1X47-D40 and Junos OS Release 17.3R1, the structured log fields have
changed. The structured log field changes in the UTM Web filter logs WEBFILTER_URL_BLOCKED,
WEBFILTER_URL_REDIRECTED, and WEBFILTER_URL_PERMITTED are as follows:
User Messages and Redirect URLs for Enhanced Web Filtering (EWF)
Starting with Junos OS Release 15.1X49-D110, a new option, custom-message, is added for the custom-
objects statement that enables you to configure user messages and redirect URLs to notify users when a
URL is blocked or quarantined for each EWF category. The custom-message option has the following
mandatory attributes:
• Content: Content of the custom message; maximum length is 1024 ASCII characters.
You configure a user message or redirect URL as a custom object and assign the custom object to an
EWF category.
• User messages indicate that website access has been blocked by an organization's access policy. To
configure a user message, include the type user-message content message-text statement at the [edit
security utm custom-objects custom-message message] hierarchy level.
• Redirect URLs redirect a blocked or quarantined URL to a user-defined URL. To configure a redirect
URL, include the type redirect-url content redirect-url statement at the [edit security utm custom-objects
custom-message message] hierarchy level.
• You can configure a separate custom message or redirect URL for each EWF category.
• The custom-message option enables you to fine-tune messages to support your polices to know which
URL is blocked or quarantined.
• Only one custom-message configuration option is applied for each category. The custom-message
configuration is supported only on Enhanced Web Filtering (EWF). Therefore, only the Juniper EWF
engine type is supported.
Starting with Junos OS Release 17.4R1, support for custom category configuration is available for local
and Websense redirect profiles.
SEE ALSO
IN THIS SECTION
Requirements | 170
Overview | 170
Configuration | 171
Verification | 175
This example shows how to configure the site reputation action for both categorized and uncategorized
URLs.
Requirements
Before you begin, you should be familiar with Web Filtering and Enhanced Web Filtering. See "Web
Filtering Overview" on page 135 and "Understanding Enhanced Web Filtering Process" on page 139.
Overview
In this example, you configure Web Filtering profiles to URLs according to defined categories using the
site reputation action. You set the URL allowlist filtering category to url-cat-white and the type of Web
Filtering engine to juniper-enhanced. Then you set the cache size parameters for Web Filtering and the
cache timeout parameters to 1.
Then you create a juniper-enhanced profile called profile ewf-test-profile, set the URL allowlist category to
cust-cat-quarantine, and set the reputation action to quarantine.
You enter a custom message to be sent when HTTP requests are quarantined. In this example, the
following message is sent: The requested webpage is blocked by your organization's access policy.
You block URLs in the Enhanced_News_and_Media category and permit URLs in the
Enhanced_Education category. Then you quarantine the URLs in the Enhanced_Streaming_Media
category and configure the device to send the following message: The requested webpage is blocked by your
organization's access policy.
In this example, you set the default action to permit. You select fallback settings (block or log-and-
permit) for this profile in case errors occur in each configured category. Finally, you set the fallback
settings to block.
171
Configuration
IN THIS SECTION
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
policy***”.
set security utm feature-profile web-filtering juniper-enhanced profile ewf-test-profile
fallback-settings server-connectivity block
set security utm feature-profile web-filtering juniper-enhanced profile ewf-test-profile
fallback-settings timeout block
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
2. Specify the Enhanced Web Filtering engine, and set the cache size parameters.
5. Create a profile name, and select a category from the allowlist categories.
6. Create a profile name, and select a category from the allowlist categories.
8. Select a default action (permit, log-and-permit, block, or quarantine) for the profile, when no other
explicitly configured action (blocklist, allowlist, custom category, predefined category or site
reputation ) is matched .
connectivity block
user@host# set juniper-enhanced profile ewf-test-profile fallback-settings timeout block
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the instructions in this example to correct.
[edit]
user@host# show security utm
feature-profile{
web-filtering {
url-whitelist url-cat-white;
type juniper-enhanced;
traceoptions;
flag all;
}
juniper-enhanced {
reputation {
reputation-very-safe 85
reputation-moderately-safe 75
reputation-fairly-safe 65
reputation-suspicious 55
cache {
timeout 1
}
profile ewf-test-profile {
category {
cust-cat-quarantine {
action quarantine;
}
Enhanced_News_and_Media {
action block;
reputation-action;
}
Enhanced_Education {
action permit;
reputation-action;
{
harmful block;
}
175
}
Enhanced_Streaming_Media {
action quarantine;
}
}
default permit;
quarantine-custom-message "***The requested webpage is blocked by your organization's
access policy***".
fallback-settings {
server-connectivity block;
timeout block;
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show security utm status command.
Sample Output
command-name
Purpose
Action
From operational mode, enter the show security utm session command.
Sample Output
command-name
Purpose
Action
From operational mode, enter the show security utm web-filtering status command.
Sample Output
command-name
Purpose
Verify the Web filtering statistics for connections including allowlist and blocklist hits and custom
category hits.
Action
From operational mode, enter the show security utm web-filtering statistics command.
Sample Output
command-name
Purpose
Verify the blocked and allowed URL status using log file.
Action
To see blocked and allowed URLs, send the utm logs to a syslog server using stream mode. For more
information see: Configuring Off-Box Binary Security Log Files.
From operational mode, enter the show log messages | match RT_UTM command.
179
Sample Output
command-name
SEE ALSO
Allowlist | 24
In TAP mode, an SRX Series device will be connected to a mirror port of the switch, which provides a
copy of the traffic traversing the switch. An SRX Series device in TAP mode processes the incoming
traffic from TAP interface and generates security log to display the information on threats detected,
application usage, and user details.
Starting in Junos OS Release 19.1R1 you can enable TAP mode on UTM module. When you enable TAP
mode on UTM module, the SRX Series device inspects the incoming and outgoing traffic that matches a
firewall policy or policies with the enabled UTM service. TAP mode can’t block traffic but generates
security logs, reports, and statistics to show the number of threats detected, application usage, and user
details. If some packet gets lost in the TAP interface, the UTM terminates the connection, and the TAP
mode do not generate any security logs, reports, and statistics for this connection. The UTM
configuration remains the same as non-TAP mode.
UTM functionality configured on an SRX Series device continues to work and exchange information
from the server. To use UTM functionality when the SRX Series device is configured in TAP mode, you
must configure the DNS server to resolve the cloud server’s IP addresses.
To use TAP mode, the SRX device will be connected to a mirror port of the switch, which provides a
copy of the traffic traversing the switch. SRX Series device process the incoming traffic from TAP
interface and generates security log information to display the information on threats detected,
application usage, and user details.
SEE ALSO
Release Description
17.4R1 Starting with Junos OS Release 17.4R1, support for custom category configuration is available for
local and Websense redirect profiles.
17.4R1 Starting with Junos OS Release 17.4R1, you can download and dynamically load new EWF
categories. The downloading and dynamic loading of the new EWF categories do not require a
software upgrade. Websense occasionally releases new EWF categories. EWF classifies websites
into categories according to host, URL, or IP address and performs filtering based on the
categories.
17.4R1 Starting with Junos OS Release 17.4R1, predefined base filters, defined in a category file, are
supported for individual EWF categories. Each EWF category has a default action in a base filter,
which is attached to the user profile to act as a backup filter. If the categories are not configured
in the user profile, then the base filter takes the action.
17.4R1 Starting with Junos OS Release 17.4R1, the reputation base scores are configurable. Users can
apply global reputation values, provided by the Websense ThreatSeeker Cloud (TSC). For the non-
category URLs, the global reputation value is used to perform filtering,
17.4R1 Starting with Junos OS Release 17.4R1, support for custom category configuration is available for
local and Websense redirect profiles.
17.4R1 Starting with Junos OS Release 17.4R1, support for custom category configuration is available for
local and Websense redirect profiles.
15.1X49-D40 Starting in Junos OS Release 15.1X49-D40 and Junos OS Release 17.3R1, EWF supports HTTPS
traffic by intercepting HTTPS traffic passing through the SRX Series device.
181
15.1X49-D40 Starting with Junos OS 15.1X49-D40 and Junos OS Release 17.3R1, EWF intercepts HTTPS
traffic passing through the SRX Series device. The security channel from the device is divided as
one SSL channel between the client and the device and another SSL channel between the device
and the HTTPS server. SSL forward proxy acts as the terminal for both channels and forwards the
cleartext traffic to the UTM. UTM extracts the URL from the HTTP request message.
15.1X49- Starting with Junos OS Release 15.1X49-D110, a new option, custom-message, is added for the
D110 custom-objects command that enables you to configure user messages and redirect URLs to notify
users when a URL is blocked or quarantined for each EWF category.
15.1X49- Starting with Junos OS Release 15.1X49-D110, a new option, custom-message, is added for the
D110 custom-objects statement that enables you to configure user messages and redirect URLs to notify
users when a URL is blocked or quarantined for each EWF category.
15.1X49- Starting with Junos OS Release 15.1X49-D110, the “* “ in a wildcard syntax, required to create
D110 URL pattern for Web filtering profile, matches all subdomains.
15.1X49- Starting with Junos OS Release 15.1X49-D110, a new option, custom-message, is added for the
D110 custom-objects statement that enables you to configure user messages and redirect URLs to notify
users when a URL is blocked or quarantined for each EWF category.
12.3X48-D25 Starting with Junos OS Release 12.3X48-D25 and Junos OS Release 17.3R1, Enhanced Web
Filtering (EWF) over SSL forward proxy supports HTTPS traffic.
12.1X47-D40 Starting in Junos OS 12.1X47-D40 and Junos OS Release 17.3R1, the structured log fields have
changed.
RELATED DOCUMENTATION
IN THIS SECTION
The Web filtering lets you to manage Internet usage by preventing access to inappropriate Web content.
There are four types of Web filtering solutions. For more information, see the following topics:
IN THIS SECTION
Local web filtering allows you to define custom URL categories, which can be included in blocklists and
allowlists that are evaluated on the SRX Series device. All URLs for each category in a blocklist are
denied, while all URLs for each category in a allowlist are permitted.
With local Web filtering, a firewall intercepts every HTTP request in a TCP connection and extracts the
URL. A decision is made by the device after it looks up a URL to determine whether it is in the allowlist
or blocklist based on its user-defined category. A URL is first compared to the blocklist URLs. If a match
is found, the request is blocked. If no match is found, the URL is compared to the allowlist. If a match is
found, the request is permitted. If the URL is not in either list, the custom category is taken (block, log-
and-permit, or permit). If the URL is not in custom category, the defined default action is taken (block,
log-and-permit, or permit). You can permit or block access to a requested site by binding a Web filtering
183
profile to a firewall policy. Local Web filtering provides basic Web filtering without requiring an
additional license or external category server.
The following section describes on how Web traffic is intercepted and acted upon by the Web filtering
module.
3. The device extracts each URL in the HTTP request and checks its URL against the user-defined
allowlist and blocklist.
4. If the URL is found in the blocklist, the request is not permitted and a deny page is sent to the http
client. If the URL is found in the allowlist, the request is permitted.
5. If the URL is not found in the allowlist or blocklist, the configured default fallback action is applied. If
no fallback action is defined, then the request is permitted.
To perform local Web filtering, you must define a blocklist and allowlist content that can be applied to
the profile.
When defining your own URL categories, you can group URLs and create categories specific to your
needs. Each category can have a maximum of 20 URLs. When you create a category, you can add either
the URL or the IP address of a site. When you add a URL to a user-defined category, the device
performs DNS lookup, resolves the hostname into IP addresses, and caches this information. When a
user tries to access a site with the IP address of the site, the device checks the cached list of IP
addresses and tries to resolve the hostname. Many sites have dynamic IP addresses, meaning that their
IP addresses change periodically. A user attempting to access a site can type an IP address that is not in
the cached list on the device. Therefore, if you know the IP addresses of sites you are adding to a
category, enter both the URL and the IP address(es) of the site.
You define your own categories using URL pattern list and custom URL category list custom objects.
Once defined, you assign your categories to the global user-defined url-blocklist (block) or url-allowlist
(permit) categories.
Web filtering is performed on all the methods defined in HTTP 1.0 and HTTP 1.1.
184
You configure Web filtering profiles that permit or block URLs according to defined custom categories. A
Web filtering profile consists of a group of URL categories assigned one of the following actions:
• Blocklist — The device always blocks access to the websites in this list. Only user-defined categories
are used with local Web filtering.
• Allowlist — The device always allows access to the websites in this list. Only user-defined categories
are used with local Web filtering.
A Web filtering profile can contain one blocklist or one allowlist with multiple user-defined categories
each with a permit or block action. You can define a default fallback action when the incoming URL does
not belong to any of the categories defined in the profile. If the action for the default category is block,
the incoming URL is blocked if it does not match any of the categories explicitly defined in the profile. If
an action for the default action is not specified, the default action of permit is applied to the incoming
URL not matching any category.
Starting with Junos OS Release 17.4R1, custom category configuration is supported for local Web
filtering. The custom-message option is also supported in a category for local Web filtering and Websense
redirect profiles. Users can create multiple URL lists (custom categories) and apply them to a UTM Web
filtering profile with actions such as permit, permit and log, block, and quarantine. To create a global
allowlist or blocklist, apply a local Web filtering profile to a UTM policy and attach it to a global rule.
Starting with Junos OS Release 17.4R1, a new option, custom-message, is added for the custom-objects
statement that enables you to configure user messages and redirect URLs to notify users when a URL is
blocked or quarantined for each EWF category. The custom-message option has the following mandatory
attributes:
• Content: Content of the custom message; maximum length is 1024 ASCII characters.
You configure a user message or redirect URL as a custom object and assign the custom object to an
EWF category.
• User messages indicate that website access has been blocked by an organization's access policy. To
configure a user message, include the type user-message content message-text statement at the [edit
security utm custom-objects custom-message message] hierarchy level.
185
• Redirect URLs redirect a blocked or quarantined URL to a user-defined URL. To configure a redirect
URL, include the type redirect-url content redirect-url statement at the [edit security utm custom-objects
custom-message message] hierarchy level.
• You can configure a separate custom message or redirect URL for each EWF category.
• The custom-message option enables you to fine-tune messages to support your polices to know which
URL is blocked or quarantined.
When a profile employs several categories for URL matching, those categories are checked for matches
in the following order:
1. If present, the global blocklist is checked first. If a match is made, the URL is blocked. If no match is
found...
2. The global allowlist is checked next. If a match is made, the URL is permitted. If no match is found...
3. User-defined categories are checked next. If a match is made, the URL is blocked or permitted as
specified.
SEE ALSO
IN THIS SECTION
Requirements | 186
Overview | 186
Configuration | 188
Verification | 197
186
This example shows how to configure local Web filtering for managing website access.
Requirements
This example uses the following hardware and software components:
• SRX1500 device
Before you begin, learn more about Web filtering. See "Web Filtering Overview" on page 135.
Overview
In this example you configure local Web filtering custom objects, local Web filtering feature profiles, and
local Web filtering UTM policies. You also attach local Web filtering UTM policies to security policies.
Table 4 on page 186 shows information about local Web filtering configuration type, steps, and
parameters used in this example.
URL pattern and custom objects Configure a URL pattern list of • [http://www.example1.net
URLs or addresses that you want to 192.0.2.0]
bypass.
• [http://www.example2.net
Create a custom object called
192.0.2.3]
urllis1 that contains the pattern
[http://www.example1.net • [http://www.example3.net
192.0.2.0] 192.0.2.9]
Table 4: Local Web filtering Configuration Type, Steps, and Parameters (Continued)
Table 4: Local Web filtering Configuration Type, Steps, and Parameters (Continued)
• log-and-permit
UTM policies Create the UTM policy utmp5 and • utm policy utmp5
attach it to the profile localprofile1.
In the final configuration example, • policy p5
attach the UTM policy utmp5 to
the security policy p5.
Configuration
IN THIS SECTION
Configuring Local Web Filtering Custom Objects and URL Patterns | 189
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Starting in Junos OS Release 15.1X49-D110, the “* “ in a wildcard syntax, used for URL pattern Web
filtering profile, matches all subdomains. For example, *.example.net matches:
• http://a.example.net
• http://example.net
• aaa.example.net
Step-by-Step Procedure
1. Configure a URL pattern list custom object by creating the list name and adding values to it as
follows:
190
NOTE: Because you use URL pattern lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure custom URL category lists.
[edit]
user@host# set security utm custom-objects url-pattern urllist1 value [http://
www.example1.net 192.0.2.0]
user@host# set security utm custom-objects url-pattern urllist2 value [http://
www.example2.net 192.0.2.3]
user@host# set security utm custom-objects url-pattern urllist3 value [http://
www.example3.net 192.0.2.9]
user@host# set security utm custom-objects url-pattern urllist4 value [http://
www.example4.net 192.0.2.8]
NOTE:
• The guideline to use a URL pattern wildcard is as follows: Use \*\.[]\?* and precede all
wildcard URLs with http://. You can use “*” only if it is at the beginning of the URL and is
followed by “.”. You can use “?” only at the end of the URL.
[edit]
user@host# set security utm custom-objects custom-url-category cust-black-list value urllist1
user@host# set security utm custom-objects custom-url-category cust-permit-list value
urllist2
user@host# set security utm custom-objects custom-url-category custurl3 value urllist3
user@host# set security utm custom-objects custom-url-category custurl4 value urllist4
191
Results
From configuration mode, confirm your configuration by entering the show security utm custom-objects
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
userhost#show security utm custom-objects
url-pattern {
urllist1 {
value [ http://www.example1.net 192.0.2.0 ];
}
urllist2 {
value [ http://www.example2.net 192.0.2.3 ];
}
urllist3 {
value [ http://www.example3.net 192.0.2.9 ];
}
urllist4 {
value [ http://www.example4.net 192.0.2.8 ];
}
}
custom-url-category {
cust-black-list {
value urllist1;
}
cust-permit-list {
value urllist2;
}
custurl3 {
value urllist3;
}
custurl4 {
value urllist4;
}
}
If you are done configuring the device, enter commit from configuration mode.
192
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
1. Configure the Web filtering URL blocklist, URL allowlist, and the Web filtering engine.
2. Create a profile name, and select a category from the included permit and blocklist categories. The
custom category action could be block, permit, log-and-permit, and quarantine.
3. Define a redirect URL server so that instead of the device sending a block page with plain text HTML,
the device send an HTTP 302 redirect to this redirect server with special variables embedded in the
HTTP redirect location field. These special variables are parsed by the redirect server and serve as a
special block page to the client with images and a clear text format.
5. Specify a default action (permit, log and permit, block, or quarantine) for the profile, when no other
explicitly configured action (blocklist, allowlist, custom category, predefined category actions, or site
reputation actions) is matched .
6. Configure fallback settings (block or log and permit) for this profile.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
userhost#show security utm feature-profile
web-filtering {
url-whitelist custurl3;
url-blacklist custurl4;
type juniper-local;
juniper-local {
profile localprofile1 {
default log-and-permit;
category {
cust-black-list {
action block;
}
cust-permit-list {
action log-and-permit;
}
}
custom-block-message "Access to this site is not permitted.";
block-message {
type custom-redirect-url;
url http://192.0.2.10;
}
fallback-settings {
default block;
too-many-requests block;
}
}
}
}
195
}
}
If you are done configuring the device, enter commit from configuration mode.
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
1. Create the UTM policy referencing a profile. Apply the Web filtering profile to the UTM policy.
[edit]
user@host# set security utm utm-policy utmp5 web-filtering http-profile localprofile1
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
For brevity, this show command output includes only the configuration that is relevant to this example.
Any other configuration on the system has been replaced with ellipses (...).
[edit]
userhost# show security utm
utm-policy utmp5 {
web-filtering {
196
http-profile localprofile1;
}
}
If you are done configuring the device, enter commit from configuration mode.
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
set security policies from-zone trust to-zone untrust policy p5 match source-address any
set security policies from-zone trust to-zone untrust policy p5 match destination-address any
set security policies from-zone trust to-zone untrust policy p5 match application junos-http
set security policies from-zone trust to-zone untrust policy p5 then permit application-services
utm-policy utmp5
Step-by-Step Procedure
Results
From configuration mode, confirm your configuration by entering the show security policies command. If
the output does not display the intended configuration, repeat the configuration instructions in this
example to correct it.
[edit]
userhost# show security policies
from-zone trust to-zone untrust {
policy p5 {
match {
source-address any;
destination-address any;
application junos-http;
}
then {
permit {
application-services {
utm-policy utmp5;
}
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
To confirm that the configuration is working properly, perform the following task:
198
Purpose
Verify the Web filtering statistics for connections including allowlist and blocklist hits and custom
category hits.
Action
From operational mode, enter the show security utm web-filtering statistics command.
Sample Output
command-name
SEE ALSO
Example: Enhancing Security by Configuring Redirect Web Filtering Using Custom Objects | 202
Monitoring Web Filtering Configurations | 226
199
Release Description
17.4R1 Starting with Junos OS Release 17.4R1, custom category configuration is supported for local Web
filtering. The custom-message option is also supported in a category for local Web filtering and
Websense redirect profiles. Users can create multiple URL lists (custom categories) and apply them
to a UTM Web filtering profile with actions such as permit, permit and log, block, and quarantine.
To create a global allowlist or blocklist, apply a local Web filtering profile to a UTM policy and
attach it to a global rule.
17.4R1 Starting with Junos OS Release 17.4R1, a new option, custom-message, is added for the custom-
objects statement that enables you to configure user messages and redirect URLs to notify users
when a URL is blocked or quarantined for each EWF category.
15.1X49- Starting in Junos OS Release 15.1X49-D110, the “* “ in a wildcard syntax, used for URL pattern
D110 Web filtering profile, matches all subdomains.
RELATED DOCUMENTATION
IN THIS SECTION
Example: Enhancing Security by Configuring Redirect Web Filtering Using Custom Objects | 202
The redirect Web filtering solution intercepts HTTP requests and sends them to an external URL filtering
server, provided by Websense, to determine whether to block the requests. For more information, see
the following topics:
200
IN THIS SECTION
With redirect Web filtering, the Web filtering module intercepts an HTTP request. The URL in the
request is then sent to the external Websense server, which makes a permit or a deny decision. If access
is permitted to the URL in question, the original HTTP request and all the subsequent requests are sent
to the intended HTTP server. But if access is denied to the URL in question, a blocking message is sent
to the client.
This is a general description of how Web traffic is intercepted, redirected, and acted upon by the Web
filtering module:
3. The device intercepts the requests and extracts the URL. The URL is checked against global Web
filtering allowlists and blocklists. If no match is made, the Websense server configuration parameters
are utilized. Otherwise the process continues with step 6.
5. The Websense server returns a response indicating whether or not the URL is to be permitted or
blocked.
6. If access is allowed, the original HTTP request is sent to the webserver. If access is denied, the device
sends a blocking message to the client and tears down the TCP connection.
Web filtering is performed on all the methods defined in HTTP 1.0 and HTTP 1.1. However, redirect
Web filtering uses destination IP as URL when it is checking HTTPS traffic.
Decision making from real-time options provides a higher level of accuracy, therefore caching for
redirect Web filtering is not supported.
Starting with Junos OS Release 17.4R1, a new option, custom-message, is added for the custom-objects
statement that enables you to configure user messages and redirect URLs to notify users when a URL is
blocked or quarantined for each EWF category. The custom-message option has the following mandatory
attributes:
• Content: Content of the custom message; maximum length is 1024 ASCII characters.
You configure a user message or redirect URL as a custom object and assign the custom object to an
EWF category.
• User messages indicate that website access has been blocked by an organization's access policy. To
configure a user message, include the type user-message content message-text statement at the [edit
security utm custom-objects custom-message message] hierarchy level.
• Redirect URLs redirect a blocked or quarantined URL to a user-defined URL. To configure a redirect
URL, include the type redirect-url content redirect-url statement at the [edit security utm custom-objects
custom-message message] hierarchy level.
• You can configure a separate custom message or redirect URL for each EWF category.
• The custom-message option enables you to fine-tune messages to support your polices to know which
URL is blocked or quarantined.
Starting with Junos OS Release 17.4R1, you can download and dynamically load new Enhanced Web
Filtering (EWF) categories. The downloading and dynamic loading of the new EWF categories do not
require a software upgrade. Websense occasionally releases new EWF categories. EWF classifies
websites into categories according to host, URL, or IP address and performs filtering based on the
categories. Users can leverage new categories as soon as they are available rather than waiting for a
patch release.
NOTE: Existing configurations are not affected by the new categories but can be modified to
make use of the new categories.
202
SEE ALSO
IN THIS SECTION
Requirements | 202
Overview | 202
Configuration | 203
Verification | 212
This example shows how to manage Internet usage by configuring redirect Web filtering using custom
objects and preventing access to inappropriate Web content.
Requirements
Before you begin, learn more about Web filtering. See "Web Filtering Overview" on page 135.
Overview
IN THIS SECTION
Topology | 203
The benefit of using Web filtering is that it extracts the URLs from HTTP request messages and
performs filtering according to the requirements. The advantage of configuring redirect Web filtering is
that it extracts the URLs from the HTTP requests and sends them to an external URL filtering server to
determine whether to allow or deny access.
203
In this example you configure redirect Web filtering custom objects, redirect Web filtering feature
profiles, and redirect Web filtering UTM policies. You also attach redirect Web filtering UTM policies to
security policies.
You select fallback settings (block or log-and-permit) for this profile, in case errors occur in each
configured category. This example sets fallback settings to block the profile. You enter the number of
sockets used for communicating between the client and the server. The default is 32 for SRX Series
devices.
Finally, you enter a timeout value in seconds. Once this limit is reached, fail mode settings are applied.
The default is 15 seconds, and you can enter a value from 1 to 1800 seconds. This example sets the
timeout value to 10.
Topology
Figure 3 on page 203 shows the overall architecture for the Websense redirect feature.
Configuration
IN THIS SECTION
Configuring Redirect Web Filtering UTM Policies and Attaching the Redirect Web Filtering UTM
Policies to Security Policies | 209
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
2. Configure the custom URL category list custom object using the URL pattern list.
4. Configure the custom URL category list custom object using the URL pattern list of untrusted sites.
6. Configure the custom URL category list custom object using the URL pattern list of trusted sites.
Results
From configuration mode, confirm your configuration by entering the show security utm custom-objects
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
userhost# show security utm custom-objects
url-pattern {
urllist4 {
value [ http://www.example.net 1.2.3.4 ];
}
urllistblack {
value [ http://www.untrusted.com 13.13.13.13 ];
}
urllistwhite {
206
If you are done configuring the device, enter commit from configuration mode.
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
3. Specify the Web filtering type, create a profile name, and set the server name or IP address.
4. Configure the custom category action log-and-permit and permit for the URL allowlist and cust-list2,
respectively.
7. Enter the number of sockets used for communicating between the client and the server.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
userhost# show security utm feature-profile
web-filtering {
url-whitelist custwhitelist;
209
url-blacklist custblacklist;
type websense-redirect {
profile websenseprofile1 {
server {
host Websenseserver;
port 15868;
}
category {
cust-white-list {
action log-and-permit ;
cust-list2 {
action permit;
}
}
}
fallback-settings {
server-connectivity block;
timeout block;
too-many-requests block;
}
timeout 10;
sockets 1;
}
}
}
content-filtering {
profile contentfilter1;
}
If you are done configuring the device, enter commit from configuration mode.
Configuring Redirect Web Filtering UTM Policies and Attaching the Redirect Web Filtering UTM
Policies to Security Policies
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
210
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
[edit]
userhost# show security utm
utm-policy utmp6 {
web-filtering {
http-profile websenseprofile1;
}
}
From configuration mode, confirm your configuration by entering the show security policies command. If
the output does not display the intended configuration, repeat the configuration instructions in this
example to correct it.
[edit]
userhost# show security policies
from-zone trust to-zone untrust {
policy p6 {
match {
source-address any;
destination-address any;
application junos-http;
}
then {
permit {
application-services {
utm-policy utmp6;
}
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
212
Verification
IN THIS SECTION
Verifying the Attachment of Redirect Web Filtering UTM Policies to Security Policies | 214
Purpose
Action
From the top of the configuration in configuration mode, enter the show security utm custom-objects
command.
[edit]
userhost# show security utm custom-objects
url-pattern {
urllist4 {
value [ http://www.example.net 1.2.3.4 ];
}
urllistblack {
value [ http://www.untrusted.com 13.13.13.13 ];
}
urllistwhite {
value [ http://www.trusted.com 7.7.7.7 ];
}
}
custom-url-category {
custurl4 {
value urllist4;
213
}
custblacklist {
value urllistblack;
}
custwhitelist {
value urllistwhite;
}
}
Meaning
Purpose
Action
From the top of the configuration in configuration mode, enter the show security utm feature-profile
command.
[edit]
userhost# show security utm feature-profile
web-filtering {
url-whitelist custwhitelist;
url-blacklist custblacklist;
type websense-redirect {
profile websenseprofile1 {
server {
host Websenseserver;
port 15868;
}
fallback-settings {
server-connectivity block;
timeout block;
too-many-requests block;
}
timeout 10;
214
sockets 1;
}
}
}
content-filtering {
profile contentfilter1;
}
Meaning
The sample output shows the feature profile configured for a Websense redirect server.
Verifying the Attachment of Redirect Web Filtering UTM Policies to Security Policies
Purpose
Verify the attachment of the newly created redirect Web filtering UTM policies to the security policies.
Action
From the top of the configuration in configuration mode, enter the show security utm and show security
policies commands.
[edit]
userhost# show security utm
utm-policy utmp6 {
web-filtering {
http-profile websenseprofile1;
}
}
[edit]
userhost# show security policies
from-zone trust to-zone untrust {
policy p6 {
match {
source-address any;
destination-address any;
application junos-http;
215
}
then {
permit {
application-services {
utm-policy utmp6;
}
}
}
}
}
Meaning
The sample output shows the security policies to which the newly created redirect Web filtering UTM
policies are attached.
SEE ALSO
17.4R1 Starting with Junos OS Release 17.4R1, a new option, custom-message, is added for the custom-objects
statement that enables you to configure user messages and redirect URLs to notify users when a URL is
blocked or quarantined for each EWF category.
17.4R1 Starting with Junos OS Release 17.4R1, you can download and dynamically load new Enhanced Web
Filtering (EWF) categories.
RELATED DOCUMENTATION
Learn about our safe search enhancement for Unified Safe Search Enhancement for Web Filtering
Threat Management (UTM) Web filtering solutions to Overview | 216
enforce the safest Web browsing mode available, by Configure Web Filtering with Safe
default. Search | 219
WHAT'S NEXT
Now that you’ve learned about safe search enhancement for Web filtering, you'll be interested to know
how to disable the safe search function. Check out juniper-local, websense-redirect, and juniper-
enhanced for more information.
IN THIS SECTION
• Protects the HTTPS-based search engine cache. This protection is a key security feature requirement
for organizations with multiple Web users in educational, financial, health-care, banking, and
corporate segments. In a campus or branch, enabling a default safe search solution for all users and
blocking the search engine cache provides secure and comfortable Web browsing.
217
You use UTM Web filtering to manage Web browsing by preventing access to inappropriate Web
content. To do this, you use the following Web filtering solutions:
We've enhanced the safe search functionality for these UTM Web filtering solutions to provide an
extremely safe search environment for the Web user. Table 5 on page 218 describes the features of the
safe search enhancement.
218
Default safe By enabling the safe search enhancement feature, you enforce the safest Web browsing mode
search available by default on the well-known search engines. Doing so helps those users that are not
using the strictest safe search settings.
If you enable the safe search feature on your security device, it enforces the search service to
the strictest mode by URL query rewriting, which is transparent to you. For example, when you
do a search request on the search engines Google, Bing, Yahoo, or Yandex, the safe search
feature rewrites the requested URLs to the safest search URLs.
Blocking By blocking the search engine cache on the well-known search engines, you can hide your
search engine Web-browsing activities from other users if you are a part of an organization that has multiple
cache Web users in educational, financial, health-care, banking, and corporate segments.
To block the search engine cache, you configure a general URL block pattern and category for
the search engine cache service.
219
You can disable the safe search option at the Web filtering-level and profile-level configurations. See
juniper-local, websense-redirect, and juniper-enhanced.
• For HTTP safe search enhancement, you must enable stream mode by enabling the http-reassemble
option at the [edit security utm default-configuration web-filtering] hierarchy level. If you don't enable
stream mode, you can't use the safe search feature. As a result, the system sends an HTTP 302
redirect message to the user.
• For HTTPS safe search enhancement, you must enable the SSL proxy service on the security policy. If
SSL proxy bypasses the HTTPS traffic, then the safe search feature also bypasses the HTTPS traffic.
Verification | 225
Requirements
This example uses the following hardware and software components:
• Make sure you understand how to use Web filtering to manage Web browsing. See Web Filtering
Overview.
Overview
In this example, you configure the following policies and Web filtering profiles on your security device:
• UTM policies
• Security policies
• SSL proxy
After you've configured the policies and profiles, you generate the Web filtering statistics and verify the
performance of the safe search enhancement.
Figure 4 on page 220 shows the basic UTM Web filtering topology. When you enable your security
device with the safe search feature, the device rewrites the search requests from the user to the safest
search mode of the search engines. The cloud engine or the local engine performs Web filtering on the
search requests before forwarding to the Internet or external webserver.
Configuration
IN THIS SECTION
Procedure | 221
221
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User
Guide.
222
2. Configure the security policies to control HTTP or HTTPS traffic from the trust zone to the Internet
zone.
4. Configure interfaces.
[edit interfaces]
user@host# xe-5/0/0 unit 0 family inet address 192.0.2.254/24
user@host# xe-5/0/2 unit 0 family inet address 203.0.113.254/24
Results
From configuration mode, confirm your configuration by entering the show security policies, show security
utm, and show interfaces commands. If the output does not display the intended configuration, repeat the
configuration instructions in this example to correct it.
default log-and-permit;
}
}
}
feature-profile {
web-filtering {
juniper-enhanced {
profile ewf_my_profile1 {
category {
Enhanced_Search_Engines_and_Portals {
action log-and-permit;
}
}
default log-and-permit;
}
}
}
}
utm-policy utmpolicy1 {
web-filtering {
http-profile ewf_my_profile1;
}
}
If you are done configuring the feature on your device, enter commit from configuration mode.
225
Verification
IN THIS SECTION
Purpose
Verify that the safe search feature is enabled for UTM Web filtering solutions.
Action
From operational mode, enter the show security utm web-filtering statistics command to view the Web
filtering statistics. In the output, the Safe-search redirect and Safe-search rewrite fields display the
enhanced safe search redirect and rewrite statistics.
Meaning
The output displays that the safe search feature is enabled and there are no safe search redirects and
safe search rewrites.
IN THIS SECTION
Purpose | 227
Action | 227
227
Purpose
Action
To view Web-filtering statistics using the CLI, enter the following commands:
Total Requests: #
White List Hit: #
Black List Hit: #
Queries to Server: #
Server Reply Permit: #
Server Reply Block: #
Custom Category Permit: #
Custom Category Block: #
Cache Hit Permit: #
Cache Hit Block: #
Web Filtering Session Total: #
Web Ffiltering Session Inuse: #
Fall Back: Log-and-Permit Block
Default # #
Timeout # #
Server-Connectivity # #
Too-Many-Requests # #
2. You can click the Clear Web Filtering Statistics button to clear all current viewable statistics and
begin collecting new statistics.
228
RELATED DOCUMENTATION
IN THIS SECTION
Attaching Express Antivirus UTM Policies to Security Policies (J-Web Procedure) | 254
Express antivirus scanning is offered as a less CPU intensive alternative to the full file-based antivirus
feature. Express antivirus supports the same protocols as full antivirus and functions in much the same
manner. For more information, see the following topics:
IN THIS SECTION
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, Express antivirus scanning is offered as a less CPU
intensive alternative to the full file-based antivirus feature. Express antivirus supports the same
protocols as full antivirus and functions in much the same manner, however, it has a smaller memory
footprint, compatible with the smaller system memory present on lower end devices. The express
antivirus feature, like the full antivirus feature, scans specific Application Layer traffic for viruses against
a virus signature database. However, unlike full antivirus, express antivirus does not reconstruct the
original application content. Rather, it just sends (streams) the received data packets, as is, to the scan
engine. With express antivirus, the virus scanning is executed by a hardware pattern matching engine.
This improves performance while scanning is occurring, but the level of security provided is lessened.
Juniper Networks provides the scan engine. The express antivirus scanning feature is a separately
licensed subscription service.
Express antivirus uses a different antivirus scan engine than the full file-based antivirus feature and a
different back-end hardware engine to accelerate pattern matching for higher data throughput.
The packet-based scanning done by express antivirus provides virus scanning data buffers without
waiting for entire file to be received by the firewall, whereas the file-based scanning done by full
antivirus can only start virus scanning when entire file is received.
Express antivirus offers MIME decoding support for HTTP, POP3, SMTP, and IMAP. MIME decoding
support includes the following for each supported protocol:
• Base64 decoding, printed quote decoding, and encoded word decoding (in the subject field)
With express antivirus, the TCP traffic is closed gracefully when a virus is found and the data content is
dropped.
Express antivirus supports the following fail mode options: default, engine-not-ready, out-of-resource,
and too-many-requests. Fail mode handling of supported options with express antivirus is much the
same as with full antivirus.
232
Intelligent prescreening functionality is identical in both express antivirus and full antivirus.
Express antivirus has the following limitations when compared to full antivirus functionality:
• Express antivirus provides limited support for the scanning of file archives and compressed file
formats. Express antivirus can only support gzip, deflate and compressed compressing formats.
• Express antivirus provides limited support for decompression. Decompression is only supported with
HTTP (supports only gzip, deflate, and compress for HTTP and only supports one layer of
compression) and POP3 (supports only gzip for POP3 and only supports one layer of compression).
• Express antivirus may truncate a warning message if a virus has been detected and the replacement
warning message that is sent is longer than the original content it is replacing.
• If you switch from express antivirus protection to full file-based antivirus protection, you must
reboot the device in order for full file-based antivirus to begin working.
• Because express antivirus does only packet-based string matching, if you use the standard EICAR file
to test express antivirus, you will see false positives. To avoid these false positives, Juniper Networks
has disabled scanning on the standard EICAR file to create a modified EICAR file for testing express
antivirus. You can download this modified EICAR file from the following links:
https://www.juniper.net/security/avtest/ss-eicar.txt
https://www.juniper.net/security/avtest/ss-eicar.com
https://www.juniper.net/security/avtest/ss-eicar.zip
• The modified EICAR file must be tested with express antivirus only. The Kaspersky antivirus and
Sophos antivirus do not detect this file.
• The express antivirus feature provides better performance but lower security. If you switch from full
file-based antivirus protection to express antivirus protection, you must reboot the device in order
for express antivirus to begin working.
SEE ALSO
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, for each UTM feature, you should configure feature
parameters in the following order:
1. Configure UTM custom objects for the UTM features. The following example enables the mime-
pattern, url-pattern, and custom-url-category custom objects:
2. Configure main feature parameters using feature profiles. The following examples enables the anti-
virus feature profile:
3. Configure a UTM policy for each protocol and attach this policy to a profile. The following example
creates the utmp3 UTM policy for the HTTP protocol:
4. Attach the UTM policy to a security policy. The following example attaches the utmp3 UTM policy to
the p3 security policy:
user@host# set security policies from-zone trust to-zone untrust policy p3 then permit
application-services utm-policy utmp3
234
IN THIS SECTION
Requirements | 234
Overview | 234
Configuration | 235
Verification | 237
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to configure express antivirus
custom objects.
Requirements
Before you begin:
• Decide the type of express antivirus protection you require. See "Express Antivirus Protection
Overview" on page 230.
• Understand the order in which express antivirus parameters are configured. See "Express Antivirus
Configuration Overview" on page 233.
Overview
In this example, you define custom objects that are used to create express antivirus feature profiles. You
perform the following tasks to define custom objects:
• Create two MIME lists called avmime2 and ex-avmime2, and add patterns to the list.
When entering the URL pattern, note the following wildcard character support:
• You can use the asterisk * wildcard character only if it is at the beginning of the URL and is
followed by a period.
• You can use the question mark ? wildcard character only at the end of the URL.
235
• Configure a custom URL category list called custurl2, using the urllist2 URL pattern list.
Configuration
IN THIS SECTION
Procedure | 235
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
1. Create MIME lists, and add MIME patterns to the lists. As you use URL pattern lists to create custom
URL category lists, you must configure URL pattern list custom objects before you configure custom
URL category list.
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
[edit]
user@host# show security utm
custom-objects {
mime-pattern {
avmime2 {
value [ video/quicktime image/x-portable-anymap x-world/x-vrml ];
}
ex-avmime2 {
value video/quicktime-inappropriate;
}
}
url-pattern {
urllist2 {
value [ http://www.example.net 1.2.3.4 ];
237
}
}
custom-url-category {
custurl2 {
value urllist2;
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show configuration security utm command.
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to configure express antivirus protection using the J-
Web configuration editor, you must first create your custom objects (MIME pattern list, URL pattern list,
and custom URL category list).
3. In the Add MIME Pattern pop-up window, next to MIME Pattern Name, enter a unique name.
Keep in mind that you are creating a MIME allowlist and a MIME exception list (if necessary). Both
MIME lists appear in the MIME Allowlist and Exception MIME Allowlist fields when you configure
antivirus. Therefore, the MIME list names you create should be as descriptive as possible.
4. Next to MIME Pattern Value, enter the MIME pattern.
5. Click Add to add your MIME pattern to the Values list box. Within this box, you can also select an
entry and use the Delete button to delete it from the list. Continue to add MIME patterns in this
manner.
6. Optionally, create a new MIME list to act as an exception list. The exception list is generally a subset
of the main MIME list.
7. Click OK to check your configuration and save the selected values as part of the MIME list, then click
Commit Options>Commit.
8. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
NOTE: Because you use URL pattern lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure a custom URL category list.
2. From the URL Pattern List tab, click Add to create URL pattern lists.
3. Next to URL Pattern Name, enter a unique name. This name appears in the Custom URL Category
List Custom Object page for selection.
4. Next to URL Pattern Value, enter the URL or IP address you want added to list for bypassing
scanning.
When entering the URL pattern, note the following wildcard character support:
• You can only use the asterisk * wildcard character if it is at the beginning of the URL and is
followed by a period.
• You can only use the question mark ? wildcard character at the end of the URL.
5. Click Add to add your URL pattern to the Values list box. The list can contain up to 8192 items. You
can also select an entry and use the Delete button to delete it from the list. Continue to add URLs or
IP addresses in this manner.
6. Click OK to check your configuration and save the selected values as part of the URL pattern list,
then click Commit Options>Commit.
7. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
Configure a custom URL category list custom object using the URL pattern list that you created:
2. From the URL Category List tab, click Add to create URL category lists.
3. Next to URL Category Name, enter a unique name. This name appears in the URL Allowlist list when
you configure antivirus global options.
4. In the Available Values box, select a URL Pattern List name from the list for bypassing scanning and
click the right arrow button to move it to the Selected Values box.
5. Click OK to check your configuration and save the selected values as part of the URL list, then click
Commit Options>Commit.
6. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
SEE ALSO
Allowlist | 24
240
IN THIS SECTION
Requirements | 240
Overview | 240
Configuration | 241
Verification | 246
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to configure an express
antivirus feature profile.
Requirements
Before you begin:
• Decide the type of express antivirus protection you require. See "Express Antivirus Protection
Overview" on page 230.
• Understand the order in which express antivirus parameters are configured. See "Express Antivirus
Configuration Overview" on page 233.
• MIME patterns must be defined for lists and exception lists. See Example: Configuring MIME
Allowlist to Bypass Antivirus Scanning.
• Custom objects must be defined. See "Example: Configuring Express Antivirus Custom Objects" on
page 234
• SMTP must be configured on the device. See "Understanding SMTP Antivirus Scanning" on page 330
Overview
In this example, you configure a feature profile called junexprof1 and specify custom objects to be used
for filtering content.
• Select and configure the Juniper Express Engine as the engine type.
• Select 120 as the time interval for updating the pattern database. The default antivirus pattern-
update interval is once a day.
241
NOTE: The command for changing the URL for the pattern database is:
[edit]
user@host# set security utm feature-profile anti-virus juniper-express-engine pattern-
update url http://...
Under most circumstances, you should not need to change the default URL.
• Enable an e-mail notification with a custom message as pattern file was updated and a custom
subject line as AV pattern file updated.
• Configure the notification options for fallback blocking for virus detection. Configure a custom
message for the fallback blocking action, and send a notification.
• Configure a notification for protocol-only virus detection, and send a notification as Antivirus Alert.
• Configure content size parameters as 20000. For SRX100, SRX110, SRX210, SRX220, and SRX240
devices, the maximum value for content size is 20,000. For SRX650 devices, the maximum value for
content size is 40,000. Platform support depends on the Junos OS release in your installation.
• Enable intelligent prescreening and set its timeout setting to 1800 seconds and trickling setting
(applicable only to HTTP) to 600 seconds. This means that if the device receives a packet within a
600-second period during a file transfer or while performing an antivirus scan, it should not time out.
Intelligent prescreening is intended only for use with non-encoded traffic. It is not applicable to mail
protocols (SMTP, POP3, IMAP) or HTTP POST.
• Configure the antivirus scanner to use MIME bypass lists and exception lists. You can use your own
custom object lists, or you can use the default list, called junos-default-bypass-mime, which ships
with the device. The following example enables the avmime2 and ex-avmime2 lists.
• Configure the antivirus module to use URL bypass lists. If you are using a URL allowlist (valid only for
HTTP traffic), this is a custom URL category that you previously configured as a custom object. For
this example, you enable the custurl1 bypass list.
Configuration
IN THIS SECTION
Procedure | 242
242
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
[edit]
user@host# set security utm feature-profile anti-virus type juniper-express-engine
3. Configure the device to notify a specified administrator when patterns are updated.
4. Create a profile for the Juniper Express Engine, and configure fallback options as block.
5. Configure a custom notification for the fallback blocking action, and send a notification.
12. Configure the antivirus scanner to use MIME bypass lists and exception lists.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
anti-virus command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security utm feature-profile anti-virus
mime-whitelist {
list avmime2;
exception ex-avmime2;
}
url-whitelist custurl2;
juniper-express-engine {
pattern-update {
email-notify {
admin-email "administrator@example.net";
custom-message "pattern file was updated";
custom-message-subject "AV pattern file updated";
}
interval 120;
}
profile junexprof1 {
fallback-options {
default block;
content-size block;
engine-not-ready block;
timeout block;
246
out-of-resources block;
too-many-requests block;
}
scan-options {
intelligent-prescreening;
content-size-limit 20000;
timeout 1800;
}
trickling timeout 600;
notification-options {
virus-detection {
type protocol-only;
custom-message ***virus-found***;
}
fallback-block {
custom-message “Dropped due to fallback condition”;
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
SEE ALSO
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, after you create your custom objects, configure the
antivirus feature profile:
Trickling applies only to HTTP. HTTP trickling is a mechanism used to prevent the HTTP client or
server from timing out during a file transfer or during antivirus scanning.
16. Next to Intelligent prescreening, select Yes or No.
Intelligent prescreening is only intended for use with non-encoded traffic. It is not applicable for
mail protocols (SMTP, POP3, IMAP, and HTTP POST).
17. Next to Content Size Limit, enter content size parameters. The content size check occurs before the
scan request is sent. The content size refers to accumulated TCP payload size.
18. Next to Scan engine timeout, enter scanning timeout parameters.
19. Select the Fallback settings tab.
20. Next to Default (fallback option), select Log and permit or Block from the list. In most cases, Block is
the default fallback option.
21. Next to Decompress Layer (fallback option), select Log and permit or Block from the list.
22. Next to Content Size (fallback option), select Log and permit or Block from the list.
23. Next to Engine Not Ready (fallback option), select Log and permit or Block from the list.
24. Next to Timeout (fallback option), select Log and permit or Block from the list.
25. Next to Out of Resource (fallback option), select Log and permit or Block from the list.
26. Next to Too Many Requests (fallback option), select Log and permit or Block from the list.
27. Select the Notification options tab.
28. In the Fallback block section, next to Notification type, select Protocol Only or Message to select
the type of notification that is sent when a fallback option of block is triggered.
29. Next to Notify mail sender, select Yes or No.
30. If you selected Yes, next to Custom Message, enter text for the message body of your custom
message for this notification (if you are using a custom message).
31. Next to Custom message subject, enter text to appear in the subject line of your custom message
for this notification (if you are using a custom message).
32. In the Fallback non block section, next to Notify mail recipient, select Yes or No.
33. If you selected Yes, next to Custom Message, enter text for the message body of your custom
message for this notification (if you are using a custom message).
34. Next to Custom message subject, enter text to appear in the subject line of your custom message
for this notification (if you are using a custom message).
35. Select the Notification options cont tab.
36. In the Virus detection section, next to Notification type, select Protocol Only or Message to select
the type of notification that is sent when a fallback option of block is triggered.
37. Next to Notify mail sender, select Yes or No.
38. If you selected Yes, next to Custom Message, enter text for the message body of your custom
message for this notification (if you are using a custom message).
39. Next to Custom message subject, enter text to appear in the subject line of your custom message
for this notification (if you are using a custom message). The limit is 255 characters.
249
40. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
41. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up that appears window to
discover why.
You create a separate antivirus profile for each antivirus protocol. These profiles may basically
contain the same configuration information, but when you are creating your UTM policy for
antivirus, the UTM policy configuration page provides separate antivirus profile selection fields for
each supported protocol.
SEE ALSO
IN THIS SECTION
Requirements | 249
Overview | 249
Configuration | 250
Verification | 250
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to create an express antivirus
UTM policy to attach to your feature profile.
Requirements
Before you begin, create an antivirus feature profile. See "Example: Configuring Express Antivirus
Feature Profiles" on page 240.
Overview
In this example, you configure an express antivirus UTM policy called utmp3 and attach the policy to the
antivirus profile called junexprof1.
250
Configuration
IN THIS SECTION
Procedure | 250
Procedure
Step-by-Step Procedure
1. Create a UTM policy for HTTP antivirus scanning and attach the policy to the profile.
[edit]
user@host# set security utm utm-policy utmp3 anti-virus http-profile junexprof1
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, after you have created an antivirus feature profile,
configure a UTM policy to which you can attach the feature profile:
IN THIS SECTION
Requirements | 252
Overview | 252
Configuration | 252
252
Verification | 253
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to attach an express antivirus
UTM policy to a security policy.
Requirements
Before you begin, create a UTM policy. See "Example: Configuring Express Antivirus UTM Policies" on
page 249.
Overview
In this example, you attach the express antivirus UTM policy called utmp3 to the security policy called
p3.
Configuration
IN THIS SECTION
Procedure | 252
Procedure
Step-by-Step Procedure
[edit]
user@host# set security policies from-zone trust to-zone untrust policy p3 match source-
address any
user@host# set security policies from-zone trust to-zone untrust policy p3 match destination-
address any
253
user@host# set security policies from-zone trust to-zone untrust policy p3 match application
junos-http
[edit]
user@host# set security policies from-zone trust to-zone untrust policy p3 then permit
application-services utm-policy utmp3
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security policies detail command.
254
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, after you create a UTM policy, create a security policy
and attach the UTM policy to the security policy:
Release Description
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
255
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
RELATED DOCUMENTATION
IN THIS SECTION
Manually Updating, Reloading, and Deleting Express Antivirus Patterns (CLI Procedure) | 259
The express antivirus pattern database is updated over HTTP or HTTPS and can occur automatically or
manually. For more information, see the following topics:
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, Express antivirus uses a different signature database
than the full antivirus signature database. The express antivirus signature database is called Juniper
Express antivirus database and it is compatible with the hardware engine. The express signature
database targets only critical viruses and malware, including worms, Trojans, and spyware. This is a
smaller sized database, providing less coverage than the full antivirus signature database.
The express antivirus pattern database is updated over HTTP or HTTPS and can occur automatically or
manually. This is similar functionality to that found in full antivirus with some minor differences:
• With express antivirus, the signature database auto-update interval, is once a day.
• With express antivirus, there is no support for the downloading of multiple database types.
• With express antivirus, during database loading, all scan operations are interrupted. Scan operations
for existing traffic flows are stopped and no new scan operations are initiated for newly established
traffic flows. You can specify the desired action for this interruption period using the fall-back
parameter for engine-busy-loading-database. The available actions are block or log-and-permit.
should not change this URL unless you are experiencing problems with it and have called for support.
Platform support depends on the Junos OS release in your installation.)
Once your subscription expires, you have a 30 day grace period during which you can continue to
update the antivirus pattern file. Once that grace period expires, the update server no longer permits
antivirus pattern file updates.
The express Antivirus scanning feature is a separately licensed subscription service. When your
antivirus license key expires, you can continue to use locally stored antivirus signatures. But in that
case, if the local database is deleted, antivirus scanning is disabled.
SEE ALSO
IN THIS SECTION
Requirements | 257
Overview | 258
Configuration | 258
Verification | 258
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to update the pattern file
automatically on a security device.
Requirements
Before you begin:
• Obtain a valid antivirus scanner license. See "Full Antivirus Protection Overview" on page 261.
• Get network connectivity and access to the pattern database server. See "Understanding Full
Antivirus Pattern Updates" on page 288.
• Configure your DNS settings and port settings (port 80) correctly. See DNS Overview.
258
Overview
In this example, you configure the security device to update the pattern file automatically every 120
minutes. (The default antivirus pattern-update interval is once a day.)
Configuration
IN THIS SECTION
Procedure | 258
Procedure
Step-by-Step Procedure
[edit]
user@host# set security utm feature-profile anti-virus juniper-express-engine pattern-update
interval 120
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, in this example, you configure the security device to
update the pattern file automatically every 120 minutes. (The default antivirus pattern-update interval is
once a day.)
1. Select Configure>Security>UTM>Anti-Virus.
2. Next to Interval, in the Juniper Express Engine section, enter 120 in the box.
3. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to manually update antivirus patterns, enter the
following CLI statement:
SEE ALSO
Allowlist | 24
Release Description
15.1X49-D10 The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
RELATED DOCUMENTATION
IN THIS SECTION
Attaching Full Antivirus UTM Policies to Security Policies (J-Web Procedure) | 286
The full file-based antivirus feature provides file-based scanning on specific Application Layer traffic
checking for viruses against a virus signature database. It collects the received data packets until it has
reconstructed the original application content, such as an e-mail file attachment, and then scans this
content. For more information, see the following topics:
A virus is executable code that infects or attaches itself to other executable code in order to reproduce
itself. Some malicious viruses erase files or lock up systems, while other viruses merely infect files and
can overwhelm the target host or network with bogus data. The full file-based antivirus feature provides
file-based scanning on specific Application Layer traffic checking for viruses against a virus signature
database. It collects the received data packets until it has reconstructed the original application content,
such as an e-mail file attachment, and then scans this content.
The full file-based antivirus scanning feature is a separately licensed subscription service. Kaspersky Lab
provides the scan engine for full file-based antivirus. When your antivirus license key expires, you can
continue to use locally stored antivirus signatures without any updates. But in that case, if the local
database is deleted, antivirus scanning is disabled.
The express antivirus feature provides better performance but lower security. Note that if you switch
from full file-based antivirus protection to express antivirus protection, you must reboot the device in
order for express antivirus to begin working.
The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, the Kaspersky scan engine is provided as a
downloadable UTM module. To download the Kaspersky scan engine, your SRX Series device must have
an active UTM license. When you install the KAV license, the system automatically downloads the
Kaspersky module from the Juniper Networks server and runs it.
When you set the antivirus type to KAV, and if the SRX Series device had a preinstalled Kaspersky
engine, then the downloaded module replaces the original module on the device. Regardless of the UTM
262
license status, when the KAV license is deleted from the device, the Kaspersky engine and all files
associated with KAV are removed from the system immediately.
Use the set security utm feature-profile anti-virus type kaspersky-lab-engine command to set the antivirus
type to KAV. If Kaspersky engine is not available on the device, and if the Kaspersky engine cannot be
downloaded from the predefined URL, then use the set security utm feature-profile anti-virus kaspersky-
lab-engine pattern-update url url command to configure the downloading application URL.
SEE ALSO
The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, when configuring antivirus protection, you
must first create the antivirus custom objects you are using. Those custom objects may include the
MIME pattern list, MIME exception list, and the filename extension list. Once you have created your
custom objects, you can configure full antivirus protection, including intelligent prescreening, and
content size limits.
1. Configure UTM custom objects for the UTM feature. The following example enables the mime-
pattern, filename-extension, url-pattern, and custom-url-category custom-objects:
2. Configure the main feature parameters using feature profiles. The following example enables options
using the anti virus feature profile:
options
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile
notification-options
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile scan-
options
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile trickling
user@host# set security utm feature-profile anti-virus mime-whitelist
user@host# set security utm feature-profile anti-virus url-whitelist
3. Configure a UTM policy for each protocol and attach this policy to a profile. The following example
configure the utmp2 UTM policy for the HTTP protocol:
4. Attach the UTM policy to a security policy. The following example attaches the utmp2 UTM policy to
the p2 security policy:
user@host# set security policies from-zone trust to-zone untrust policy p2 then permit
application-services utm-policy utmp2
SEE ALSO
IN THIS SECTION
Requirements | 264
Overview | 264
Configuration | 264
Verification | 267
264
The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, this example shows how to configure full
antivirus custom objects.
Requirements
Before you begin:
• Decide the type of full antivirus protection you require. See "Full Antivirus Protection Overview" on
page 261.
• Understand the order in which full antivirus parameters are configured. See "Full Antivirus Pattern
Update Configuration Overview" on page 291.
Overview
In this example, you define custom objects that are used to create full antivirus feature profiles. You
perform the following tasks to define custom objects:
1. Configure a filename extension list called extlist1 and add extensions such as .zip, .js, and .vbs to the
list.
2. Create two MIME lists called avmime1 and ex-avmime1 and add patterns to the list.
4. Configure a custom URL category list called custurl1 using the urllist1 URL pattern list.
Configuration
IN THIS SECTION
Procedure | 265
265
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
NOTE: The Kaspersky scan engine ships with a read-only default extension list that you can
use.
When entering the URL pattern, note the following wildcard character support:
• You can only use the asterisk * wildcard character if it is at the beginning of the URL and is
followed by a period.
• You can only use the question mark ? wildcard character at the end of the URL.
NOTE: Because you use URL pattern lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure custom URL category lists.
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
[edit]
userhost# show security utm
custom-objects {
mime-pattern {
267
avmime1 {
value [ video/quicktime image/x-portable-anymap x-world/x-vrml ];
}
ex-avmime1 {
value video/quicktime-inappropriate;
}
}
filename-extension {
extlist1 {
value [ zip js vbs ];
}
}
url-pattern {
urllist1 {
value [ http://www.url.com 5.6.7.8 ];
}
}
custom-url-category {
custurl1 {
value urllist1;
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show configuration security utm command.
SEE ALSO
Allowlist | 24
The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, to configure antivirus protection, you must
first create your custom objects (MIME Pattern List, Filename Extension List, URL Pattern List, and
Custom URL Category List).
2. From the Filename Extension List tab, click the Add button to create filename extension lists.
269
3. Next to File Extension Name, enter a unique name. This name appears in the Scan Option By
Extension list when you configure an antivirus profile.
4. In the Available Values box, select one or more default values (press Shift to select multiple
concurrent items or press Ctrl to select multiple separate items) and click the right arrow button to
move the value or values to the Selected Values box.
5. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
6. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If the profile is not saved successfully, you can click Details in the pop-up window that appears
to discover why.
NOTE: Because you use URL pattern lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure a custom URL category list.
2. From the URL Pattern List tab, click the Add button to create URL pattern lists.
3. Next to URL Pattern Name, enter a unique name. This name appears in the Custom URL Category
List Custom Object page for selection.
4. Next to URL Pattern Value, enter the URL or IP address you want added to the list for bypassing
scanning.
When entering the URL pattern, note the following wildcard character support:
• You can only use the asterisk * wildcard character if it is at the beginning of the URL and is
followed by a period.
• You can only use the question mark ? wildcard character at the end of the URL.
5. Click Add to add your URL pattern to the Values list box. The list can contain up to 8192 items. You
can also select an entry and use the Delete button to delete it from the list. Continue to add URLs or
IP addresses in this manner.
6. Click OK to check your configuration and save the selected values as part of the URL pattern list you
have created, then click Commit Options>Commit.
7. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
NOTE: Because you use URL Pattern Lists to create custom URL category lists, you must
configure URL pattern list custom objects before you configure a custom URL category list.
2. In the URL Category List tab, click Add to create URL category lists.
3. Next to URL Category Name, enter a unique name. This name appears in the URL Allowlist list when
you configure antivirus global options.
4. In the Available Values box, select a URL Pattern List name from the list for bypassing scanning and
click the right arrow button to move it to the Selected Values box.
5. Click OK to check your configuration and save the selected values as part of the URL list that you
have created, then click Commit Options>Commit.
Click OK to save the selected values as part of the custom URL list you have created.
6. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
SEE ALSO
Allowlist | 24
271
IN THIS SECTION
Requirements | 271
Overview | 271
Configuration | 273
Verification | 278
The full antivirus feature profile is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to configure a full antivirus
feature profile.
Requirements
Before you begin:
• Decide the type of full antivirus protection you require. See "Full Antivirus Protection Overview" on
page 261.
• Understand the order in which full antivirus parameters are configured. See "Full Antivirus
Configuration Overview" on page 262.
• MIME patterns must be defined for lists and exception lists. See Example: Configuring MIME
Allowlist to Bypass Antivirus Scanning.
Overview
In this example, you configure a feature profile called kasprof1 and specify custom objects to be used for
filtering content:
• Select 120 as the time interval for updating the pattern database. The default full file-based antivirus
pattern-update interval is 60 minutes.
The command for changing the URL for the pattern database is:
[edit]
user@host# edit security utm feature-profile anti-virus kaspersky-lab-engine
272
• Enable an e-mail notification with a custom message as pattern file was updated and a custom
subject line as AV pattern file updated.
• Configure the notification options for fallback blocking for virus detection. Configure a custom
message for the fallback blocking action.
• Configure scan options. For this example, configure the device to perform a TCP payload content size
check before the scan request is sent.
• Configure the decompression layer limit. For this example configure the device to decompress three
layers of nested compressed files before it executes the virus scan.
For SRX100, SRX110, SRX210, SRX220, and SRX240 devices the content size is 20000. For SRX650
devices the content size is 40,000. Platform support depends on the Junos OS release in your
installation.
• Configure scan extension settings. The default list is junos-default-extension. For this example, you
select extlist1, which you created as a custom object.
• Configure the scan mode setting to configure the device to use a custom extension list. Although you
can choose to scan all files, for this example you select only files with the extensions that you specify.
• Enable intelligent prescreening and set its timeout setting to 1800 seconds and trickling setting
(applicable only to HTTP) to 600 seconds. This means that if the device receives a packet within a
600-second period during a file transfer or while performing an antivirus scan, it should not time out.
Intelligent prescreening is only intended for use with non-encoded traffic. It is not applicable for mail
protocols (SMTP, POP3, IMAP) and HTTP POST.
The following example disables intelligent prescreening for the kasprof1 profile:
• Configure the antivirus scanner to use MIME bypass lists and exception lists. You can use your own
custom object lists, or you can use the default list that ships with the device called junos-default-
bypass-mime. For this example, you use the avmime1 and ex-avmime1 lists.
273
• Configure the antivirus module to use URL bypass lists. If you are using a URL allowlist (valid only for
HTTP traffic), this is a custom URL category that you have previously configured as a custom object.
For this example, you enable the custurl1 bypass list.
Configuration
IN THIS SECTION
Procedure | 273
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
[edit]
user@host# set security utm feature-profile anti-virus type kaspersky-lab-engine
user@host#set security utm feature-profile anti-virus kaspersky-lab-engine pattern-update
interval 120
275
2. Configure the device to notify a specified administrator when patterns are updated.
3. Create a profile for the Kaspersky Lab engine and configure fallback options as block.
4. Configure a custom notification for the fallback blocking action and send a notification.
13. Configure the antivirus scanner to use MIME bypass lists and exception lists.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
anti-virus command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host# show security utm feature-profile anti-virus
mime-whitelist {
list avmime1;
exception ex-avmime1;
}
url-whitelist custurl1;
kaspersky-lab-engine {
pattern-update {
email-notify {
admin-email "administrator@example.net";
custom-message patternfilewasupdated;
custom-message-subject AVpatternfileupdated;
}
interval 120;
}
profile kasprof1 {
fallback-options {
default block;
corrupt-file block;
password-file block;
decompress-layer block;
content-size block;
engine-not-ready block;
timeout block;
out-of-resources block;
too-many-requests block;
}
scan-options {
278
intelligent-prescreening;
scan-mode by-extension;
scan-extension extlist1;
content-size-limit 20000;
timeout 1800;
decompress-layer-limit 3;
}
trickling timeout 600;
notification-options {
virus-detection {
type protocol-only;
custom-message ***virus-found***;
}
fallback-block {
custom-message “Dropped due to fallback settings”;
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show configuration security utm command.
279
SEE ALSO
The full antivirus feature profile is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, after you have created your custom object, configure an
antivirus feature profile:
NOTE: Trickling applies only to HTTP. HTTP trickling is a mechanism used to prevent the
HTTP client or server from timing out during a file transfer or during antivirus scanning.
20. Next to Decompress Layer Limit, enter decompression layer limit parameters.
21. In the Scan mode section, select either Scan all files, if you are scanning all content, or Scan files
with specified extension, if you are scanning by file extensions.
If you select Scan files with specified extension, you must select a filename extension list custom
object from the Scan engine filename extention list that appears.
22. Select the Fallback settings tab.
23. Next to Default (fallback option), select Log and permit or Block from the list. In most cases, Block is
the default fallback option.
24. Next to Corrupt File (fallback option), select Log and permit or Block from the list.
25. Next to Password File (fallback option), select Log and permit or Block from the list.
26. Next to Decompress Layer (fallback option), select Log and permit or Block from the list.
27. Next to Content Size (fallback option), select Log and permit or Block from the list.
28. Next to Engine Not Ready (fallback option), select Log and permit or Block from the list.
29. Next to Timeout (fallback option), select Log and permit or Block from the list.
30. Next to Out Of Resources (fallback option), select Log and permit or Block from the list.
31. Next to Too Many Request (fallback option), select Log and permit or Block from the list.
32. Select the Notification options tab.
33. In the Fallback block section, next to Notification type, select Protocol Only or Message to select
the type of notification that is sent when a fallback option of block is triggered.
34. Next to Notify mail sender, select Yes or No.
35. If you selected Yes, next to Custom Message, enter text for the message body of your custom
message for this notification (if you are using a custom message).
36. Next to Custom message subject, enter text to appear in the subject line of your custom message
for this notification (if you are using a custom message).
281
37. In the Fallback non block section, next to Notify mail recipient, select Yes or No.
38. If you selected Yes, next to Custom Message, enter text for the message body of your custom
message for this notification (if you are using a custom message).
39. Next to Custom message subject, enter text to appear in the subject line of your custom message
for this notification (if you are using a custom message).
40. Select the Notification options cont tab.
41. In the Virus detection section, next to Notification type, select Protocol Only or Message to select
the type of notification that is sent when a fallback option of block is triggered.
42. Next to Notify mail sender, select Yes or No.
43. If you selected Yes, next to Custom Message, enter text for the message body of your custom
message for this notification (if you are using a custom message).
44. Next to Custom message subject, enter text to appear in the subject line of your custom message
for this notification (if you are using a custom message). The limit is 255 characters.
45. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
46. If the configuration item is saved successfully, you receive a confirmation and you must click OK
again. If it is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
You create a separate antivirus profile for each antivirus protocol. These profiles may basically
contain the same configuration information, but when you are creating your UTM policy for an
antivirus profile, the UTM policy configuration page provides separate antivirus profile selection
fields for each supported protocol.
SEE ALSO
IN THIS SECTION
Requirements | 282
Overview | 282
282
Configuration | 282
Verification | 283
The full antivirus feature profile is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to create a UTM policy to
attach to a feature profile.
Requirements
Before you begin, create an antivirus feature profile. See "Example: Configuring Full Antivirus Feature
Profiles" on page 271.
Overview
In this example, you configure a full antivirus UTM policy called utmp2 and attach the policy to an HTTP
profile called kasprofile1 HTTP.
Configuration
IN THIS SECTION
Procedure | 282
Procedure
Step-by-Step Procedure
1. Create a UTM policy for HTTP antivirus scanning and attach the policy to the profile.
[edit]
user@host# set security utm utm-policy utmp2 anti-virus http-profile kasprofile1
283
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
SEE ALSO
The full antivirus UTM policies is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, after you have created an antivirus feature profile,
configure a UTM policy to which you can attach the feature profile:
4. In the Policy name box, enter a unique name for the UTM policy.
5. In the Session per client limit box, enter a session per client limit from 0 to 20000 for this UTM
policy.
6. In the Session per client over limit list, select the action that the device should take when the
session per client limit for this UTM policy is exceeded. Options include Log and permit and Block.
7. Select the Anti-Virus profiles tab in the pop-up window.
8. Select the appropriate profile you have configured from the list for the corresponding protocol
listed.
9. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
10. If the policy is saved successfully, you receive a confirmation and you must click OK again. If the
profile is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
IN THIS SECTION
Requirements | 284
Overview | 284
Configuration | 285
Verification | 286
The full antivirus UTM policies is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to attach a UTM policy to a
security policy.
Requirements
Before you begin, create a UTM policy. See "Example: Configuring Full Antivirus UTM Policies" on page
281.
Overview
In this example, you attach the UTM policy called utmp2 to the security policy called p2.
285
Configuration
IN THIS SECTION
Procedure | 285
Procedure
Step-by-Step Procedure
[edit]
user@host# set security policies from-zone trust to-zone untrust policy p2 match source-
address any
user@host# set security policies from-zone trust to-zone untrust policy p2 match destination-
address any
user@host# set security policies from-zone trust to-zone untrust policy p2 match application
junos-http
[edit]
user@host# set security policies from-zone trust to-zone untrust policy p2 then permit
application-services utm-policy utmp2
[edit]
user@host# commit
286
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security policies command.
The full antivirus UTM policies is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, after you create a UTM policy, create a security policy
and attach the UTM policy to the security policy:
When you select Permit for Policy Action, several additional fields become available in the
Applications Services tab, including UTM Policy.
10. Select the Application Services tab in the pop-up window.
11. Next to UTM Policy, select the appropriate policy from the list. This action attaches your UTM
policy to the security policy.
12. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
13. If the policy is saved successfully, you receive a confirmation and you must click OK again. If the
profile is not saved successfully, you can click Details in the pop-up window that appears to
discover why.
You must activate your new policy to apply it.
Release Description
15.1X49-D10 The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus feature profile is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus feature profile is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus feature profile is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus UTM policies is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus UTM policies is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
288
15.1X49-D10 The full antivirus UTM policies is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
RELATED DOCUMENTATION
IN THIS SECTION
Manually Updating, Reloading, and Deleting Full Antivirus Patterns (CLI Procedure) | 295
The full file-based antivirus protection signature database is called the Juniper Full antivirus database, it
detects all destructive malicious code, including viruses (polymorphic and other advanced virus types),
worms, Trojans, and malware. For more information, see the following topics:
The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, the full file-based antivirus protection signature
database is called the Juniper Full antivirus database (downloaded by the pattern-update command).
This database is different from the database used by express antivirus. It detects all destructive
289
malicious code, including viruses (polymorphic and other advanced virus types), worms, Trojans, and
malware.
Updates to the pattern file are added as new viruses are discovered. When Kaspersky Lab updates the
signatures in its pattern database, the security device downloads these updates so that the antivirus
scanner is using the latest, most up-to-date signatures when scanning traffic. The security device can
perform these updates automatically (the default), or you can perform pattern update downloads
manually.
The database pattern server is accessible through HTTP or HTTPS. By default, the antivirus module
checks for database updates automatically every 60 minutes. You can change this interval and you can
trigger updates manually, as well. The number of files that are downloaded during an update and the
duration of the download process can vary.
A local copy of the pattern database is saved in persistent data storage (that is, the flash disk). If the
device is rebooted, the local copy remains available for the antivirus scan engine to use during the
antivirus scan engine initialization time, without the need for network access to the pattern database
server.
If the auto-update fails, the updater automatically retries to update three more times. If the database
download continues to fail, the updater stops trying and waits for the next periodic update before trying
again.
Once your subscription expires, you have a 30 day grace period during which you can continue to
update the antivirus pattern file. Once that grace period expires, the update server no longer permits
antivirus pattern file updates.
SEE ALSO
IN THIS SECTION
Requirements | 290
Overview | 290
Configuration | 290
Verification | 291
290
The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to configure the pattern-
update server on the security device.
Requirements
Before you begin:
• Obtain a valid antivirus scanner license. See "Full Antivirus Protection Overview" on page 261.
• Get network connectivity and access to the pattern database server. See "Understanding Full
Antivirus Pattern Updates" on page 288.
• Configure your DNS settings and port settings (port 80) correctly. See DNS Overview.
Overview
To configure the pattern-update server on the security device, enter the URL address of the pattern-
update server.
Configuration
IN THIS SECTION
Procedure | 290
Procedure
Step-by-Step Procedure
[edit]
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine pattern-update
url http://update.juniper-updates.net/AV/device-name
291
NOTE: Other than the platform name, you should not change this URL unless you are
experiencing problems with it and have called for support.
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, Before you begin, there are several prerequisites that
must be met in order to perform a successful pattern database update:
• You must have network connectivity and access to the pattern database server.
• Your DNS settings and port settings (port 80) must be correct.
292
1. On the security device, specify the URL address of the pattern-update server.
2. (Optional) Specify how often the device should automatically check for pattern-server updates.
After the security device downloads the server-initialization file, the device checks that the pattern file is
valid. The device then parses the file to obtain information about it, including the file version, size, and
location of the pattern file server.
If the pattern file on the security device is out-of-date (or nonexistent because this is the first time you
are loading it), and, if the antivirus pattern-update service subscription is still valid, the device
automatically retrieves an updated pattern file from the pattern file server.
The following is an example of the CLI for configuring the database update feature:
utm {
feature-profile {
anti-virus {
type
kaspersky-lab-engine {
pattern-update
url url
interval minutes
}
}
}
}
IN THIS SECTION
Requirements | 293
Overview | 293
Configuration | 293
Verification | 294
293
The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to update the pattern file
automatically on a security device.
Requirements
Before you begin:
• Obtain a valid antivirus scanner license. See "Full Antivirus Protection Overview" on page 261.
• Get network connectivity and access to the pattern database server. See "Understanding Full
Antivirus Pattern Updates" on page 288.
• Configure your DNS settings and port settings (port 80) correctly. See DNS Overview.
Overview
In this example, you configure the security device to update the pattern file automatically every 120
minutes. (The default antivirus pattern-update interval is 60 minutes.)
Configuration
IN THIS SECTION
Procedure | 293
Procedure
Step-by-Step Procedure
[edit]
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine pattern-update
interval 120
294
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, in this example, you configure the security device to
update the pattern file automatically every 120 minutes. (The default antivirus pattern-update interval is
60 minutes.)
1. Select Configure>UTM>Anti-Virus.
2. Next to Interval, in the Kaspersky Lab Engine section, enter 120 in the box.
3. Click OK to check your configuration and save it as a candidate configuration, then click Commit
Options>Commit.
295
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to manually update antivirus patterns, enter the
following CLI command:
You can update the Kaspersky antivirus signature database offline without using a direct Internet
connection. This is required in some security installations and for sites that access the Internet through a
proxy server.
To update the Kaspersky antivirus signature database offline, you must configure a local webserver.
user@host# commit
To update the Kaspersky antivirus signature database, perform the following tasks:
1. Based on your hardware platform, enter the following URLs in your computer browser.
2. Copy all the files to a directory on your local webserver. You might want to use a download manager
for your browser to get all the files more quickly.
• For SRX210, SRX220, SRX240, SRX550, and SRX650 devices, the URL is http://update.juniper-
updates.net/KAV_engine/octeon32/.
296
4. Copy all the files to the same directory on your local server.
NOTE: The Kaspersky Lab engine is automatically loadable. For updating the Kaspersky
antivirus signature database offline, both pattern update files and Kaspersky Lab engine files
must be placed in the same folder on the local webserver.
5. Set the directory as a sharepoint that can be accessed through HTTP from the SRX Series device.
Release Description
15.1X49-D10 The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The full antivirus Pattern Updates is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
RELATED DOCUMENTATION
IN THIS SECTION
The full file-based antivirus module is the software subsystem on the gateway device that scans specific
Application Layer traffic to protect users from virus attacks and to prevent viruses from spreading. The
antivirus module allows you to configure scanning options on a global level, on a UTM profile level, or on
a firewall policy level. For more information, see the following topics:
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, the full file-based antivirus module is the software
subsystem on the gateway device that scans specific Application Layer traffic to protect users from virus
298
attacks and to prevent viruses from spreading. The antivirus software subsystem consists of a virus
signature database, an application proxy, the scan manager, and the scan engine.
Kaspersky Lab provides the scan engine and it works in the following manner:
1. A client establishes a TCP connection with a server and then starts a transaction.
2. If the application protocol in question is marked for antivirus scanning, the traffic is forwarded to an
application proxy for parsing.
3. When the scan request is sent, the scan engine scans the data by querying a virus pattern database.
4. The scan manager monitors antivirus scanning sessions, checking the properties of the data content
against the existing antivirus settings.
5. After scanning has occurred, the result is then handled by the scan manager.
The Kaspersky Lab scan engine supports regular file scanning and script file scanning. With regular file
scanning, the input object is a regular file. The engine matches the input content with all possible
signatures. With script file scanning, the input object is a script file. It can be JavaScript, VBScript, mIRC
script, bat scripts (DOS bat files), and other text scripts. The engine matches the input content only with
signatures for script files. Script scanning is only applicable for HTML content over the HTTP protocol.
There are two criteria for this scan type. First, the content-type field of this HTML document must be
text or HTML. Second, there is no content encoding in the HTTP header. If those two criteria are met,
an HTML parser is used to parse the HTML document for scripts.
SEE ALSO
The Kaspersky Lab scan engine is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, the Kaspersky Lab scan engine supports two modes of
scanning:
• scan-all—This option tells the scan engine to scan all the data it receives.
• scan-by-extension—This option bases all scanning decisions on the file extensions found in the traffic
in question.
299
When scanning content, you can use a file extension list to define a set of file extensions that are used
in file extension scan mode (scan-by-extension). The antivirus module can then scan files with
extensions on the scan-extension list. If an extension is not defined in an extension list, the file with that
extension is not scanned in scan-by-extension mode. If there is no extension present, the file in question
is scanned.
When using a file extension list to scan content, please note the following requirements:
SEE ALSO
The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, to configure file-extension scanning, use the following CLI
configuration statements:
security utm {
custom-objects {
filename-extension { ; set of list
name extension-list-name; #mandatory
value windows-extension-string;
}
}
}
}
}
IN THIS SECTION
Requirements | 300
Overview | 300
Configuration | 301
Verification | 302
The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, this example shows how to configure full antivirus file extension
scanning.
Requirements
Before you begin, decide the mode of scanning you require. See "Understanding Full Antivirus Scan
Mode Support" on page 298.
Overview
In this example, you perform the following tasks:
1. Create a file called extlist1 for the kasprof1 profile, and add extensions such as .zip, .js, and .vbs to
the extlist1.
2. Configure the scan mode setting. You can choose to scan all files or to scan only the files that have
the extensions that you specify. This example uses the scan by-extension option to configure the
device to use the extlist1 file.
301
Configuration
IN THIS SECTION
Procedure | 301
Procedure
Step-by-Step Procedure
1. Create a extension for the list and add extensions to the filename extension list.
[edit]
user@host# set security utm custom-objects filename-extension extlist1 value [zip js vbs]
[edit]
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile kasprof1
scan-options scan-extension extlist1
[edit]
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile kasprof1
scan-options scan-mode by-extension
[edit]
user@host# commit
302
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
SEE ALSO
The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, the antivirus module allows you to configure scanning options
on a global level, on a UTM profile level, or on a firewall policy level. Each configuration level has the
following implications:
• Global antivirus settings—Settings are applied to all antivirus sessions. Global settings are general
overall configurations for the antivirus module or settings that are not specific for profiles.
• Profile-based settings—Antivirus settings are different for different protocols within the same policy.
• Policy-based settings—Antivirus settings are different for different policies. Policy-based antivirus
settings are applied to all scan-specified traffic defined in a firewall policy.
The majority of antivirus settings are configured within an antivirus profile, bound to specified protocols,
and used by designated policies. These UTM policies are then applied to the traffic according to firewall
303
policies. If a firewall policy with an antivirus setting matches the properties of a traffic flow, the antivirus
setting is applied to the traffic session. Therefore, you can apply different antivirus settings for different
protocols and for different traffic sessions.
SEE ALSO
IN THIS SECTION
Requirements | 303
Overview | 303
Configuration | 304
Verification | 305
The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, this example shows how to configure full antivirus scan settings
at different levels.
Requirements
Before you begin, decide the type of scanning option you require. See "Understanding Full Antivirus
Scan Level Settings" on page 302.
Overview
In this example, you define antivirus scanning options on any of the following levels:
• Global level
Configuration
IN THIS SECTION
Procedure | 304
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
Results
From configuration mode, confirm your configuration by entering the show security utm command. If the
output does not display the intended configuration, repeat the configuration instructions in this example
to correct it.
For brevity, this show command output includes only the configuration that is relevant to this example.
Any other configuration on the system has been replaced with ellipses (...).
[edit]
user@host# show security utm
...
utm-policy p1 {
anti-virus {
http-profile av-profile
ftp {
upload-profile av-profile
download-profile av-profile
}
}
}
...
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show configuration security utm command.
SEE ALSO
The Intelligent prescreening is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, by default, intelligent prescreening is enabled to
improve antivirus scanning performance. The antivirus module generally begins to scan data after the
gateway device has received all the packets of a file. Intelligent prescreening tells the antivirus module
to begin scanning a file much earlier. In this case, the scan engine uses the first packet or the first several
packets to determine if a file could possibly contain malicious code. The scan engine does a quick check
on these first packets and if it finds that it is unlikely that the file is infected, it then decides that it is safe
to bypass the normal scanning procedure.
Intelligent prescreening is only intended for use with non-encoded traffic. It is not applicable for MIME
encoded traffic, mail protocols (SMTP, POP3, IMAP) and HTTP POST.
IN THIS SECTION
Requirements | 307
Overview | 307
Configuration | 307
307
Verification | 308
The Intelligent prescreening is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to configure full antivirus
intelligent prescreening. By default, intelligent prescreening is enabled to improve antivirus scanning
performance.
Requirements
Before you begin, understand how intelligent prescreening enables the improvement of antivirus
scanning performance. See "Understanding Full Antivirus Intelligent Prescreening" on page 306.
Overview
In this example, you perform the following tasks:
Configuration
IN THIS SECTION
Procedure | 307
Procedure
Step-by-Step Procedure
[edit]
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile kasprof1
scan-options intelligent-prescreening
308
[edit]
user@host# set security utm feature-profile anti-virus kaspersky-lab-engine profile kasprof1
scan-options no-intelligent-prescreening
NOTE: Intelligent prescreening is intended only for use with non-encoded traffic. It is not
applicable to mail protocols (SMTP, POP3, IMAP) or HTTP POST.
[edit]
user@host# commit
Verification
IN THIS SECTION
Purpose
Action
From the operational mode, enter the show security utm command.
309
The Content Size Limit is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, due to resource constraints, there is a default, device-dependent
limit on maximum content size for the database. The content size value is configurable. There is also a
lower and upper limit for maximum content size. (This range is device dependent and is not
configurable.)
The content size check occurs before the scan request is sent. The exact timing of this is protocol
dependent. If the protocol header contains an accurate content length field, the content size check takes
place when the content length field is extracted during header parsing. The content size usually refers to
file size. If there is no content length field, the size is checked while the antivirus module is receiving
packets. The content size, in this case, refers to accumulated TCP payload size. This setting can be used
in all protocols.
The Content Size Limit is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, to configure content size limits, use the following CLI
configuration statements:
The Decompression Layer Limit is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, the decompression layer limit specifies how many layers
of nested compressed files and files with internal extractable objects, such as archive files (tar), MS Word
and PowerPoint files, the internal antivirus scanner can decompress before it executes the virus scan.
For example, if a message contains a compressed .zip file that contains another compressed .zip file,
there are two compression layers. Decompressing both files requires a decompress layer setting of 2.
310
It is worth noting that during the transfer of data, some protocols use content encoding. The antivirus
scan engine must decode this layer, which is considered a decompression level, before it scans for
viruses.
A decompression layer could be a layer of a zipped file or an embedded object in packaged data. The
antivirus engine scans each layer before unpacking the next layer, until it either reaches the user-
configured decompress limit, reaches the device decompress layer limit, finds a virus or other malware,
or decompresses the data completely, whichever comes first.
As the virus signature database becomes larger and the scan algorithms become more sophisticated, the
scan engine has the ability to look deeper into the data for embedded malware. As a result, it can
uncover more layers of compressed data. The Juniper Networks device's level of security is limited by
decompress limit, which is based on the memory allocated to the security service. If a virus is not found
within the decompress limit, the user has an option to either pass or drop the data. This setting can be
used in all protocols.
The Decompression Layer Limit is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to configure decompression layer limits, use the
following CLI configuration statements:
The Scanning timeout parameter is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, the scanning timeout value includes the time frame
from when the scan request is generated to when the scan result is returned by the scan engine. The
time range can be 1 to 1800 seconds. By default, it is 180 seconds.
NOTE: This timeout parameter is used by all supported protocols. Each protocol can have a
different timeout value.
The Scanning timeout parameter is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to configure scanning timeouts, use the following CLI
configuration statements:
The Scan session Throttling is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, in an attempt to consume all available resources and
hinder the ability of the scan engine to scan other traffic, a malicious user might generate a large amount
of traffic all at once. To prevent such activity from succeeding, a session throttle is imposed for antivirus
resources, thereby restricting the amount of traffic a single source can consume at one time. The limit is
an integer with 100 as the default setting. This integer refers to the maximum allowed sessions from a
single source. You may change this default limit, but understand that if this limit is set high, that is
comparable to no limit.
312
Over-limit is a fallback setting for the connection-per-client limit. The default behavior of over-limit is to
block sessions. This is a per-policy setting. You can specify different settings for different UTM policies.
The Scan session Throttling is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to configure scan session throttling, use the following
CLI configuration statements:
Release Description
15.1X49-D10 The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Lab scan engine is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky Lab scan is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
313
15.1X49-D10 The Intelligent prescreening is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Intelligent prescreening is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Content Size Limit is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Content Size Limit is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Decompression Layer Limit is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The Decompression Layer Limit is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The Scanning timeout parameter is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The Scanning timeout parameter is not supported from Junos OS Release 15.1X49-D10 and Junos
OS Release 17.3R1 onwards.
15.1X49-D10 The Scan session Throttling is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Scan session Throttling is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
RELATED DOCUMENTATION
IN THIS SECTION
Fallback options tell the system how to handle the errors returned by either the scan engine or the scan
manager. Different antivirus scan results are handled in different manners. For example, if a scan result is
clean, the traffic is forwarded to the receiver. If the scan result is infected, the traffic is dropped. If the
scan results in an error, the result handling depends on the cause of the failure and the configuration
(fallback settings). For more information, see the following topics:
The Full Antivirus Scan Result Handling is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, different antivirus scan results are handled in
different manners. For example, if a scan result is clean, the traffic is forwarded to the receiver. If the
scan result is infected, the traffic is dropped. If the scan results in an error, the result handling depends
on the cause of the failure and the configuration (fallback settings).
The scan result handling action is to pass the message. In this case, no virus is detected and no error
code is returned. Or, an error code is returned, but the fallback option for this error code is set to log-
and-permit.
The scan result handling action is to block the message. In this case, either a virus is detected or an
error code is returned and the fallback option for this error code is BLOCK.
SEE ALSO
IN THIS SECTION
Purpose | 315
Action | 316
Purpose
The Monitoring Antivirus Scan Engine Status is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, using the CLI, you can view the following scan
engine status items:
• If the download completes, view database version timestamp virus record number.
Action
In the CLI, enter the user@host> show security utm anti-virus status command.
SEE ALSO
IN THIS SECTION
Purpose | 317
Action | 317
317
Purpose
The Monitoring Antivirus Session Status is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, using the CLI, you can view the following
session status items:
Action
In the CLI, enter the user@host> show security utm session status command.
IN THIS SECTION
Purpose | 317
Action | 318
Purpose
The Monitoring Antivirus Scan Results are not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, view statistics for antivirus requests, scan
results, and fallback counters.
Fallback applied status provides either a log-and-permit or block result when the following has occurred
• Timeout occurred.
• Out of resources.
• Other.
Action
To view antivirus scan results using the CLI editor, enter the user@host> show security utm anti-virus
statistics status command.
1. Select Monitor>Security>UTM>Anti-Virus.
• If the download completes, view database version timestamp virus record number.
Fallback applied status provides either a log-and-permit or block result when the following has
occurred
• Out of resources.
• Timeout occurred.
• Other.
2. You can click the Clear Anti-Virus Statistics button to clear all current viewable statistics and begin
collecting new statistics.
Fallback options notify the system how to handle the errors returned by either the scan engine or the
scan manager. The following is a list of possible errors:
The scan engine is initializing itself, for example, loading the signature database. During this phase,
the scan engine is not ready to scan a file. A file could either pass or be blocked according to this
setting.
Corrupt file is the error returned by the scan engine when engine detects a corrupted file.
Decompress layer error is the error returned by the scan engine when the scanned file has too many
compression layers.
Password protected file is the error returned by the scan engine when the scanned file is protected
by a password.
If the content size exceeds a set limit, the content is passed or blocked depending on the max-
content-size fallback option.
321
If the total number of messages received concurrently exceeds the device limits, the content is
passed or blocked depending on the too-many-request fallback option. (The allowed request limit is
not configurable.)
• Timeout
Scanning a complex file could consume resources and time. If the time taken for the scan exceeds the
timeout setting in the antivirus profile, the processing is terminated and the content is passed or
blocked without completing the virus checking. The decision is made based on the timeout fallback
option.
Virus scanning requires a great deal of memory and CPU resources. Due to resource constraints,
memory allocation requests can be denied by the system. This failure could be returned by either
scan engine (as a scan-code) or scan manager. When out-of-resources occurs, scanning is terminated.
• Default
All the errors other than those in the above list fall into this category. This could include either
unhandled system exceptions (internal errors) or other unknown errors.
The default fallback action for all the error types is log-and-permit.
The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
IN THIS SECTION
Requirements | 322
Overview | 322
Configuration | 322
Verification | 325
322
The Antivirus Scanning Fallback options are not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards. For previous releases, this example shows how to configure antivirus
scanning fallback options.
Requirements
Before you begin, understand the possible error types and the default fallback actions for those error
types. See "Understanding Antivirus Scanning Fallback Options" on page 320.
Overview
In this example, you configure a feature profile called kasprof, and set the fallback scanning options for
default, content-size, corrupt-file, decompress-layer, engine-not-ready, out-of-resources, password-file,
timeout, too-many-requests, as block.
NOTE: The command for changing the URL for the pattern database is:
[edit]
user@host# edit security utm feature-profile anti-virus kaspersky-lab-engine
[edit security utm feature-profile anti-virus kaspersky-lab-engine]
user@host# set pattern-update url http://update.juniper-updates.net/AV/<device-name>
Configuration
IN THIS SECTION
Procedure | 323
323
Procedure
To quickly configure this example, copy the following commands, paste them into a text file, remove any
line breaks, change any details necessary to match your network configuration, copy and paste the
commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
[edit]
user@host# set security utm feature-profile anti-virus type kaspersky-lab-engine
324
2. Create a profile for the Kaspersky Lab engine and configure a list of fallback options as block or log-
and-permit.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
anti-virus command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
user@host#show security utm feature-profile anti-virus
kaspersky-lab-engine {
profile kasprof1 {
fallback-options {
default block;
corrupt-file block;
password-file block;
decompress-layer block;
content-size block;
engine-not-ready block;
timeout block;
out-of-resources block;
too-many-requests block;
}
}
}
If you are done configuring the device, enter commit from configuration mode.
325
Verification
IN THIS SECTION
Purpose
Action
From operational mode, enter the show configuration security utm command.
SEE ALSO
15.1X49-D10 The Full Antivirus Scan Result Handling is not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Monitoring Antivirus Scan Engine Status is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Monitoring Antivirus Session Status is not supported from Junos OS Release 15.1X49-D10
and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Monitoring Antivirus Scan Results are not supported from Junos OS Release 15.1X49-D10 and
Junos OS Release 17.3R1 onwards.
15.1X49-D10 The Kaspersky and Express Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
326
15.1X49-D10 The Antivirus Scanning Fallback options are not supported from Junos OS Release 15.1X49-D10
and Junos OS Release 17.3R1 onwards.
RELATED DOCUMENTATION
Virus-Detected Notifications | 82
Full Antivirus Application Protocol Scanning | 326
Full Antivirus Protection | 260
IN THIS SECTION
Full Antivirus uses a scanning engine and virus signature databases to protect against virus-infected
files, worms, trojans, spyware, and other malware over POP3, HTTP, SMTP, IMAP, and FTP protocols.
For more information, see the following topics:
327
The Full Antivirus Application Protocol Scanning is not supported from Junos OS Release 15.1X49-D10
and Junos OS Release 17.3R1 onwards. For previous releases, you can turn antivirus scanning on and off
on a per protocol basis. If scanning for a protocol is disabled in an antivirus profile, there is no
application intelligence for this protocol. Therefore, in most cases, traffic using this protocol is not
scanned. But if the protocol in question is based on another protocol for which scanning is enabled in an
antivirus profile, then the traffic is scanned as that enabled protocol.
The internal antivirus scan engine supports scanning for specific Application Layer transactions allowing
you to select the content (HTTP, FTP, SMTP, POP3, or IMAP traffic) to scan. For each content type that
you are scanning, you have different configuration options.
Profile-based settings, including enable/disable, scan-mode, and scan result handling settings, may not
be applicable to all supported protocols. The following table lists profile-based settings and their
protocol support.
Enable or disable scanning on per protocol basis All protocols support this feature
"Understanding Full Antivirus Scan Mode Support" on page 298, including file All protocols support this feature
extension scanning
"Understanding Full Antivirus Content Size Limits" on page 309 All protocols support this feature
"Understanding Full Antivirus Decompression Layer Limits" on page 309 All protocols support this feature
"Understanding Full Antivirus Scanning Timeouts" on page 311 All protocols support this feature
"Understanding Antivirus Scanning Fallback Options" on page 320 All protocols support this feature
"Understanding E-Mail Virus-Detected Notifications" on page 83 SMTP, POP3, and IMAP only
"Understanding Custom Message Virus-Detected Notifications" on page 85 All protocols support this feature
SEE ALSO
The HTTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, if antivirus scanning is enabled for Hypertext Transfer
Protocol (HTTP) traffic in a content security profile, TCP traffic to defined HTTP service ports (generally
port 80) is monitored. For HTTP traffic, the security device scans both HTTP responses and requests
(get, post, and put commands).
For HTTP antivirus scanning, both HTTP 1.0 and 1.1 are supported. If the protocol version is HTTP 0.x ,
the antivirus scanner attempts to scan the traffic. Unknown protocols are bypassed. For example, some
application protocols use HTTP as the transport but do not comply with HTTP 1.0 or 1.1. These are
considered unknown protocols and are not scanned.
This is a general description of how HTTP traffic is intercepted, scanned, and acted upon by the antivirus
scanner:
1. An HTTP client sends an HTTP request to a webserver or a webserver responds to an HTTP request.
2. The security device intercepts the request and passes the data to the antivirus scanner, which scans
it for viruses.
3. After completing the scan, the device follows one of two courses:
• If there is a virus, the device drops the request and sends an HTTP message reporting the
infection to the client.
329
With script-only scanning, the input object is a script file. It can be JavaScript, VBScript, mIRC script, bat
scripts (DOS bat files) and other text scripts. The engine matches the input content only with signatures
for script files. Script scanning is applicable only for HTML content over the HTTP protocol. There are
two criteria for this scan-type. First, the content-type field of this HTML document must be text or
HTML. Second, there is no content encoding in the HTTP header. If those two criteria are met, an HTML
parser is used to parse the HTML document.
SEE ALSO
The HTTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to enable antivirus scanning for HTTP traffic, enter the
following CLI configuration statement:
The FTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, if antivirus scanning is enabled for File Transfer Protocol (FTP) traffic in a content
security profile, the security device monitors the control channel and, when it detects one of the FTP
commands for transferring data, it scans the data sent over the data channel.
This is a general description of how FTP traffic is intercepted, scanned, and acted upon by the antivirus
scanner:
1. A local FTP client opens an FTP control channel to an FTP server and requests the transfer of some
data.
2. The FTP client and server negotiate a data channel over which the server sends the requested data.
The security device intercepts the data and passes it to the antivirus scan engine, which scans it for
viruses.
3. After completing the scan, the device follows one of two courses:
330
• If there is a virus, the device replaces the data with a drop message in the data channel and sends
a message reporting the infection in the control channel.
The FTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, to enable antivirus scanning for File Transfer Protocol (FTP) traffic, enter the following
CLI configuration statement:
NOTE: In order to scan FTP traffic, the FTP ALG must be enabled.
SEE ALSO
IN THIS SECTION
Starting from Junos OS Release 15.1X49-D10 and Junos OS Release 17.3R1, only Sophos Antivirus
supports the SMTP antivirus scanning. If SMTP (Simple Mail Transfer Protocol) antivirus scanning is
enabled in a content security profile, the security device redirects traffic from local SMTP clients to the
antivirus scanner before sending it to the local mail server.
331
Chunking is an alternative to the data command. It provides a mechanism to transmit a large message in
small chunks. It is not supported. Messages using chunking are bypassed and are not scanned.
This is a general description of how SMTP traffic is intercepted, scanned, and acted upon by the
antivirus scanner:
1. An SMTP client sends an e-mail message to a local mail server or a remote mail server forwards an e-
mail message via SMTP to the local mail server.
2. The security device intercepts the e-mail message and passes the data to the antivirus scanner, which
scans it for viruses.
3. After completing the scan, the device follows one of two courses:
• If there is no virus, the device forwards the message to the local server.
If the antivirus scanner finds a virus in an e-mail message, the original message is dropped, the message
body is truncated, and the content is replaced by a message that may appear as follows:
nContent-Type: text/plain
Your mail <src_ip> : <src_port> — <dst_port>: <dst_port> contains contaminated file <filename>
with virus <virusname>, so it is dropped.
If a scan error is returned and the fail mode is set to drop, the original message is dropped and the entire
message body is truncated. The content is replaced by a message that may appear as follows:
nContent-Type: text/plain
Your mail <src_ip> : <src_port> — <dst_port>: <dst_port> is dropped for <reason>.
If notify-sender-on-virus is set and the message is dropped due to a detected virus, an e-mail is sent to the
mail sender. The content of the notification may appear as follows:
From: <admin>@<gateway_ip>
To: <sender_e-mail>
332
If notify-sender-on-error-drop is set and the message is dropped due to a scan error, an e-mail is sent to the
mail sender of the scanned message. The content of the e-mail may appear as follows:
From: <admin>@<gateway_ip>
To: <sender_e-mail>
Subject: Mail Delivery Failure
This message is created automatically by mail delivery software. A message that you sent could
not be delivered to one or more of its recipients for the reason:
<src_ip> : <src_port> — <dst_port>: <dst_port> <ENVID> <reason>.
e-mail Header is:
<header of scanned e-mail>
If a scan error is returned and the fail mode is set to pass, the antivirus module passes the message
through to the server. If notify-recipient-on-error-pass is set, the following string is appended to the end of
the subject field:
SEE ALSO
The SMTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to enable antivirus scanning for SMTP traffic, enter the
following CLI configuration statement:
IN THIS SECTION
The POP3 antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, if Post Office Protocol 3 (POP3) antivirus scanning is
enabled in a content security profile, the security device redirects traffic from a local mail server to
antivirus scanner before sending it to the local POP3 client.
This is a general description of how POP3 traffic is intercepted, scanned, and acted upon by the
antivirus scanner.
1. The POP3 client downloads an e-mail message from the local mail server.
2. The security device intercepts the e-mail message and passes the data to the antivirus scanner, which
scans it for viruses.
3. After completing the scan, the security device follows one of two courses:
• If there is a virus, the device sends a message reporting the infection to the client.
If the antivirus scanner finds a virus in an e-mail message, the original message is dropped, the message
body is truncated, and the content is replaced by a message that may appear as follows:
nContent-Type: text/plain
Your mail <src_ip> : <src_port> — <dst_port>: <dst_port> contains contaminated file <filename>
with virus <virusname>, so it is dropped.
If notify-sender-on-virus is set and the message is dropped due to a detected virus, an e-mail is sent to the
mail sender.
From: <admin>@<gateway_ip>
To: <sender_e-mail>
Subject: Mail Delivery Failure
This message is created automatically by mail delivery software. A message that you sent could
not be delivered to one or more of its recipients for the reason:
<src_ip> : <src_port> — <dst_port>: <dst_port> contaminated file <filename> with virus
<virusname>.
e-mail Header is:
<header of scanned e-mail>
If notify-sender-on-error-drop is set and the message is dropped due to a scan error, an e-mail is sent to the
mail sender of the scanned message. The content of the e-mail may appear as follows:
From: <admin>@<gateway_ip>
To: <sender_e-mail>
Subject: Mail Delivery Failure
This message is created automatically by mail delivery software. A message that you sent could
not be delivered to one or more of its recipients for the reason:
<src_ip> : <src_port> — <dst_port>: <dst_port> <reason>.
e-mail Header is:
<header of scanned e-mail>
335
If a scan error is returned and the fail mode is set to pass, the antivirus module passes the message
through to the server. If notify-recipient-on-error-pass is set, the following string is appended to the end of
subject field:
SEE ALSO
The POP3 antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to enable antivirus scanning for POP3 traffic, enter the
following CLI configuration statement:
IN THIS SECTION
The IMAP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, if IMAP (Internet Message Access Protocol) antivirus
scanning is enabled in a content security profile, the security device redirects traffic from a local mail
server to the internal antivirus scanner before sending it to the local IMAP client.
This is a general description of how IMAP traffic is intercepted, scanned, and acted upon by the antivirus
scanner.
1. The IMAP client downloads an e-mail message from the local mail server.
2. The security device intercepts the e-mail message and passes the data to the antivirus scanner, which
scans it for viruses.
3. After completing the scan, the security device follows one of two courses:
• If there is a virus, the device sends a message reporting the infection to the client.
If the antivirus scanner finds a virus in an e-mail message, the original message is dropped, the message
body is truncated, and the content is replaced by a message that may appear as follows:
nContent-Type: text/plain
Your mail <src_ip> : <src_port> — <dst_port>: <dst_port> contains contaminated file <filename>
with virus <virusname>, so it is dropped.
If notify-sender-on-virus is set and the message is dropped due to a detected virus, an e-mail is sent to the
mail sender.
From: <admin>@<gateway_ip>
To: <sender_e-mail>
Subject: Mail Delivery Failure
This message is created automatically by mail delivery software. A message that you sent could
not be delivered to one or more of its recipients for the reason:
337
If notify-sender-on-error-drop is set and the message is dropped due to a scan error, an e-mail is sent to the
mail sender of the scanned message. The content of the e-mail may appear as follows:
From: <admin>@<gateway_ip>
To: <sender_e-mail>
Subject: Mail Delivery Failure
This message is created automatically by mail delivery software. A message that you sent could
not be delivered to one or more of its recipients for the reason:
<src_ip> : <src_port> — <dst_port>: <dst_port> <reason>.
e-mail Header is:
<header of scanned e-mail>
If a scan error is returned and the fail mode is set to pass, the antivirus module passes the message
through to the server. If notify-recipient-on-error-pass is set, the following string is appended to the end of
subject field:
Mail Fragments — It is possible to chop one e-mail into multiple parts and to send each part through a
different response. This is called mail fragmenting and most popular mail clients support it in order to
send and receive large e-mails. Scanning of mail fragments is not supported by the antivirus scanner and
in such cases, the message body is not scanned.
Partial Content — Some mail clients treat e-mail of different sizes differently. For example, small e-mails
(less than 10 KB) are downloaded as a whole. Large e-mails (for example, less than 1 MB) are chopped
into 10 KB pieces upon request from the IMAP server. Scanning of any partial content requests is not
supported by the antivirus scanner.
IMAP Uploads — Only antivirus scanning of IMAP downloads is supported. IMAP upload traffic is not
scanned.
338
The IMAP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, to enable antivirus scanning for IMAP traffic, enter the
following CLI configuration statement:
Release Description
15.1X49-D10 The Full Antivirus Application Protocol Scanning is not supported from Junos OS Release 15.1X49-
D10 and Junos OS Release 17.3R1 onwards.
15.1X49-D10 The HTTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The HTTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The FTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 onwards.
15.1X49-D10 The FTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 onwards.
15.1X49-D10 Starting from Junos OS Release 15.1X49-D10 and Junos OS Release 17.3R1, only Sophos
Antivirus supports the SMTP antivirus scanning.
15.1X49-D10 The SMTP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The POP3 antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The POP3 antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The IMAP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
339
15.1X49-D10 The IMAP antivirus scanning is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
RELATED DOCUMENTATION
Virus-Detected Notifications | 82
HTTP Trickling to Prevent Timeouts | 87
Full Antivirus Protection Overview | 261
IN THIS SECTION
Enhanced Web Filtering (EWF) with Websense is an integrated URL filtering solution. When you enable
the solution on the device, the firewall intercepts the HTTP and the HTTPS requests and sends the
HTTP URL or the HTTPS source IP to the Websense ThreatSeeker Cloud (TSC). For more information,
see the following topics:
IN THIS SECTION
The Integrated Web Filtering is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, with integrated Web filtering, the firewall intercepts
every HTTP request in a TCP connection and extracts the URL from the HTTP request. Each individual
HTTP request is blocked or permitted based on URL filtering profiles defined by you. The decision
making is done on the device after it identifies a category for a URL.
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards.
A URL category is a list of URLs grouped by content. URL categories are predefined and maintained by
Surf-Control or are defined by you. Surf-Control maintains about 40 predefined categories. When
defining your own URL categories, you can group URLs and create categories specific to your needs.
You define your own categories using URL pattern list and custom URL category list custom objects.
Once defined, you can select your categories when you configure your Web filtering profile. Each
category can have a maximum of 20 URLs. When you create a category, you can add either the URL or
the IP address of a site. When you add a URL to a user-defined category, the device performs DNS
lookup, resolves the host name into IP addresses, and caches this information. When a user tries to
access a site with the IP address of the site, the device checks the cached list of IP addresses and tries to
resolve the hostname. Many sites have dynamic IP addresses, meaning that their IP addresses change
periodically. A user attempting to access a site can type an IP address that is not in the cached list on the
device. Therefore, if you know the IP addresses of sites you are adding to a category, enter both the URL
and the IP address(es) of the site.
If a URL appears in both a user-defined category and a predefined category, the device matches the URL
to the user-defined category.
Web filtering is performed on all the methods defined in HTTP 1.0 and HTTP 1.1.
The integrated Web filtering solution intercepts every HTTP request in a TCP connection. In this case,
the decision making is done on the device after it identifies the category for a URL either from user-
defined categories or from a category server (SurfControl Content Portal Authority provided by
Websense). The Integrated Web filtering is not supported from Junos OS Release 15.1X49-D10
onwards.
The integrated Web filtering feature is a separately licensed subscription service. When the license key
for Web filtering has expired, no URLs are sent to the category server for checking, only local user-
defined categories are checked.
341
Integrated Web filtering solution is supported only on SRX210, SRX220, SRX240, SRX550, and SRX650
devices.
This is a general description of how Web traffic is intercepted and acted upon by the Web filtering
module.
3. The device extracts each URL in the HTTP request and checks its URL filter cache.
4. Global Web filtering allowlists and blocklists are checked first for block or permit.
5. If the HTTP request URL is allowed based on cached parameters, it is forwarded to the webserver. If
there is no cache match, a request for categorization is sent to the SurfControl server. (If the HTTP
request URL is blocked, the request is not forwarded and a notification message is logged.)
6. In the allowed case, the SurfControl server responds with the corresponding category.
7. Based on the identified category, if the URL is permitted, the device forwards the HTTP request to
the webserver. If the URL is not permitted, then a deny page is sent to the HTTP client.
By default, the device retrieves and caches the URL categories from the SurfControl CPA server. This
process reduces the overhead of accessing the SurfControl CPA server each time the device receives a
new request for previously requested URLs. You can configure the size and duration of the cache,
according to the performance and memory requirements of your networking environment. The lifetime
of cached items is configurable between 1 and 1800 seconds with a default value of 300 seconds.
You configure Web filtering profiles that permit or block URLs according to defined categories. A Web
filtering profile consists of a group of URL categories assigned one of the following actions:
• Permit — The device always allows access to the websites in this category.
• Block — The device blocks access to the websites in this category. When the device blocks access to
this category of websites, it displays a message in your browser indicating the URL category.
342
• Blocklist — The device always blocks access to the websites in this list. You can create a user-defined
category.
• Allowlist — The device always allows access to the websites in this list. You can create a user-defined
category.
NOTE: A predefined profile is provided and can be used if you choose not to define your own
profile.
A Web filtering profile may contain one blocklist or one allowlist, multiple user-defined and/or
predefined categories each with a permit or block action, and an Other category with a permit or block
action. You can define an action for all Other categories in a profile to specify what to do when the
incoming URL does not belong to any of the categories defined in the profile. If the action for the Other
category is block, the incoming URL is blocked if it does not match any of the categories explicitly
defined in the profile. If an action for the Other category is not specified, the default action of permit is
applied to the incoming URL not matching any category.
When a profile employs several categories for URL matching, those categories are checked for matches
in the following order:
1. If present, the global blocklist is checked first. If a match is made, the URL is blocked. If no match is
found...
2. The global allowlist is checked next. If a match is made, the URL is permitted. If no match is found...
3. User-defined categories are checked next. If a match is made, the URL is blocked or permitted as
specified. If no match is found...
4. Predefined categories are checked next. If a match is made, the URL is blocked or permitted as
specified. If no match is found...
5. The Other category is checked next. If a match is made, the URL is blocked or permitted as specified.
SEE ALSO
IN THIS SECTION
Requirements | 343
Overview | 343
Configuration | 344
Verification | 353
The Integrated Web Filtering is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards. For previous releases, this example shows how to configure integrated Web
filtering.
Requirements
Before you begin, learn more about Web filtering. See "Web Filtering Overview" on page 135.
Overview
In this example you configure integrated Web filtering custom objects, integrated Web filtering feature
profiles, and integrated Web filtering UTM policies. You also attach integrated Web filtering UTM
policies to security policies.
In the first example configuration you create a custom object called urllist3 that contains the pattern
http://www.example.net 1.2.3.4. The urllist3 custom object is then added to the custom URL category
custurl3.
In the second example configuration, you configure the Web filtering feature profile. You set the URL
blocklist filtering category to custblacklist, set the allowlist filtering category to custwhitelist and the type
of Web filtering engine to surf-control-integrated. Then you set the cache size parameters for Web
filtering to 500 KB, which is the default, and the cache timeout parameters to 1800.
You name the Surf Control server as surfcontrolserver and enter 8080 as the port number for
communicating with it. (Default ports are 80, 8080, and 8081.) Then you create a surf-control-
integrated profile name called surfprofile1.
Next you select a category from the included allowlist and blocklist categories or select a custom URL
category list you created for filtering against. Then you enter an action (permit, log and permit, block) to
go with the filter. You do this as many times as necessary to compile your allowlists and blocklists and
their accompanying actions. This example blocks URLs in the custurl3 category.
344
Then you enter a custom message to be sent when HTTP requests are blocked. This example configures
the device to send an ***access denied*** message. You select a default action (permit, log and permit,
block) for this profile for requests that experience errors. This example sets the default action to block.
You select fallback settings (block or log and permit) for this profile, in case errors occur in each
configured category. This example sets fallback settings to block.
Finally, you enter a timeout value in seconds. Once this limit is reached, fail mode settings are applied.
The default is 10 seconds, and you can enter a value from 10 to 240 seconds. This example sets the
timeout value to 10.
In the third example configuration, you create UTM policy utmp5 and attach it to profile surfprofile1.
In the final example configuration, you attach the UTM policy utmp5 to the security policy p5.
Configuration
IN THIS SECTION
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Custom category does not take precedence over predefined categories when it has the same name as
one of the predefined categories. We do not recommend having a custom category name be the same as
the predefined category name.
Step-by-Step Procedure
2. Configure the custom URL category list custom object using the URL pattern list.
4. Configure the custom URL category list custom object using the URL pattern list of untrusted sites.
6. Configure the custom URL category list custom object using the URL pattern list of trusted sites.
Results
From configuration mode, confirm your configuration by entering the show security utm custom-objects
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
For brevity, this show command output includes only the configuration that is relevant to this example.
Any other configuration on the system has been replaced with ellipses (...).
[edit]
userhost#show security utm custom-objects
url-pattern {
urllist3 {
value [ http://www.example.net ];
}
urllistblack {
value [ http://www.untrusted.com 13.13.13.13 ];
}
urllistwhite {
value [ http://www.trusted.com 7.7.7.7 ];
}
}
custom-url-category {
custurl3 {
value urllist3;
}
custblacklist {
value urllistblack;
}
custwhiltelist {
value urllistwhite;
}
}
If you are done configuring the device, enter commit from configuration mode.
347
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For
instructions on how to do that, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
3. Specify the surf-control-integrated Web filtering engine and set the cache size parameters.
7. Create a profile name and select a category from the included allowlist and blocklist categories.
9. Select a default action (permit, log and permit, block) for this profile for requests that experience
errors.
10. Select fallback settings (block or log and permit) for this profile.
Results
From configuration mode, confirm your configuration by entering the show security utm feature-profile
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
userhost#show security utm feature-profile
350
web-filtering {
url-whitelist custwhitelist;
url-blacklist custblacklist;
type juniper-local;
surf-control-integrated {
cache {
timeout 1800;
size 500;
}
server {
host surfcontrolserver;
port 8080;
}
profile surfprofile1 {
category {
custurl3 {
action block;
}
}
default block;
custom-block-message "***access denied ***";
fallback-settings {
default block;
server-connectivity block;
timeout block;
too-many-requests block;
}
timeout 10;
}
}
content-filtering {
profile contentfilter1;
}
If you are done configuring the device, enter commit from configuration mode.
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
351
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
Step-by-Step Procedure
[edit]
user@host# set security utm utm-policy utmp5 web-filtering http-profile surfprofile1
Results
From configuration mode, confirm your configuration by entering the show security utm utm-policy
command. If the output does not display the intended configuration, repeat the configuration
instructions in this example to correct it.
[edit]
userhost#show security utm utm-policy
...
utm-policy utmp5 {
content-filtering {
http-profile contentfilter1;
}
web-filtering {
http-profile surfprofile1;
}
}
If you are done configuring the device, enter commit from configuration mode.
352
To quickly configure this section of the example, copy the following commands, paste them into a text
file, remove any line breaks, change any details necessary to match your network configuration, copy
and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from
configuration mode.
set security policies from-zone trust to-zone untrust policy p5 match source-address any
set security policies from-zone trust to-zone untrust policy p5 match destination-address any
set security policies from-zone trust to-zone untrust policy p5 match application junos-http
set security policies from-zone trust to-zone untrust policy p5 then permit application-services
utm-policy utmp5
Step-by-Step Procedure
Results
From configuration mode, confirm your configuration by entering the show security policies command. If
the output does not display the intended configuration, repeat the configuration instructions in this
example to correct it.
[edit]
userhost#show security policies
from-zone trust to-zone untrust {
policy p5 {
match {
source-address any;
destination-address any;
application junos-http;
}
then {
permit {
application-services {
utm-policy utmp5;
}
}
}
}
}
If you are done configuring the device, enter commit from configuration mode.
Verification
IN THIS SECTION
Verifying the Attachment of Integrated Web Filtering UTM Policies to Security Policies | 354
Purpose
Action
From the top of the configuration in configuration mode, enter the show security utm custom-objects
command.
Purpose
Action
From the top of the configuration in configuration mode, enter the show security utm feature-profile
command.
Purpose
Action
From the top of the configuration in configuration mode, enter the show security utm command.
Verifying the Attachment of Integrated Web Filtering UTM Policies to Security Policies
Purpose
Verify the attachment of integrated Web filtering UTM policies to security policies.
Action
From the top of the configuration in configuration mode, enter the show security policies command.
355
SEE ALSO
Example: Enhancing Security by Configuring Redirect Web Filtering Using Custom Objects | 202
IN THIS SECTION
Purpose | 355
Action | 355
Purpose
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS Release
17.3R1 onwards. For previous releases, view global URL categories defined and maintained by
SurfControl.
Action
Enter the user@host# show groups junos-defaults CLI command. You can also look for custom-url-category.
15.1X49-D10 The Integrated Web Filtering is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Integrated Web filtering is not supported from Junos OS Release 15.1X49-D10 onwards.
15.1X49-D10 The Integrated Web Filtering is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
15.1X49-D10 The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 and Junos OS
Release 17.3R1 onwards.
356
RELATED DOCUMENTATION
Configuration Statements
address-blacklist | 365
address-whitelist | 367
admin-email | 368
anti-spam | 379
anti-virus | 383
avira-engine | 389
block-command | 391
block-content-type | 392
block-extension | 394
block-mime | 397
cache | 398
content-size | 419
content-size-limit | 423
corrupt-file | 424
custom-block-message | 426
custom-objects | 443
custom-page | 445
custom-page-file | 447
custom-tag-string | 449
custom-url-category | 450
decompress-layer | 452
decompress-layer-limit | 454
email-notify | 469
engine-not-ready | 471
exception | 474
feature-profile | 491
filename-extension | 502
hold-interval | 518
http-persist | 527
http-reassemble | 529
intelligent-prescreening | 530
ipc | 534
juniper-enhanced | 535
juniper-express-engine | 538
juniper-local | 541
kaspersky-lab-engine | 543
list | 547
mime-pattern | 555
mime-whitelist | 557
no-autoupdate | 559
no-intelligent-prescreening | 560
no-notify-mail-recipient | 562
no-sbl-default-server | 568
notify-mail-recipient | 573
no-uri-check | 579
out-of-resources | 581
over-limit | 584
packet-filter | 586
password-file | 590
permit-command | 593
policies | 594
primary-server | 610
profile | 623
protocol-command | 634
proxy-profile | 637
sbl | 642
sbl-default-server | 644
scan-extension | 645
scan-mode | 646
secondary-server | 655
server-connectivity | 662
session-scan | 664
site-reputation-action | 665
size (Security Web Filtering Cache) | 667
sockets | 673
sophos-engine | 674
source-address | 677
spam-action | 678
start-time | 680
surf-control-integrated | 681
sxl-retry | 684
sxl-timeout | 685
traffic-options | 720
trickling | 721
uri-check | 735
url-blacklist | 738
url-pattern | 740
url-whitelist | 743
url-whitelist | 745
utm | 748
default-configuration | 760
utm-policy | 768
web-filtering | 774
websense-redirect | 782
364
IN THIS SECTION
Syntax | 364
Description | 364
Options | 365
Syntax
Hierarchy Level
Description
Options
• quarantine—Show the warning message and permit/block the traffic based on user input.
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
address-blacklist
IN THIS SECTION
Syntax | 366
Description | 366
Syntax
address-blacklist list-name;
Hierarchy Level
Description
Enter an address blocklist (or allowlist) custom object for local list spam filtering.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
367
address-whitelist
IN THIS SECTION
Syntax | 367
Description | 367
Syntax
address-whitelist list-name;
Hierarchy Level
Description
Enter an address-allowlist (or blocklist) custom-object for local list spam filtering.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
admin-email
IN THIS SECTION
Syntax | 368
Description | 369
Syntax
admin-email email-address;
Hierarchy Level
Description
You can configure the device to notify a specified administrator when patterns are updated. This is an e-
mail notification with a custom message and a custom subject line.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 370
Description | 370
Syntax
administrator-email email-address;
Hierarchy Level
Description
Configure the administrator e-mail address that will be notified when a fallback-block occurs. This is an
e-mail notification with a custom message and a custom subject line.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
371
IN THIS SECTION
Syntax | 371
Description | 371
Syntax
Hierarchy Level
Description
Configure the administrator e-mail address that will be notified when a virus is detected by Sophos
antivirus. This is an e-mail notification with a custom message and a custom subject line.
372
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 372
Description | 373
Syntax
allow-email;
373
Hierarchy Level
Description
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
374
IN THIS SECTION
Syntax | 374
Description | 374
Syntax
allow–email;
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 375
Description | 376
Options | 376
Syntax
application {
[application];
any;
}
376
Hierarchy Level
[edit security policies from-zone zone-name to-zone zone-name policy policy-name match]
Description
Specify the IP or remote procedure call (RPC) application or set of applications to be used as match
criteria.
Starting in Junos OS Release 19.1R1, configuring the application statement at the [edit security policies
from-zone zone-name to-zone zone-name policy policy-name match] hierarchy level is optional if the dynamic-
application statement is configured at the same hierarchy level.
Options
application- Name of the predefined or custom application or application set used as match
name-or-set criteria.
NOTE: A custom application that does not use a predefined destination port
for the application will not be included in the any option, and must be named
explicitly.
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 377
Description | 378
Options | 378
Syntax
application-proxy {
traceoptions {
flag flag;
}
}
378
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
379
anti-spam
IN THIS SECTION
Syntax | 379
Description | 380
Options | 380
Syntax
anti-spam {
address-blacklist list-name;
address-whitelist list-name;
sbl {
profile profile-name {
custom-tag-string [string];
(sbl-default-server | no-sbl-default-server);
spam-action (block | tag-header | tag-subject);
}
}
traceoptions flag flag;
}
Hierarchy Level
Description
Configure UTM antispam features. You can also configure the default UTM configuration for antispam
feature profile. If you do not configure any option in the antispam feature profile, the values configured
in the default UTM configuration are applied.
The antispam feature examines transmitted e-mail messages to identify e-mail spam. When the device
detects a message deemed to be spam, it blocks the e-mail message or tags the e-mail message header
or subject with a preprogrammed string. Antispam filtering uses both a third-party server-based Spam
Block List (SBL) and optionally created local allowlists (benign) and blocklists (malicious) for filtering
against e-mail messages.
NOTE: A license check for the antispam configuration is performed at the time of a commit and
will provide a warning if a valid license is not installed on the device. Once a valid license is
installed on the device then a custom antispam profile or the default profile will be able to
process traffic. If a license is expired or is not installed, the antivirus service will not process
traffic.
In the default UTM profile, the antispam type is configured as SBL instead of none. This
configuration enables SBL. However, to use this feature, you must enable the SBL server using
the [edit security utm default-configuration anti-spam sbl sbl-default-server] command.
Options
address-blacklist Enter an address blocklist custom object for local list spam filtering.
sbl Antispam filtering allows you to use both a third-party server-based spam block list
(SBL) and to optionally create your own local allowlists and blocklists for filtering
against e-mail messages.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 381
Description | 382
Options | 382
Syntax
anti-spam {
smtp-profile profile-name;
}
382
Hierarchy Level
Description
Configures a UTM policy for the antispam SMTP protocol and attach this policy to a security profile to
implement it. The device can block and drop detected spam at either the connection level or the e-mail
level. When the SMTP sender is identified as a spam sender based on its IP address, the SMTP
connection is rejected and dropped. When a particular e-mail sender is identified as spam sender based
on its sender address, the e-mail is rejected and dropped.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
anti-virus
IN THIS SECTION
Syntax | 383
Description | 385
Options | 385
Syntax
anti-virus {
mime-whitelist {
exception;
list;
}
sophos-engine {
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
timeout (block | log-and-permit | permit);
too-many-requests (block | log-and-permit | permit);
}
notification-options {
fallback-block {
custom-message;
384
custom-message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message;
custom-message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message;
custom-message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
pattern-update {
email-notify {
admin-email;
custom-message;
custom-message-subject;
}
interval;
no-autoupdate;
proxy {
password;
port;
server;
username;
}
routing-instance;
url;
}
scan-options {
content-size-limit;
timeout seconds;
(uri-check | no-uri-check);
}
server {
ip;
routing-instance;
}
sxl-retry;
385
sxl-timeout seconds;
trickling timeout;
}
traceoptions {
flag name;
}
url-whitelist;
}
Hierarchy Level
Description
Configure UTM Sophos antivirus features. You can also configure the default UTM configuration for
antivirus feature profile. If you do not configure any option in the antivirus feature profile, the values
configured in the default UTM configuration are applied. Antivirus, one of several features including
content filtering, antispam, and Web filtering, makes up Juniper’s UTM suite, provides the ability to
prevent threats at the gateway before they enter the network.
NOTE: A license check for the antivirus configuration is performed at the time of a commit and
will provide a warning if a valid license is not installed on the device. Once a valid license is
installed on the device then a custom antivirus profile or the default profile will be able to
process traffic. If a license is expired or is not installed, the antivirus service will not process
traffic.
Options
mime-whitelist This is the comprehensive list for those MIME types that can bypass antivirus
scanning.
sophos-engine The antivirus engine that is used on the device. You can only have one engine type
running and you must restart the device if you change engines.
fallback-options Fallback options tell the system how to handle the errors.
notification-options There are multiple notification options you can configure to trigger when a virus is
detected.
pattern-update You can configure the security device to regularly update the pattern file
automatically, or you can update the file manually.
server Sophos Antivirus (SAV) and antispam first hop DNS server.
sxl-retry Number of retry attempts to the remote Sophos Extensible List (SXL) server when a
request timeout occurs.
• Range: 0 through 5
• Range: 1 through 5
trickling HTTP trickling is a mechanism used to prevent the HTTP client or server from
timing-out during a file transfer or during antivirus scanning.
url-whitelist Antivirus URL allowlist. A URL allowlist is a unique custom list that you define in
which all the URLs or IP addresses in that list for a specified category are always
bypassed for scanning.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 387
Description | 388
Options | 388
Syntax
anti-virus {
ftp {
download-profile profile-name;
upload-profile profile-name;
}
388
http-profile profile-name;
imap-profile profile-name;
pop3-profile profile-name;
smtp-profile profile-name;
}
Hierarchy Level
Description
Configures a UTM policy for the antivirus protocols and attaches this policy to a security profile to
implement it. The internal antivirus scan engine supports scanning for specific Application Layer
transactions allowing you to select the content (HTTP, FTP, SMTP, POP3, or IMAP traffic) to scan.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
UTM Overview | 2
avira-engine
IN THIS SECTION
Syntax | 389
Description | 390
Syntax
avira-engine {
pattern-update {
email-notify {
admin-email admin-email;
custom-message custom-message;
custom-message-subject custom-message-subject;
}
390
interval interval;
no-autoupdate;
proxy-profile proxy-profile;
routing-instance routing-instance;
start-time start-time;
url url;
}
}
Hierarchy Level
Description
The Avira scan engine is a licensed feature provided as a downloadable module. Download and install
the Avira scan engine either through SRX with Internet connectivity to Juniper hosted URL, user hosted
URL, or manually.
The Antivirus engine provides a full file-based virus scanning function which is available through a
licensed subscription service. When your antivirus license key expires, you can continue to use the
locally stored antivirus signatures without any updates. In case, the local database is deleted, antivirus
scanning is also disabled.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
391
block-command
IN THIS SECTION
Syntax | 391
Description | 391
Syntax
block-command protocol-command-list;
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
block-content-type
IN THIS SECTION
Syntax | 392
Description | 393
Options | 393
Syntax
Hierarchy Level
Description
Apply blocks to other available content such as exe, http-cookie, java-applet. This is for HTTP only.
Options
• activex—Block ActiveX.
• http-cookie—Block cookies.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
394
block-extension
IN THIS SECTION
Syntax | 394
Description | 394
Syntax
block-extension extension-list;
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 395
Description | 396
Options | 396
Syntax
block-message {
type {
custom-redirect-url;
}
url url;
}
396
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
397
block-mime
IN THIS SECTION
Syntax | 397
Description | 397
Options | 398
Syntax
block-mime {
exception list-name;
list list-name;
}
Hierarchy Level
Description
Apply MIME pattern list custom-objects to the content-filtering profile for blocking MIME types.
398
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
cache
IN THIS SECTION
Syntax | 399
Description | 399
Options | 399
Syntax
cache {
size value;
timeout value;
}
Hierarchy Level
Description
Set the cache parameters for Surf-Control-Integrated Web filtering and Enhanced Web Filtering.
Options
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5 for surf-control integrated.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards.
IN THIS SECTION
Syntax | 400
Description | 401
Options | 401
Syntax
category (all | content-security | fw-auth | screen | alg | nat | flow | sctp | gtp | ipsec |
idp | rtlog | pst-ds-lite | appqos | secintel | aamw | dnsf)
401
Hierarchy Level
Description
Set the category of logging to all or content-security. Note that for the WELF format, the category must
be set to content-security.
Options
• all—All events are logged. By default, all the events listed in the category parameter are logged.
Release Information
Statement introduced in Junos OS Release 10.0. Statement modified in Junos OS Release 15.1X49-D40.
The [edit logical-systems name security log stream stream-name] hierarchy level introduced in Junos OS
Release 18.2R1.
The [edit tenants tenant-name security log stream stream-name] hierarchy levels introduced in Junos OS
Release 18.3R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 403
403
Description | 403
Options | 412
Syntax
category name{
action (block | log-and-permit | permit | quarantine);
custom-message message-name;
}
Hierarchy Level
Description
Select a custom URL category list you created (custom objects) for filtering against. The custom-message
configuration option is used to notify the users when the URL is blocked or quarantined for each EWF
category. You can customize the message with options such as user message or redirect URL. User
messages indicate that website access has been blocked by an organization's access policy. Redirect
URLs redirect a blocked or quarantined URL to any user-defined URL. Table 7 on page 404 shows the
list of categories predefined by Websense.
Starting with Junos OS Release 17.4R1, you can download and dynamically load new Enhanced Web
Filtering (EWF) categories. The downloading and dynamic loading of the new EWF categories do not
require a software upgrade. Websense occasionally releases new EWF categories. EWF classifies
404
websites into categories according to host, URL, or IP address and performs filtering based on the
categories.
NOTE: Existing configurations are not affected by the new categories but can be modified to
make use of the new categories.
1 Adult Material 0
3 Education 0
4 Government 0
6 Religion 0
8 Special Events 0
9 Information Technology 0
10 Abortion 0
11 Advocacy Groups 0
12 Entertainment 0
405
13 Gambling 0
14 Games 0
15 Illegal or Questionable 0
16 Job Search 0
17 Shopping 0
18 Sports 0
19 Tasteless 0
20 Travel 0
21 Vehicles 0
22 Violence 0
23 Weapons 0
24 Drugs 0
26 Intolerance 0
27 Health 0
406
28 Website Translation 9
29 Advertisements 110
64 User-Defined 0
65 Nudity 1
66 Adult Content 1
67 Sex 1
69 Cultural Institutions 3
72 Military 4
73 Political Organizations 4
74 General Email 91
75 Proxy Avoidance 9
78 Web Hosting 9
407
79 Web Chat 91
80 Hacking 9
81 Alternative Journals 5
82 Non-Traditional Religions 6
83 Traditional Religions 6
88 Prescribed Medications 24
89 Nutrition 24
90 Abused Drugs 24
91 Internet Communication 0
92 Pro-Choice 10
93 Pro-Life 10
408
94 Sex Education 1
97 Educational Institutions 3
103 Hobbies 7
110 Productivity 0
111 Marijuana 24
409
116 Bandwidth 0
126 Security 0
146 Miscellaneous 0
Options
Release Information
Starting with Junos OS Release 15.1X49-D10, the SurfControl integrated feature is no longer supported.
For previous releases, statement introduced in Junos OS Release 9.5. The custom-message option
introduced in Junos OS Release 15.1X49-D110.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 413
Description | 414
Options | 414
Syntax
content-filtering {
block-command;
block-content-type {
activex;
exe;
http-cookie;
java-applet;
zip;
}
block-extension;
block-mime {
exception;
list;
}
notification-options {
custom-message;
(notify-mail-sender | no-notify-mail-sender);
log; /* New event logging global setting */
type (message | protocol-only);
} permit-command;
rule-set rule-set-name { /* New provision to add to default rules */
rule rule-name {
414
}
}
traceoptions {
flag name;
}
type (content-filtering-none | local);
}
Hierarchy Level
Description
Configure UTM content-filtering features. You can also configure the default UTM configuration for
content filtering feature profile. If you do not configure any option in the content filtering feature profile,
the values configured in the default UTM configuration are applied. The content filtering feature
controls file transfers across the gateway by checking traffic against configured filter lists. It evaluates
the traffic before all other UTM features, except Web filtering.
NOTE: A license check for the content filtering configuration is performed at the time of a
commit and will provide a warning if a valid license is not installed on the device. Once a valid
license is installed on the device then a custom content filtering profile or the default profile will
be able to process traffic. If a license is expired or is not installed, the content filtering service will
not process traffic.
Options
block-content-type Blocks to other available content such as exe, http-cookie, java-applet. This is for
HTTP only.
block-mime MIME pattern list custom-objects to the content-filtering profile for blocking MIME
types.
traceoptions Defines tracing operations for default UTM configuration for content filtering
feature.
type Type of content filtering solution or URL filtering solution used by the device.
Release Information
Starting in Junos OS Release 21.4R1, content filtering is performed by detecting the file content and not
the file extensions. So, content filtering options based on mime-type, content-type, and protocol
command is not supported. After you upgrade to Junos OS Release 21.4R1, content filtering option
under the feature-profile hierarchy are no more available for configuration. The rule-set and rules
configurations are introduced under the [edit security utm utm-policy <utm-policy-name> content-filtering]
hierarchy level. These rules and rule-set allows you to configure direction specific content filters and
connection reset.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
416
IN THIS SECTION
Syntax | 416
Description | 417
Options | 417
Syntax
content-filtering {
ftp {
download-profile profile-name;
upload-profile profile-name;
}
http-profile profile-name;
imap-profile profile-name;
pop3-profile profile-name;
smtp-profile profile-name;
rule-set rule-set-name { rule rule-name {
match {
application any; /*http, pop3, impa, smtp, ftp */
direction any; /* upload or download */
file-type exe; /*predetected file types*/
}
then {
action {
no-action; /* No action */
/* block Block and drop connection */
/* close-client Close client */
/* close-server Close server */
/* close-client-and-server Close client and server */
417
}
notification {
log; /* event logging */
endpoint { /* endpoint notification options */
type protocol-only;
notify-mail-sender;
custom-message "CF Blocks content";
}
Hierarchy Level
Description
Configures a UTM policy for the content filtering protocols and attach this policy to a security profile to
implement it. Each supported protocol may implement available content filters differently. Not all
filtering capabilities are supported for each protocol. The HTTP protocol supports all content filtering
features. The FTP protocol supports only lock Extension List and Protocol Command Block List. The e-
mail protocols (SMTP, IMAP, POP3) supports limited to Block Extension List, Protocol Command Block
List, and MIME Pattern Filtering.
Options
Release Information
Starting in Junos OS Release 21.4R1, content filtering is performed by detecting the file content and not
the file extensions. We have introduced the rule-set and rules configurations under the [edit security utm
utm-policy <utm-policy-name> content-filtering] hierarchy level. These rules and rule-set allows you to
configure direction specific content filters and connection reset.
So, content filtering options based on mime-type, content-type, and protocol command is not
supported. After you upgrade to Junos OS Release 21.4R1, previously existing file extension based
content filtering options under the [edit security utm utm-policy <utm-policy-name> content-filtering]
hierarchy are no more available for configuration.
Junos OS Release 21.4R1 allows you to use legacy functionality if you don’t want to migrate to this
modern functionality. You will be allowed to use the legacy configurations but all the legacy
configuration knobs are deprecated and are hidden. Also, you will receive system logs and error message
warnings when you use all the legacy deprecated knobs.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
content-size
IN THIS SECTION
Syntax | 419
Description | 419
Options | 420
Syntax
Hierarchy Level
Description
If the content size exceeds a set limit, the content is either passed or blocked. The default action is log-
and-permit.
420
NOTE: When you configure the content-size value, keep in mind that in certain cases, content
size is available in the protocol headers, so the max-content-size fallback is applied before a scan
request is sent. However, in many cases, content size is not provided in the protocol headers. In
these cases, the TCP payload is sent to the antivirus scanner and accumulates until the end of
the payload. If the accumulated payload exceeds the maximum content size value, then max-
content-size fallback is applied. The default fallback action is log and permit, so you may want to
change this option to block, in which case such a packet is dropped and a block message is sent
to the client.
Options
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, Statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
421
IN THIS SECTION
Syntax | 421
Description | 421
Options | 422
Syntax
Hierarchy Level
Description
If the content size exceeds a set limit, the content is either passed or blocked.
NOTE: When you configure the content-size value, keep in mind that in certain cases, content
size is available in the protocol headers, so the max-content-size fallback is applied before a scan
422
request is sent. However, in many cases, content size is not provided in the protocol headers. In
these cases, the TCP payload is sent to the antivirus scanner and accumulates until the end of
the payload. If the accumulated payload exceeds the maximum content size value, then max-
content-size fallback is applied. You might want to set the fallback action to block, in which case
such a packet is dropped and a block message is sent to the client.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
content-size-limit
IN THIS SECTION
Syntax | 423
Description | 423
Syntax
content-size-limit value;
Hierarchy Level
Description
The content size check occurs before the scan request is sent. The content size refers to accumulated
TCP payload size. The maximum configurable content size varies with different platforms. For example,
the content size ranges from 20 through 40,000 for SRX4100.
424
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
corrupt-file
IN THIS SECTION
Syntax | 424
Description | 425
Options | 425
Syntax
Hierarchy Level
Description
Corrupt file is the error returned by the scan engine when engine detects a corrupted file. The default
action is log-and-permit.
Options
Release Information
The Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
426
RELATED DOCUMENTATION
custom-block-message
IN THIS SECTION
Syntax | 426
Description | 426
Syntax
custom-block-message value;
Hierarchy Level
Description
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 427
Description | 428
Syntax
custom-message message;
428
Hierarchy Level
Description
Custom message notifications are generally used when content is blocked by the content filter.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 429
Description | 429
Syntax
custom-message message;
Hierarchy Level
Description
You can configure the device to notify a specified administrator when patterns are updated. This is an e-
mail notification with a custom message.
430
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 430
Description | 431
Syntax
custom-message message;
431
Hierarchy Level
Description
Custom message notifications are mainly used in file replacement or in a response message when the
antivirus scan result is to drop the file.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
432
IN THIS SECTION
Syntax | 432
Description | 432
Syntax
custom-message message;
Hierarchy Level
Description
Custom message notifications are mainly used in file replacement or in a response message when the
antivirus scan result is to drop the file.
433
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 433
Description | 434
Syntax
custom-message message;
434
Hierarchy Level
Description
Custom message notifications are mainly used in file replacement or in a response message when the
antivirus scan result is to drop the file.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
435
IN THIS SECTION
Syntax | 435
Description | 436
Options | 436
Syntax
custom-message custom-message;
Hierarchy Level
Description
You can reference the custom-page type custom-message object at the Web filtering profile level. If the
category action is block or quarantine and no custom-message is configured in the category, the custom-
message under the profile will take effect.
Options
security
Release Information
RELATED DOCUMENTATION
custom-page | 445
custom-page-file | 447
437
IN THIS SECTION
Syntax | 437
Description | 437
Syntax
custom-message-subject message-subject;
Hierarchy Level
Description
You can configure the device to notify a specified administrator when patterns are updated. This is an e-
mail notification with a custom message and a custom subject line.
438
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 438
Description | 439
Syntax
custom-message-subject message-subject;
439
Hierarchy Level
Description
Custom message notifications are mainly used in file replacement or in a response message when the
antivirus scan result is to drop the file. As part of a custom message, you can customize the message
subject line.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
440
IN THIS SECTION
Syntax | 440
Description | 441
Syntax
custom-message-subject message-subject;
Hierarchy Level
Description
Custom message notifications are mainly used in file replacement or in a response message when the
antivirus scan result is to drop the file. As part of a custom message, you can customize the message
subject line.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 442
Description | 442
Syntax
custom-message-subject message-subject;
Hierarchy Level
Description
Custom message notifications are mainly used in file replacement or in a response message when the
antivirus scan result is to drop the file. As part of a custom message, you can customize the message
subject line.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
443
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
custom-objects
IN THIS SECTION
Syntax | 443
Description | 444
Options | 444
Syntax
custom-objects {
custom-url-category object-name {
value [value];
}
custom-message {
name message-name;
type redirect-url | user-message;
content redirect-url by user| user-message by user;
}
filename-extension object-name {
value [value];
}
mime-pattern object-name {
value [value];
}
protocol-command object-name {
value [value];
}
444
url-pattern object-name {
value [value];
}
}
Hierarchy Level
Description
WARNING: Custom category does not take precedence over predefined categories
when it has the same name as one of the predefined categories. We do not recommend
having a custom category name be the same as the predefined category name.
NOTE: Starting from Junos OS Release 17.4R1, support for custom category configuration is
available for EWF, local, and Websense redirect profiles.
Options
Release Information
The [edit security utm default-configuration] hierarchy level introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
UTM Overview | 2
custom-page
IN THIS SECTION
Syntax | 446
Description | 446
Options | 446
Syntax
custom-page {
custom-page-file custom-page-file;
}
Hierarchy Level
Description
You can create your own custom response pages for a URL that is configured with block or quarantine
actions in the UTM Web filtering profile. The custom response pages can include predefined page
variables, your corporate branding, acceptable use policies, and links to your internal resources.
Options
Release Information
RELATED DOCUMENTATION
custom-page-file | 447
custom-page-file
IN THIS SECTION
Syntax | 447
Description | 448
Options | 448
Syntax
custom-page-file custom-page-file;
Hierarchy Level
Description
You can create your own custom response pages based on a predefined template HTML file for a URL
that is configured with block or quarantine actions in the UTM Web filtering profile. By default, Your
security device provides a predefined HTML template file, which is saved at the local folder /var/db/utm/
custom_page/wf_block_page_tmpl.html. You can update the following parameters in the HTML file based on
your requirements:
• Add links to your internal resources to communicate your specific acceptable use policies and
corporate branding.
The maximum size of the page file is limited to 2K bytes. We recommend you not add JavaScript in the
contents of the HTML template page, because the JavaScript will have full access to the cookies of the
blocked website.
If you accidentally change or delete the HTML file does not affect the response page until you reboot
the system or execute the request security utm web-filtering custom-page reload command.
If you configure a non-existent HTML file, the system displays a warning message when you commit the
configuration. The configuration will be successfully submitted, but this configuration will not be
available. The system displays the warning message every time you commit the configuration.
You cannot upload an HTML file for a user logical system. Therefore, you can only use the existing
HTML files in the device until Jweb supports HTML file upload for a user logical systems.
In the chassis cluster scenario, you need to ensure that there is the same HTML file in the specified path
of each node.
If the custom-message configuration is invalid or you do not configure an HTML file, the system displays
the default block page for a blocked or quarantined webpage.
Options
security
Release Information
RELATED DOCUMENTATION
custom-page | 445
custom-tag-string
IN THIS SECTION
Syntax | 449
Description | 450
Syntax
custom-tag-string [string];
450
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
custom-url-category
IN THIS SECTION
Syntax | 451
Description | 451
Options | 451
451
Syntax
custom-url-category object-name {
value [value];
}
Hierarchy Level
Description
Use URL pattern lists to create Custom URL category lists. These are lists of patterns that bypass
scanning.
WARNING: Custom category does not take precedence over predefined categories
when it has the same name as one of the predefined categories. We do not recommend
having a custom category name be the same as the predefined category name.
Options
• value value—Value of the URL category-list object. You can configure multiple values separated by
spaces and enclosed in square brackets.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
UTM Overview | 2
decompress-layer
IN THIS SECTION
Syntax | 453
Description | 453
Options | 453
Syntax
Hierarchy Level
Description
The Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, decompress layer error is the error returned by the scan engine when the scanned file
has too many compression layers. The default action is block.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Options
RELATED DOCUMENTATION
decompress-layer-limit
IN THIS SECTION
Syntax | 454
Description | 455
Options | 456
Syntax
decompress-layer-limit decompress-layer-limit;
Hierarchy Level
Description
When an antivirus scan engine scans a file for viruses, the scan engine decompresses the layers of
nested compressed files and files with embedded extractable objects. Embedded extractable objects
include files such as archive files (tar), MS Word, and PowerPoint files. For example, if a message
contains a compressed .zip file that contains another compressed .zip file, then there are two
compression layers. Decompressing both files requires a decompress layer setting of 2. You can set the
decompression layer limit for the scan engine.
During the transfer of data, some protocols use content encoding. Before an antivirus scan engine scans
viruses, the scan engine decodes this layer, which is considered as a decompression level.
• Files with internal extractable objects, such as archive files (tar), MS Word, and PowerPoint files.
If a file exceeds the compression layer limit, the scan engine drops or forwards the file based on the
fallback options.
The scan engine scans each layer before unpacking the next layer. The scan engine continues to scan
until any of the following conditions are met, whichever happens first:
When the virus signature database becomes larger and the scan algorithms are more sophisticated, the
scan engine can look deeper into the data for embedded malware. As a result, the scan engine uncovers
more layers of compressed data.
The Juniper Networks device's level of security is limited by the decompress layer limit. You define the
decompress layer limit based on the memory allocated to the security service.
456
Options
• Default: 3
• Range: 0 through 10
Release Information
The Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards.
Support at the [edit security utm default-configuration] hierarchy level introduced in Junos OS Release
18.2R1.
Support for Avira Antivirus scan engine added in Junos OS Release 18.4R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 457
Description | 457
Options | 458
Syntax
Hierarchy Level
Description
All errors other than those specifically listed fall into this category. This could include either unhandled
system exceptions (internal errors) or other unknown errors.
458
Options
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 459
Description | 459
Options | 459
Syntax
Hierarchy Level
Description
All errors other than those specifically listed fall into this category. This could include either unhandled
system exceptions (internal errors) or other unknown errors.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 460
Description | 461
Options | 461
Syntax
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 462
Description | 462
462
Options | 462
Syntax
Hierarchy Level
Description
Specify an action for the profile, for requests that experience internal errors in the Web-filtering module.
Options
• quarantine—Show the warning message and permit/block the traffic based on user input.
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 464
Description | 464
Syntax
display-host;
Hierarchy Level
Description
Display the computer host name in the notification e-mail sent to the administrator when a fallback-
block notification occurs.
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
465
Release Description
15.1X49-D10 The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
IN THIS SECTION
Syntax | 465
Description | 466
Syntax
display-host;
Hierarchy Level
Description
Display the computer host name in the notification e-mail sent to the administrator when a virus is
detected by Sophos antivirus.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 467
Description | 467
Syntax
download-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the antivirus FTP (download) protocol and attach this policy to a security
profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
468
IN THIS SECTION
Syntax | 468
Description | 468
Syntax
download-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the content-filtering FTP (download) protocol and attach this policy to a
security profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
email-notify
IN THIS SECTION
Syntax | 469
Description | 470
Options | 470
Syntax
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
470
Hierarchy Level
Description
You can configure the device to notify a specified administrator when patterns are updated. This is an e-
mail notification with a custom message and a custom subject line.
Options
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
engine-not-ready
IN THIS SECTION
Syntax | 471
Description | 471
Options | 472
Syntax
Hierarchy Level
Description
The scan engine is initializing itself, for example, loading the signature database. During this phase, it is
not ready to scan a file. A file could either pass or be blocked according to this setting. The default
action is block.
472
Options
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 473
Description | 473
Options | 473
Syntax
Hierarchy Level
Description
The scan engine is initializing itself, for example, loading the signature database. During this phase, it is
not ready to scan a file. A file could either pass or be blocked according to this setting.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
exception
IN THIS SECTION
Syntax | 474
Description | 475
Syntax
exception listname;
475
Hierarchy Level
Description
Configure the antivirus scanner to use an exception list to the MIME bypass list (custom objects). To use
the exception list, you first create a allowlist custom-object list with the list statement. The system will
first look at any existing allowlist mime pattern. If it matches an item, it will then continue to look for any
exceptions to the allowlist and will then scan any item in the exception list.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 476
476
Description | 476
Syntax
exception list-name;
Hierarchy Level
Description
Configure the content filter to use an exception list to the MIME block list (custom objects).
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 477
Description | 478
Options | 478
Syntax
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
478
Hierarchy Level
Description
Configure notifications for fallback blocking actions. Fallback options tell the system how to handle the
errors returned by either the scan engine or the scan manager.
Options
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
479
IN THIS SECTION
Syntax | 479
Description | 480
Options | 480
Syntax
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
Hierarchy Level
Description
Options
Release Information
The Express and Kaspersky antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 481
Description | 481
481
Options | 481
Syntax
fallback-options {
content-size (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
Hierarchy Level
Description
Options
Release Information
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 483
Description | 483
Options | 483
Syntax
fallback-options {
content-size (block | log-and-permit);
corrupt-file (block | log-and-permit);
decompress-layer (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
password-file (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
Hierarchy Level
Description
Fallback options tell the system how to handle the errors returned by either the scan engine or the scan
manager.
Options
Release Information
The Kaspersky feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5 .
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 484
Description | 485
Options | 485
Syntax
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
485
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
486
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 486
Description | 487
Options | 487
Syntax
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
Hierarchy Level
Description
Options
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, Statement introduced in Junos OS Release 9.5 .
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 488
Description | 488
Options | 488
Syntax
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 490
Description | 490
Options | 490
Syntax
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
feature-profile
IN THIS SECTION
Syntax | 491
Description | 500
Options | 500
Syntax
feature-profile {
anti-spam {
address-blacklist list-name;
address-whitelist list-name;
sbl {
profile profile-name {
custom-tag-string [string];
(sbl-default-server | no-sbl-default-server);
spam-action (block | tag-header | tag-subject);
492
}
}
traceoptions flag flag;
}
anti-virus {
juniper-express-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
url url;
}
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
493
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
timeout value;
}
trickling {
timeout value;
}
}
}
kaspersky-lab-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
url url;
}
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
corrupt-file (block | log-and-permit);
decompress-layer (block | log-and-permit);
default (block | log-and-permit);
494
list listname {
exception listname;
}
}
sophos-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
url url;
}
profile <name> {
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
timeout (block | log-and-permit | permit);
too-many-requests (block | log-and-permit | permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
496
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(no-uri-check | uri-check);
timeout value;
}
trickling {
timeout value;
}
}
sxl-retry value;
sxl-timeout seconds;
}
traceoptions flag flag;
type (juniper-express-engine | kaspersky-lab-engine | sophos-engine);
url-whitelist listname;
}
content-filtering {
profile profile-name {
block-command protocol-command-list;
block-content-type (activex | exe | http-cookie | java-applet | zip);
block-extension extension-list;
block-mime {
exception list-name;
list list-name;
}
notification-options {
custom-message message;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
permit-command protocol-command-list;
}
traceoptions flag flag;
}
497
web-filtering {
url-whitelist custwhitelist;
url-blacklist custblacklist;
http-reassemble;
type juniper-enhanced;
juniper-enhanced {
cache {
timeout 1800;
size 500;
}
server {
host rp.cloud.threatseeker.com;
port 80;
}
profile junos-wf-enhanced-default {
category {
Enhanced_Hacking {
action log-and-permit;
}
Enhanced_Government {
action quarantine;
}
}
site-reputation-action {
very-safe permit;
moderately-safe log-and-permit;
fairly-safe log-and-permit;
harmful block;
suspicious block;
}
default block;
custom-block-message "***access denied ***";
fallback-settings {
default block;
server-connectivity block;
timeout block;
too-many-requests block;
}
timeout 10;
no-safe-search;
}
utm-policy mypolicy {
web-filtering {
498
http-profile my_ewfprofile01;
}
}
}
web-filtering {
juniper-enhanced {
cache {
size value;
timeout value;
}
profile profile-name {
category customurl-list name {
action (block | log-and-permit | permit | quarantine);
}
custom-block-message value;
custom-quarantine-message value;
default (block | log-and-permit | permit | quarantine);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
no-safe-search;
site-reputation-action {
fairly-safe (block | log-and-permit | permit | quarantine);
harmful (block | log-and-permit | permit | quarantine);
moderately-safe (block | log-and-permit | permit | quarantine);
suspicious (block | log-and-permit | permit | quarantine);
very-safe (block | log-and-permit | permit | quarantine);
}
timeout value;
}
server {
host host-name;
port number;
}
}
juniper-local {
profile profile-name {
custom-block-message value;
default (block | log-and-permit | permit);
fallback-settings {
499
Hierarchy Level
Description
Configure UTM features, antivirus, antispam, content-filtering, and web-filtering by creating feature
profiles.
Options
Release Information
Starting in Junos OS Release 21.4R1, content evaluation is based of the file content. The file type-based
evaluation of content is deprecated and the related configurations are hidden. So, the content filtering
options in this hierarchy is deprecated and not supported from Junos OS Release 21.4R1.
You can use the legacy functionality if you do not want to migrate to enhanced content filtering
functionality. You will be allowed to use the legacy configurations, but all the legacy configuration knobs
are deprecated and hidden. Also, you will receive system logs and error message warnings when you use
the legacy configuration options.
The Kaspersky, Express antivirus and Surf-Control features are not supported from Junos OS Release
15.1X49-D10 onwards. For previous releases, statement introduced in Release 9.5.
Starting with Junos OS Release 18.2R1, the following commands under the [edit security utm feature-
profile] hierarchy level are deprecated:
no-safe-search option added for Websense redirect and Juniper local in Junos OS Release 20.2R1.
RELATED DOCUMENTATION
filename-extension
IN THIS SECTION
Syntax | 503
Description | 503
Options | 503
Syntax
filename-extension object-name {
value [value];
}
Hierarchy Level
Description
When scanning content, you can use a file extension list to define a set of file extensions that are used
in file extension scan mode (scan-by-extension).
Options
• value value—Value of the extension-list object. You can configure multiple values separated by spaces
and enclosed in square brackets.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
flag (SMTP)
IN THIS SECTION
Syntax | 504
Description | 505
Options | 505
Syntax
flag {
all;
configuration;
IPC;
protocol-exchange;
send-request;
}
505
Hierarchy Level
Description
Options
• all—Trace everything.
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 506
Description | 507
Options | 507
Syntax
Hierarchy Level
Description
Set the format for remote security message logging to binary, syslog (system log), sd-syslog (structured
system log), or welf. Note that for the WELF format, the category must be set to content-security (see
"category" on page 400).
Options
Release Information
The [edit logical-systems name security log stream stream-name] hierarchy level introduced in Junos OS
Release 18.2R1.
The [edit tenants tenant-name security log stream stream-name] hierarchy level introduced in Junos OS
Release 18.3R1.
RELATED DOCUMENTATION
Logical Systems and Tenant Systems User Guide for Security Devices
IN THIS SECTION
Syntax | 508
Description | 509
Options | 509
Syntax
forwarding-mode {
hold;
inline-tap;
}
Hierarchy Level
Description
The default configuration for anti-virus is to use the continuous delivery function (CDF). It holds the last
packet and sends out all other packets. It saves system memory and makes the packet transmission
faster. This mode sends the last packet if the result is “permit” and sends RST message to both the client
and the server to reset the connection if the result is “drop”. In CDF mode, you may save an incomplete
infected file because it only holds the last packet and sends out others. This file could be executable and
harmful, for example, an incomplete script file. CDF mode does not support Mail protocols. Change to
hold mode to hold all the packets until you get the final result. Configure inline-tap mode to permit the
traffic even if it is infected. This mode is off by default. You can set the hold and inline-tap mode
separately or simultaneously. When you set both modes simultaneously, inline-tap over-rules the hold
mode and permits the traffic.
To delete hold mode use #delete security utm default-configuration anti-virus forwarding-mode hold, and to
delete inline-tap mode use #delete security utm default-configuration anti-virus forwarding-mode inline-tap.
Options
hold —Hold mode (hold file until analysis is complete, default is CDF mode).
Release Information
RELATED DOCUMENTATION
UTM Overview | 2
IN THIS SECTION
Syntax | 510
Description | 513
Options | 513
Syntax
destination-address {
[address];
any;
any-ipv4;
any-ipv6;
}
source-address {
[address];
any;
any-ipv4;
any-ipv6;
}
source-identity {
[role-name];
any;
authenticated-user;
unauthenticated-user;
unknown-user;
}
source-end-user-profile {
profile-name;
}
}
scheduler-name scheduler-name;
then {
count {
alarm {
per-minute-threshold number;
per-second-threshold number;
}
}
deny;
log {
session-close;
session-init;
}
permit {
application-services {
application-firewall {
rule-set rule-set-name;
}
application-traffic-control {
rule-set rule-set-name;
512
}
gprs-gtp-profile profile-name;
gprs-sctp-profile profile-name;
idp;
redirect-wx | reverse-redirect-wx;
ssl-proxy {
profile-name profile-name;
}
uac-policy {
captive-portal captive-portal;
}
utm-policy policy-name;
}
destination-address {
drop-translated;
drop-untranslated;
}
firewall-authentication {
pass-through {
access-profile profile-name;
client-match user-or-group-name;
ssl-termination-profile profile-name;
web-redirect;
web-redirect-to-https;
}
user-firewall {
access-profile profile-name;
domain domain-name
ssl-termination-profile profile-name;
}
web-authentication {
client-match user-or-group-name;
}
}
services-offload;
tcp-options {
initial-tcp-mss mss-value;
reverse-tcp-mss mss-value;
sequence-check-required;
sequence-check-required;
syn-check-required;
}
tunnel {
513
ipsec-group-vpn group-vpn;
ipsec-vpn vpn-name;
pair-policy pair-policy;
}
}
deny | reject;
deny | reject [profile name];
}
}
}
Hierarchy Level
Description
Specify a source zone and destination zone to be associated with the security policy.
Options
Release Information
Statement introduced in Junos OS Release 8.5. Support for the services-offload option added in Junos OS
Release 11.4. Support for the source-identity option added in Junos OS Release 12.1. Support for the
description option added in Junos OS Release 12.1. Support for the ssl-termination-profile and web-
redirect-to-https options added in Junos OS Release 12.1X44-D10. Support for the user-firewall option
added in Junos OS Release 12.1X45-D10. Support for the initial-tcp-mss and reverse-tcp-mss options
added in Junos OS Release 12.3X48-D20. Support for the dynamic-application and deny options added in
Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 515
Description | 515
Options | 515
Syntax
ftp {
download-profile profile-name;
upload-profile profile-name;
}
Hierarchy Level
Description
Configure a UTM policy for the antivirus FTP protocol and attach this policy to a security profile to
implement it.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 516
Description | 517
Options | 517
Syntax
ftp {
download-profile profile-name;
upload-profile profile-name;
}
517
Hierarchy Level
Description
Configure a UTM policy for the content-filtering FTP protocol and attach this policy to a security profile
to implement it.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
hold-interval
IN THIS SECTION
Syntax | 518
Description | 518
Options | 519
Syntax
hold-interval seconds;
Hierarchy Level
Description
If you enable the session-scan option at the [edit security dynamic-address address-name name] hierarchy level,
the security device initiates session scan when:
Options
• Default: 10 seconds
security
Release Information
RELATED DOCUMENTATION
session-scan | 664
IN THIS SECTION
Syntax | 520
Description | 520
Syntax
host host-name;
Hierarchy Level
Description
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
521
IN THIS SECTION
Syntax | 521
Description | 521
Syntax
http-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the antivirus HTTP protocol and attach this policy to a security profile to
implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 522
Description | 523
Syntax
http-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the content-filtering HTTP protocol and attach this policy to a security
profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 524
Description | 524
Syntax
http-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the Web-filtering HTTP protocol and attach this policy to a security profile
to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 525
Description | 525
Syntax
imap-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the antivirus IMAP protocol and attach this policy to a security profile to
implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 526
Description | 527
Syntax
imap-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the content-filtering IMAP protocol and attach this policy to a security
profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
http-persist
IN THIS SECTION
Syntax | 528
Description | 528
Syntax
http-persist;
Hierarchy Level
Description
Checks all HTTP requests in a connection. By default, Web filtering first checks the HTTP request
method (for example, GET or PUT) in the same session. If there are multiple HTTP request methods in
the subsequent HTTP request of the same session, then Web filtering checks are not performed on
these methods. If http-persist command is enabled for clear text HTTP traffic, then Web filtering checks
every HTTP request packet in the same session.
view
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
http-reassemble
IN THIS SECTION
Syntax | 529
Description | 529
Syntax
http-reassemble;
Hierarchy Level
Description
Reassembles HTTP requests segments. When the http-reassemble option is enabled the requested
fragment is reassembled. By default, Web filtering checks only HTTP requests in the first HTTP request
packet. If HTTP request methods and URLs are fragmented in different packets, then these URLs are not
checked. If http-reassemble option is enabled for clear text HTTP traffic, then Enhanced Web Filtering
(EWF) reassembles the fragmented HTTP request to avoid evasion instead of packet-based inspection.
When a new URL is matched against the active Web Filtering profile and the profile dictates that the
URL should be dropped, the entire HTTP session will be blocked by the device.
530
view
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
intelligent-prescreening
IN THIS SECTION
Syntax | 530
Description | 531
Syntax
intelligent-prescreening;
531
Hierarchy Level
Description
Intelligent prescreening tells the antivirus module to begin scanning a file much earlier. In this case, the
scan engine uses the first packet or the first several packets to determine if a file could possibly contain
malicious code. The scan engine does a quick check on these first packets and if the scan engine finds
that it is unlikely that the file is infected, it then determines that it is safe to bypass the normal scanning
procedure.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1x49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
532
Release Description
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1x49-
D10 onwards.
IN THIS SECTION
Syntax | 532
Description | 533
Options | 533
Syntax
interval value;
Hierarchy Level
Description
Set the pattern data files auto-update interval. You can choose to leave the default interval value or you
can change it by using this command. You can also force a manual update, if necessary.
NOTE: The data files used with Sophos are not typical virus pattern files; they are small files that
help guide virus scanning logic. The full virus pattern database is stored on an external Sophos
server called the Sophos Extensible List (SXL) server.
Options
• Default: For Juniper Express engine and Kaspersky Lab engine, 60 minutes; for Sophos engine, 1440
minutes (every 24 hours)
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5 for Juniper Express
engine and Kaspersky Lab engine. Support for Sophos engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
ipc
IN THIS SECTION
Syntax | 534
Description | 534
Options | 535
Syntax
ipc {
traceoptions flag flag;
}
Hierarchy Level
Description
Options
• flag—Trace operation to perform. To specify more than one trace operation, include multiple flag
statements.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
juniper-enhanced
IN THIS SECTION
Syntax | 536
536
Description | 537
Options | 537
Syntax
juniper-enhanced {
cache {
size value;
timeout value;
}
profile profile-name {
category customurl-list name {
action (block | log-and-permit | permit | quarantine);
}
custom-block-message value;
custom-quarantine-message value;
default (block | log-and-permit | permit | quarantine);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
no-safe-search;
site-reputation-action {
fairly-safe (block | log-and-permit | permit | quarantine);
harmful (block | log-and-permit | permit | quarantine);
moderately-safe (block | log-and-permit | permit | quarantine);
suspicious (block | log-and-permit | permit | quarantine);
very-safe (block | log-and-permit | permit | quarantine);
}
timeout value;
}
server {
537
host host-name;
port number;
proxy-profile proxy profile name;
}
}
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
538
The proxy-profile option is introduced under the security utm default-configuration web-filtering juniper-
enhanced server hierarchy level in Junos OS Release 18.3R1.
RELATED DOCUMENTATION
juniper-express-engine
IN THIS SECTION
Syntax | 538
Description | 540
Options | 540
Syntax
juniper-express-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
539
server address-or-url;
username name;
}
url url;
}
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
timeout value;
}
trickling {
timeout value;
540
}
}
}
Hierarchy Level
Description
Options
Release Information
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
541
RELATED DOCUMENTATION
juniper-local
IN THIS SECTION
Syntax | 541
Description | 542
Options | 542
Syntax
juniper-local {
profile profile-name {
block-message (Security UTM) value;
default (Security Web Filtering) (block | log-and-permit | permit);
fallback-settings (Security Web Filtering) {
default (Security Web Filtering) (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (Security Web Filtering Fallback Settings) (block | log-and-permit);
too-many-requests (Security Web Filtering Fallback Settings) (block | log-and-permit);
}
timeout value;
no-safe-search;
}
}
542
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
kaspersky-lab-engine
IN THIS SECTION
Syntax | 543
Description | 545
Options | 545
Syntax
kaspersky-lab-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
url url;
}
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
corrupt-file (block | log-and-permit);
decompress-layer (block | log-and-permit);
544
Hierarchy Level
Description
Options
Release Information
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1x49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
546
IN THIS SECTION
Syntax | 546
Description | 546
Syntax
limit value;
Hierarchy Level
Description
In an attempt to consume all available resources and hinder the ability of the device, a malicious user
might generate a large amount of traffic all at once. To prevent such activity from succeeding, you can
impose a session throttle to limit sessions.
547
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
list
IN THIS SECTION
Syntax | 547
Description | 548
Options | 548
Syntax
list listname {
exception listname;
}
548
Hierarchy Level
Description
Configure the antivirus scanner to use MIME bypass lists (custom objects). If you want to have
exceptions to the allowlist, create a mime-pattern list with the exception statement in addition to the list
statement.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
549
IN THIS SECTION
Syntax | 549
Description | 549
Syntax
list list-name;
Hierarchy Level
Description
Configure the content filter to use MIME block lists (custom objects).
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
log (Security)
IN THIS SECTION
Syntax | 550
Description | 553
Options | 553
Syntax
log {
(source-address source-address | source-interface source-interface);
cache {
exclude name {
destination-address destination-address;
destination-port destination-port;
551
event-id event-id;
failure;
interface-name interface-name;
policy-name policy-name;
process process;
protocol protocol;
source-address source-address;
source-port source-port;
success;
username username;
}
limit limit;
}
disable;
escape;
time-format (year | millisecond);
event-rate logs per second;
facility-override (authorization | daemon | ftp | kernel | local0 | local1 | local2 | local3 |
local4 | local5 | local6 | local7 | user);
file {
files files;
name name;
path path;
size size;
}
format (binary | sd-syslog | syslog);
max-database-record max-database-record;
message-rate-limit messages per second;
mode (event | stream | stream-event);
rate-cap logs per second;
report {
logs-per-table {
idp idp;
ipsec-vpn ipsec-vpn;
screen screen;
session-all session-all;
sky sky;
utm utm;
}
table-lifetime table-lifetime;
table-mode {
dense;
}
552
}
root-streaming;
stream stream-name {
category (all | content-security | fw-auth | screen | alg | nat | flow | sctp | gtp |
ipsec | idp | rtlog |pst-ds-lite | appqos |secintel |aamw);
filter {
threat-attack;
}
format (binary | sd-syslog | syslog | welf);
host {
ip-address;
port port-number;
routing-instanceinstance-name;
}
rate-limit {
log-rate;
}
severity (alert | critical | debug | emergency | error | info | notice | warning);
source-address {
ip-address;
}
time-format (year | millisecond);
transport {
protocol (tcp | tls | udp);
tcp-connections tcp-connections;
tls-profile tls-profile;
}
}
traceoptions {
file <filename> <files files> <match match> <size size> <(world-readable | no-world-
readable)>;
flag name;
no-remote-trace;
}
transport {
protocol (tcp | tls | udp);
tcp-connections tcp-connections;
tls-profile tls-profile;
}
utc-timestamp;
}
553
Hierarchy Level
[edit security]
[edit logical-systems name security]
[edit tenants tenant-name security]
Description
Configure security log. Set the mode of logging (event for traditional system logging or stream for
streaming security logs through a revenue port to a server). You can also specify all the other parameters
for security logging.
Options
escape Escapes the stream log forwarding to avoid parsing errors. Stream mode supports
escape in sd-syslog and binary format. Event mode supports escape only in binary
format.
event-rate rate Limit the rate at which logs are streamed per second.
• Default: 1500
file Specify the security log file options for logs in binary format.
• Values:
554
max-database-record The following are the disk usage range limits for the database:
• Range:
• Default:
• vSRX: 1,000,000
rate-cap rate-cap- Work with event mode only. This option limits the rate at which data plane logs are
value generated per second.
root-streaming Allows the user logical systems to generate the logs using the root logical system's
stream configuration.
source-address Specify a source IP address or IP address used when exporting security logs, which
source-address is mandatory to configure stream host.
source-interface Specify a source interface name, which is mandatory to configure stream host.
interface-name
555
The source-address and source-interface are alternate values. Using one of the options
is mandatory.
Release Information
The [edit logical-systems name security] and [edit tenants tenant-name security] hierarchy levels
introduced in Junos OS Release 19.1R1.
mime-pattern
IN THIS SECTION
Syntax | 556
556
Description | 556
Options | 556
Syntax
mime-pattern object-name {
value [value];
}
Hierarchy Level
Description
The gateway device uses MIME (Multipurpose Internet Mail Extension) types to decide which traffic is
allowed to bypass various types of scanning.
Options
• value value—Value of the MIME object. You can configure multiple values separated by spaces and
enclosed in square brackets.
557
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
mime-whitelist
IN THIS SECTION
Syntax | 557
Description | 558
Options | 558
Syntax
mime-whitelist {
exception listname;
list listname {
exception listname;
}
}
558
Hierarchy Level
Description
Configure the antivirus scanner to use MIME bypass lists and exception lists. You can use your own
custom object lists, or you can use the default list that ships with the device called junos-default-bypass-
mime.
WARNING: When you configure the MIME allowlist feature, be aware that, because
header information in HTTP traffic can be spoofed, you cannot always trust HTTP
headers to be legitimate. When a Web browser is determining the appropriate action
for a given file type, it detects the file type without checking the MIME header
contents. However, the MIME allowlist feature does refer to the MIME encoding in the
HTTP header. For these reasons, it is possible in certain cases for a malicious website to
provide an invalid HTTP header. For example, a network administrator might
inadvertently add a malicious website to a MIME allowlist, and, because the site is in
the allowlist, it will not be blocked by Sophos even though Sophos has identified the
site as malicious in its database. Internal hosts would then be able to reach this site and
could become infected.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
no-autoupdate
IN THIS SECTION
Syntax | 559
Description | 560
Syntax
no-autoupdate;
Hierarchy Level
Description
Turn off automatic data file (pattern file) update for the Kaspersky Lab, Juniper Express, or Sophos
engines.
NOTE: The data files used with Sophos are not typical virus pattern files; they are small files that
help guide virus scanning logic. The full virus pattern database is stored on an external Sophos
server called the Sophos Extensible List (SXL) server.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5 for Juniper Express
engine and Kaspersky Lab engine. Support for Sophos engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
no-intelligent-prescreening
IN THIS SECTION
Syntax | 561
Description | 561
Syntax
no-intelligent-prescreening;
Hierarchy Level
Description
Intelligent prescreening tells the antivirus module to begin scanning a file much earlier. In this case, the
scan engine uses the first packet or the first several packets to determine if a file could possibly contain
malicious code. The scan engine does a quick check on these first packets and if the scan engine finds
that it is unlikely that the file is infected, it then determines that it is safe to bypass the normal scanning
procedure.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
no-notify-mail-recipient
IN THIS SECTION
Syntax | 562
Description | 563
Syntax
no-notify-mail-recipient;
563
Hierarchy Level
Description
Do not notify the e-mail recipient about errors returned by the antivirus scan engine when a fallback
nonblocking action occurs.
You can specify that the e-mail recipient is to be notified with the notify-mail-recipient statement.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
564
IN THIS SECTION
Syntax | 564
Description | 564
Syntax
no-notify-mail-sender;
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 565
Description | 566
Syntax
no-notify-mail-sender;
566
Hierarchy Level
Description
Do not notify the e-mail sender about errors returned by the antivirus scan engine when a fallback
action occurs.
You can specify that the e-mail sender is to be notified with the notify-mail-sender statement.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
567
IN THIS SECTION
Syntax | 567
Description | 567
Syntax
no-notify-mail-sender;
Hierarchy Level
Description
Do not notify the e-mail sender when a virus is detected by the antivirus engine.
You can specify that the e-mail sender is to be notified with the notify-mail-sender statement.
568
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
no-sbl-default-server
IN THIS SECTION
Syntax | 568
Description | 569
Syntax
no-sbl-default-server;
569
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 570
Description | 571
Options | 571
Syntax
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
571
}
}
Hierarchy Level
Description
There are multiple notification options you can configure to trigger when a virus is detected.
Options
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
572
IN THIS SECTION
Syntax | 572
Description | 572
Options | 573
Syntax
notification-options {
custom-message message;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
Hierarchy Level
Description
You can configure a message notification to trigger when a content filter is matched.
573
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
notify-mail-recipient
IN THIS SECTION
Syntax | 574
Description | 574
Syntax
notify-mail-recipient;
Hierarchy Level
Description
Notify the e-mail recipient about errors returned by the antivirus scan engine when a fallback
nonblocking action occurs.
You can specify that the e-mail recipient is not to be notified with the no-notify-mail-recipient statement.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
575
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 575
Description | 575
Syntax
notify-mail-sender;
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 576
Description | 577
Syntax
notify-mail-sender;
577
Hierarchy Level
Description
E-mail notification is used to notify the sender or the recipient about the errors returned by either the
scan engine or the scan manager when a fallback action occurs.
You can specify that the sender is not to be notified with the no-notify-mail-sender statement.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5 . Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
578
IN THIS SECTION
Syntax | 578
Description | 578
Syntax
notify-mail-sender;
Hierarchy Level
Description
E-mail notification is used to notify the sender or the recipient about the detected viruses or the
scanning errors. When a virus is detected, an e-mail is sent to the sender upon virus detection.
579
You can specify that the sender is not to be notified with the no-notify-mail-sender statement.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5 . Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
no-uri-check
IN THIS SECTION
Syntax | 579
Description | 580
Syntax
no-uri-check;
580
Hierarchy Level
Description
Do not perform Sophos antivirus Uniform Resource Identifier (URI) checking. URI checking is performed
by analyzing HTTP traffic URI content against a remote Sophos database server to identify malware or
malicious content. URI checking is on by default.
NOTE: Starting in Junos OS release 18.4R1, the URI checking is off by default.
You can enable Sophos antivirus URI checking with the uri-check statement.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
581
out-of-resources
IN THIS SECTION
Syntax | 581
Description | 581
Options | 582
Syntax
Hierarchy Level
Description
Virus scanning requires a great deal of memory and CPU resources. Due to resource constraints,
memory allocation requests can be denied by the system. When out-of-resources occurs, scanning is
terminated. The default action is block.
582
Options
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 583
Description | 583
Options | 583
Syntax
Hierarchy Level
Description
Virus scanning requires a great deal of memory and CPU resources. Due to resource constraints,
memory allocation requests can be denied by the system. When out-of-resources occurs, scanning is
terminated.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
over-limit
IN THIS SECTION
Syntax | 584
Description | 585
Options | 585
Syntax
Hierarchy Level
Description
In an attempt to consume all available resources and hinder the ability of the device, a malicious user
might generate a large amount of traffic all at once. To prevent such activity from succeeding, you can
impose a session throttle to limit sessions and configure an action to occur when the limit is exceeded.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
utm | 748
586
packet-filter
IN THIS SECTION
Syntax | 586
Description | 587
Options | 587
Syntax
packet-filter packet-filter-name {
action-profile profile-name {
destination-port (Security Forwarding Options) (port-range | protocol-name);
destination-prefix destination-prefix;
interface logical-interface-name;
protocol (Security Forwarding Options) (protocol-number | protocol-name;
source-port (Security Forwarding Options) (port-range | protocol- name);
source-prefix source-prefix;
}
Hierarchy Level
Description
Set packet filter for taking the datapath-debug action. A filter is defined to filter traffic, then an action
profile is applied to the filtered traffic. Be sure to configure multiple packet filters to capture the traffic.
One packet filter only captures the traffic as specified in it, such as from one source to one destination.
The same packet filter will not capture the traffic in the reverse direction. You need to configure another
packet filter to capture the traffic in reverse direction and specify the source and destination according
to the response packet in it. The action profile specifies a variety of actions on the processing unit. A
maximum of four filters are supported at the same time. Packet filters can be configured with source and
destination prefix and port (including ranges), and protocol.
Action-profile settings have no specific minimum setting, it is based on trace, count, packet summary
and packet-dump. Enabling end-to-end debugging without or with a very broad filter is not
recommended. This could result in a high PFE CPU usage. Therefore when selecting what to capture
through a filter care must be taken. List as many and specific criteria which then results in the minimum
amount of traffic to be captured.
NOTE: Packet filter is supported on SRX1400, SRX3400, SRX3600, SRX5400, SRX5600, and
SRX5800 devices.
Options
• action-profile profile-name—Identify the action profile to use. You can specify the name of the action
profile to use. Using the request security action-profile command, you can set the action for the
packet match for a specified filter. Action-profile must be defined.
Release Information
Command introduced in Junos OS Release 9.6 ; Support for IPv6 addresses for the destination-prefix and
source-prefix options added in Junos OS Release 10.4.
IN THIS SECTION
Syntax | 588
Description | 589
Syntax
password password-string;
589
Hierarchy Level
Description
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Release 11.2.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
utm | 748
590
password-file
IN THIS SECTION
Syntax | 590
Description | 590
Options | 591
Syntax
Hierarchy Level
Description
Password protected file is the error returned by the scan engine when the scanned file is protected by a
password. The default action is log-and-permit.
591
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 592
Description | 592
Syntax
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy-profile proxy profile name;
routing-instance name;
start-time start-time;
url url;
}
Hierarchy Level
Description
Updates to the pattern file are added as new viruses are discovered. You can configure the security
device to regularly update the pattern file automatically, or you can update the file manually.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
The proxy-profile option is introduced under the security utm feature-profile anti-virus sophos-engine
hierarchy level in Junos OS Release 18.3R1.
permit-command
IN THIS SECTION
Syntax | 593
Description | 594
Syntax
permit-command protocol-command-list;
Hierarchy Level
Description
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
policies
IN THIS SECTION
Syntax | 595
Description | 603
Options | 603
Syntax
policies {
default-policy (deny-all | permit-all);
from-zone from-zone-name {
to-zone;
policy name {
description description;
match (Security Policies Global) {
source-address (Security Policies);
destination-address (Security Policies);
application (Security Policies);
source-identity;
source-end-user-profile <source-end-user-profile-name>;
dynamic-application (Security Policies);
url-category;
from-zone (Security Policies Global);
to-zone (Security Policies Global);
source-l3vpn-vrf-group [ source-l3vpn-vrf-group ... ];
destination-l3vpn-vrf-group [ destination-l3vpn-vrf-group ... ];
destination-address-excluded;
source-address-excluded;
}
scheduler-name scheduler-name;
then {
deny;
permit {
application-services {
(redirect-wx | reverse-redirect-wx);
advanced-anti-malware-policy advanced-anti-malware-policy;
application-traffic-control {
rule-set rule-set;
}
gprs-gtp-profile gprs-gtp-profile;
gprs-sctp-profile gprs-sctp-profile;
icap-redirect icap-redirect;
idp;
idp-policy idp-policy;
security-intelligence-policy security-intelligence-policy;
ssl-proxy {
profile-name profile-name;
596
}
uac-policy {
captive-portal captive-portal;
}
utm-policy utm-policy;
web-proxy {
profile-name profile-name;
}
}
destination-address (Security IDP Policy) {
(drop-translated | drop-untranslated);
}
firewall-authentication {
pass-through {
access-profile access-profile;
auth-only-browser;
auth-user-agent name;
client-match [ client-match ... ];
ssl-termination-profile ssl-termination-profile;
web-redirect;
web-redirect-to-https;
}
user-firewall {
access-profile access-profile;
auth-only-browser;
auth-user-agent name;
domain domain;
ssl-termination-profile ssl-termination-profile;
web-redirect;
web-redirect-to-https;
}
web-authentication {
client-match [ client-match ... ];
}
push-to-identity-management;
}
services-offload;
tcp-options {
initial-tcp-mss initial-tcp-mss;
reverse-tcp-mss reverse-tcp-mss;
sequence-check-required;
syn-check-required;
window-scale;
597
}
tunnel {
ipsec-vpn ipsec-vpn;
pair-policy pair-policy;
}
}
reject {
profile profile;
ssl-proxy {
profile-name profile-name;
}
}
count {
}
log {
session-close;
session-init;
}
}
}
}
global {
policy name {
description description;
match (Security Policies Global) {
source-address (Security Policies);
destination-address (Security Policies);
application (Security Policies);
source-identity;
source-end-user-profile <source-end-user-profile-name>;
dynamic-application (Security Policies);
url-category;
from-zone (Security Policies Global);
to-zone (Security Policies Global);
source-l3vpn-vrf-group [ source-l3vpn-vrf-group ... ];
destination-l3vpn-vrf-group [ destination-l3vpn-vrf-group ... ];
destination-address-excluded;
source-address-excluded;
}
scheduler-name scheduler-name;
then {
deny;
permit {
598
application-services {
(redirect-wx | reverse-redirect-wx);
advanced-anti-malware-policy advanced-anti-malware-policy;
application-traffic-control {
rule-set rule-set;
}
gprs-gtp-profile gprs-gtp-profile;
gprs-sctp-profile gprs-sctp-profile;
icap-redirect icap-redirect;
idp;
idp-policy idp-policy;
security-intelligence-policy security-intelligence-policy;
ssl-proxy {
profile-name profile-name;
}
uac-policy {
captive-portal captive-portal;
}
utm-policy utm-policy;
web-proxy {
profile-name profile-name;
}
}
destination-address {
(drop-translated | drop-untranslated);
}
firewall-authentication {
pass-through {
access-profile access-profile;
auth-only-browser;
auth-user-agent name;
client-match [ client-match ... ];
ssl-termination-profile ssl-termination-profile;
web-redirect;
web-redirect-to-https;
}
user-firewall {
access-profile access-profile;
auth-only-browser;
auth-user-agent name;
domain domain;
ssl-termination-profile ssl-termination-profile;
web-redirect;
599
web-redirect-to-https;
}
web-authentication {
client-match [ client-match ... ];
}
push-to-identity-management;
}
services-offload;
tcp-options {
initial-tcp-mss initial-tcp-mss;
reverse-tcp-mss reverse-tcp-mss;
sequence-check-required;
syn-check-required;
window-scale;
}
tunnel {
ipsec-vpn ipsec-vpn;
pair-policy pair-policy;
}
}
reject {
profile profile;
ssl-proxy {
profile-name profile-name;
}
}
count {
}
log {
session-close;
session-init;
}
}
}
}
policy-rematch <extensive>;
policy-stats {
system-wide (disable | enable);
}
pre-id-default-policy {
then {
log {
session-close;
600
session-init;
}
session-timeout {
icmp seconds;
icmp6 seconds;
ospf seconds;
others seconds;
tcp seconds;
udp seconds;
}
}
}
stateful-firewall-rule name {
match-direction (input | input-output | output);
policy name {
description description;
match (Security Policies Global) {
source-address (Security Policies);
destination-address (Security Policies);
application (Security Policies);
source-identity;
source-end-user-profile <source-end-user-profile-name>;
dynamic-application (Security Policies);
url-category;
from-zone (Security Policies Global);
to-zone (Security Policies Global);
source-l3vpn-vrf-group [ source-l3vpn-vrf-group ... ];
destination-l3vpn-vrf-group [ destination-l3vpn-vrf-group ... ];
destination-address-excluded;
source-address-excluded;
}
scheduler-name scheduler-name;
then {
deny;
permit {
application-services {
(redirect-wx | reverse-redirect-wx);
advanced-anti-malware-policy advanced-anti-malware-policy;
application-traffic-control {
rule-set rule-set;
}
gprs-gtp-profile gprs-gtp-profile;
gprs-sctp-profile gprs-sctp-profile;
601
icap-redirect icap-redirect;
idp;
idp-policy idp-policy;
security-intelligence-policy security-intelligence-policy;
ssl-proxy {
profile-name profile-name;
}
uac-policy {
captive-portal captive-portal;
}
utm-policy utm-policy;
web-proxy {
profile-name profile-name;
}
}
destination-address {
(drop-translated | drop-untranslated);
}
firewall-authentication {
pass-through {
access-profile access-profile;
auth-only-browser;
auth-user-agent name;
client-match [ client-match ... ];
ssl-termination-profile ssl-termination-profile;
web-redirect;
web-redirect-to-https;
}
user-firewall {
access-profile access-profile;
auth-only-browser;
auth-user-agent name;
domain domain;
ssl-termination-profile ssl-termination-profile;
web-redirect;
web-redirect-to-https;
}
web-authentication {
client-match [ client-match ... ];
}
push-to-identity-management;
}
services-offload;
602
tcp-options {
initial-tcp-mss initial-tcp-mss;
reverse-tcp-mss reverse-tcp-mss;
sequence-check-required;
syn-check-required;
window-scale;
}
tunnel {
ipsec-vpn ipsec-vpn;
pair-policy pair-policy;
}
}
reject {
profile profile;
ssl-proxy {
profile-name profile-name;
}
}
count {
}
log {
session-close;
session-init;
}
}
}
}
stateful-firewall-rule-set name {
stateful-firewall-rule name;
}
traceoptions (Security Policies) {
file <filename> <files files> <match match> <size size> <(world-readable | no-world-
readable)>;
flag name;
no-remote-trace;
}
unified-policy {
max-lookups max-lookups;
}
}
603
Hierarchy Level
[edit security]
Description
Configure a network security policies with IPv6 addresses only if flow support for IPv6 traffic is enabled
on the device.
Options
• Values:
• Values:
Release Information
Support for the ssl-termination-profile and web-redirect-to-https options are added starting from Junos OS
Release 12.1X44-D10 and Junos OS Release 15.1X49-D40.
Support for the domain option, and for the from-zone and to-zone global policy match options, added in
Junos OS Release 12.1X47-D10.
Support for the initial-tcp-mss and reverse-tcp-mss options added in Junos OS Release 12.3X48-D20.
Support for the extensive option for policy-rematch added in Junos OS Release 15.1X49-D20.
Starting in Junos OS Release 18.2R1, an IDP policy is available within unified security policy. The IDP
policy access is simplified and made available under the unified policy as one of the policy. When an IDP
policy is available within a unified security policy, configuring source or destination address, source and
destination-except, from and to zone, or application is not required, because the match happens in the
security policy itself.
Starting in Junos OS Release 18.3R1, when an SRX Series device is configured with a unified policies,
you can configure multiple IDP policies and set one of those policies as the default IDP policy. If multiple
IDP policies are configured for a session and when policy conflict occurs, the device applies the default
IDP policy for that session and thus resolves any policy conflicts.
NOTE: If you have configured two or more IDP policies in a unified security policy, then you
must configure the default IDP policy.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 605
Description | 605
Syntax
pop3-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the antivirus POP3 protocol and attach this policy to a security profile to
implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 606
Description | 607
Syntax
pop3-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the content filtering POP3 protocol and attach this policy to a security
profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 608
Description | 608
Options | 608
Syntax
port port-number;
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
609
IN THIS SECTION
Syntax | 609
Description | 609
Syntax
port number;
Hierarchy Level
Description
Enter the port number for communicating with the server. (Default ports are 80, 8080, and 8081.)
610
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
primary-server
IN THIS SECTION
Syntax | 610
Description | 611
Options | 611
Syntax
primary-server {
address ipv4-address;
login sender-email-address {
password password;
}
}
611
Hierarchy Level
[edit smtp]
Description
Configure Simple Mail Transfer Protocol (SMTP) primary server for access authorization for SMTP
requests.
Options
Release Information
IN THIS SECTION
Syntax | 612
Description | 612
Options | 613
Syntax
profile profile-name {
custom-tag-string [string];
(sbl-default-server | no-sbl-default-server);
spam-action (block | tag-header | tag-subject);
}
Hierarchy Level
Description
Create a profile for the antispam sbl feature. This profile includes all subsequent configuration options.
613
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 614
Description | 615
Options | 615
Syntax
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
timeout value;
}
trickling {
timeout value;
615
}
}
Hierarchy Level
Description
Create a profile for the Juniper express engine. This profile includes all subsequent configuration
options.
Options
Release Information
The express engine feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
616
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 616
Description | 618
Options | 618
Syntax
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
corrupt-file (block | log-and-permit);
decompress-layer (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
password-file (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
617
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
decompress-layer-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
scan-extension filename;
scan-mode (all | by-extension);
timeout value;
}
trickling {
timeout value;
}
}
Hierarchy Level
Description
Create a profile for the Kaspersky Lab engine. This profile includes all subsequent configuration options.
Options
Release Information
The Kaspersky feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
kaspersky-lab-engine | 543
profile (Security Antivirus Juniper Express Engine) | 613
619
IN THIS SECTION
Syntax | 619
Description | 620
Options | 620
Syntax
profile profile-name {
block-command protocol-command-list;
block-content-type (activex | exe | http-cookie | java-applet | zip);
block-extension extension-list;
block-mime {
exception list-name;
list list-name;
}
notification-options {
custom-message message;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
permit-command protocol-command-list;
}
620
Hierarchy Level
Description
Create a profile for the content-filtering feature. This profile includes all subsequent configuration
options.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 621
Description | 622
Options | 622
Syntax
profile <name> {
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
timeout (block | log-and-permit | permit);
too-many-requests (block | log-and-permit | permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
622
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(no-uri-check | uri-check);
timeout value;
}
trickling {
timeout value;
}
}
Hierarchy Level
Description
Create a profile for the Sophos antivirus engine. This profile includes all subsequent configuration
options.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
profile
IN THIS SECTION
Syntax | 624
Description | 625
Options | 625
Syntax
profile <name> {
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
timeout (block | log-and-permit | permit);
too-many-requests (block | log-and-permit | permit);
}
mime-whitelist {
exception exception;
list list;
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
url-whitelist url-whitelist;
}
625
Hierarchy Level
Description
Create a profile for the Avira antivirus engine. The antivirus feature profile settings include the scanning
options, such as virus detection type, allowlist, blocklist, fallback and notification options.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 626
Description | 627
Options | 627
Syntax
profile profile-name {
category customurl-list name {
action (block | log-and-permit | permit | quarantine);
}
custom-block-message value;
custom-quarantine-message value;
default (block | log-and-permit | permit | quarantine);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
no-safe-search;
site-reputation-action {
fairly-safe (block | log-and-permit | permit | quarantine);
harmful (block | log-and-permit | permit | quarantine);
moderately-safe (block | log-and-permit | permit | quarantine);
suspicious (block | log-and-permit | permit | quarantine);
very-safe (block | log-and-permit | permit | quarantine);
}
627
timeout value;
}
Hierarchy Level
Description
Create a profile for the juniper-enhanced feature. This profile includes all subsequent configuration
options.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
628
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 628
Description | 629
Options | 629
Syntax
profile profile-name {
custom-block-message value;
default (block | log-and-permit | permit);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
timeout value;
}
629
Hierarchy Level
Description
Create a profile for the web-filtering juniper–local feature. This profile includes all subsequent
configuration options.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 630
Description | 631
Options | 631
Syntax
profile profile-name {
category customurl-list name {
action (block | log-and-permit | permit);
}
custom-block-message value;
default (block | log-and-permit | permit);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
timeout value;
}
631
Hierarchy Level
Description
Create a profile for the web-filtering surf-control-integrated feature. This profile includes all subsequent
configuration options.
Options
Release Information
The Surf-Control feature is not supported from Junos OS Release 15.1x49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 632
Description | 633
Options | 633
Syntax
profile profile-name {
account value;
custom-block-message value;
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
server {
host host-name;
port number;
}
sockets value;
timeout value;
}
633
Hierarchy Level
Description
Create a profile for the web-filtering web-sense feature. This profile includes all subsequent
configuration options.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
protocol-command
IN THIS SECTION
Syntax | 634
Description | 634
Options | 635
Syntax
protocol-command object-name {
value [value];
}
Hierarchy Level
Description
Different protocols use different commands to communicate between servers and clients. By blocking or
allowing certain commands, traffic can be controlled on the protocol command level.
635
Options
• value value—Value of the command-list object. You can configure multiple values separated by spaces
and enclosed in square brackets.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
UTM Overview | 2
IN THIS SECTION
Syntax | 636
Description | 636
Options | 636
Syntax
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
Hierarchy Level
Description
Options
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 11.2.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
proxy-profile
IN THIS SECTION
Syntax | 637
Description | 638
Syntax
Hierarchy Level
Description
Specify the proxy profile name and is used for configuring the explicit proxy.
Release Information
IN THIS SECTION
Syntax | 639
Description | 639
Options | 639
639
Syntax
quarantine-message {
type {
custom-redirect-url;
}
url url;
}
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 640
Description | 641
Options | 641
Syntax
routing-instance name;
641
Hierarchy Level
Description
Configure the routing instance name. A routing instance is a collection of routing tables, interfaces, and
routing protocol parameters. The set of interfaces belongs to the routing tables, and the routing protocol
parameters control the information in the routing tables. Each routing instance has a unique name.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
admin-email | 368
url (Security Antivirus) | 737
sbl
IN THIS SECTION
Syntax | 642
Description | 643
Options | 643
Syntax
sbl {
profile profile-name {
custom-tag-string [string];
(sbl-default-server | no-sbl-default-server);
spam-action (block | tag-header | tag-subject);
}
}
643
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
644
sbl-default-server
IN THIS SECTION
Syntax | 644
Description | 644
Syntax
sbl-default-server;
Hierarchy Level
Description
Enable the default SBL server lookup. You should enable this feature if you are using server-based spam
filtering. (The SBL server is predefined on the device. It ships with the name and address of the SBL
server.)
645
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
scan-extension
IN THIS SECTION
Syntax | 645
Description | 646
Syntax
scan-extension filename;
646
Hierarchy Level
Description
For antivirus file extension scanning, configure the scan extension setting by specifying the name of the
defined file extension list.
Release Information
The Kaspersky feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
scan-mode
IN THIS SECTION
Syntax | 647
Description | 647
Options | 647
Syntax
Hierarchy Level
Description
You can scan all content or scan content with specific file extensions. You can use a file extension list to
define a set of file extensions that are used in file extension scan mode. The antivirus module can then
only scan files with extensions on the scan-extension list.
Options
• by-extension—Scan only files with extensions specified in a file extension list custom object.
648
Release Information
The scan-mode is not supported from Junos OS Release 15.1X49-D10 onwards. For previous releases,
the statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The scan-mode is not supported from Junos OS Release 15.1X49-D10 onwards.
IN THIS SECTION
Syntax | 649
Description | 649
Options | 649
Syntax
scan-options {
content-size-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
timeout value;
}
Hierarchy Level
Description
Configure the antivirus feature to scan specific types of traffic based on various scanning configuration
parameters.
Options
Release Information
The scan-options (Security Antivirus Juniper Express Engine) is not supported from Junos OS Release
15.1X49-D10 onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The scan-options (Security Antivirus Juniper Express Engine) is not supported from Junos OS
Release 15.1X49-D10 onwards.
IN THIS SECTION
Syntax | 650
Description | 651
Options | 651
Syntax
scan-options {
content-size-limit value;
decompress-layer-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
scan-extension filename;
651
Hierarchy Level
Description
Configure the antivirus feature to scan specific types of traffic based on various scanning configuration
parameters.
Options
Release Information
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
652
Release Description
15.1X49-D10 The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards.
IN THIS SECTION
Syntax | 652
Description | 653
Options | 653
Syntax
scan-options {
content-size-limit value;
(no-uri-check | uri-check);
timeout value;
}
Hierarchy Level
Description
Configure the antivirus feature to scan specific types of traffic based on various scanning configuration
parameters.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 654
Description | 654
Options | 654
Syntax
scan-options {
content-size-limit value;
decompress-layer-limit value;
(no-pre-detection | pre-detection);
timeout value;
}
Hierarchy Level
Description
Configure the antivirus feature to scan specific types of traffic based on various scanning configuration
parameters. The scan engine scans the data by accessing the virus pattern database. You can download
and uninstall the Avira scan engine. The antivirus module is the software subsystem on the gateway
device that scans specific application layer traffic to protect the user from virus attacks and to prevent
virus from spreading. The antivirus module software subsystem consists of a virus signature database, an
application proxy, the scan manager, and the scan engine. The scan engine requires a valid license
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
decompress-layer-limit
content-size-limit
secondary-server
IN THIS SECTION
Syntax | 656
Description | 656
Options | 656
Syntax
secondary-server {
address ipv4-address;
login sender-email-address {
password password;
}
}
Hierarchy Level
[edit smtp]
Description
Configure Simple Mail Transfer Protocol (SMTP) secondary server for access authorization for SMTP
requests.
Options
Release Information
IN THIS SECTION
Syntax | 657
Description | 658
Syntax
server address-or-url;
Hierarchy Level
Description
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 11.2.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 659
Description | 659
Options | 659
Syntax
server ip;
routing-instance name;
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
utm | 748
IN THIS SECTION
Syntax | 660
Description | 661
Options | 661
Syntax
server {
host host-name;
port number;
}
Hierarchy Level
Description
Options
Release Information
The surf-control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5 .
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The surf-control feature is not supported from Junos OS Release 15.1X49-D10 onwards.
662
server-connectivity
IN THIS SECTION
Syntax | 662
Description | 663
Options | 663
Syntax
Hierarchy Level
Description
Fallback settings tell the system how to handle errors. This is the action that occurs when a request fails
for this reason.
Options
Release Information
The surf-control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5 .
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The surf-control feature is not supported from Junos OS Release 15.1X49-D10 onwards.
664
session-scan
IN THIS SECTION
Syntax | 664
Description | 664
Syntax
session-scan;
Hierarchy Level
Description
Session scan provides an efficient method to traverse the session table to check and update each
session. You can configure the session-scan option at two levels, entry level and module level. The entry
level session-scan requests session scan only when the configured entries have the new addresses, while
the module level takes all the entries belong to dynamic address into the scope. By default, the session-
scan for dynamic address are disabled due to the session scan is CPU intensive.
665
security
Release Information
RELATED DOCUMENTATION
hold-interval | 518
site-reputation-action
IN THIS SECTION
Syntax | 665
Description | 666
Options | 666
Syntax
site-reputation-action {
harmful (block | log-and-permit | permit | quarantine);
fairly-safe (block | log-and-permit | permit | quarantine);
moderately-safe (block | log-and-permit | permit | quarantine);
suspicious (block | log-and-permit | permit | quarantine);
666
Hierarchy Level
Description
Specify the action to be taken depending on the site reputation returned for all types of URLs whether it
is categorized or uncategorized.
NOTE: Starting with Junos OS Release 17.4R1, the reputation base scores are configurable.
Users can apply global reputation values, provided by the Websense ThreatSeeker Cloud (TSC).
For the non-category URLs, the global reputation value is used to perform filtering,
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 668
Description | 668
Options | 668
Syntax
size value;
Hierarchy Level
Description
Options
Release Information
The surf-control feature is not supported from Junos OS Release 15.1X49-D10 onwards. For previous
releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 669
Description | 669
Syntax
smtp-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the antispam SMTP protocol and attach this policy to a security profile to
implement it.
670
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 670
Description | 671
Syntax
smtp-profile profile-name;
671
Hierarchy Level
Description
Configure a UTM policy for the antivirus SMTP protocol and attach this policy to a security profile to
implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 672
Description | 672
672
Syntax
smtp-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the content-filtering SMTP protocol and attach this policy to a security
profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
673
sockets
IN THIS SECTION
Syntax | 673
Description | 673
Syntax
sockets value;
Hierarchy Level
Description
Enter the number of sockets used for communicating between the client and server. The default is 1.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
sophos-engine
IN THIS SECTION
Syntax | 674
Description | 676
Options | 676
Syntax
sophos-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
675
port port-number;
server address-or-url;
username name;
}
url url;
}
profile <name> {
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
timeout (block | log-and-permit | permit);
too-many-requests (block | log-and-permit | permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(no-uri-check | uri-check);
timeout value;
}
trickling {
676
timeout value;
}
}
sxl-retry value;
sxl-timeout seconds;
}
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
677
source-address
IN THIS SECTION
Syntax | 677
Description | 677
Options | 678
Syntax
source-address address;
Hierarchy Level
Description
You can configure source address for Enhanced Web Filtering (EWF) cloud service, websense redirect
policy service, antivirus scan service, and antispam scan service. Configuring a source address for these
Unified Threat Management (UTM) services enhance the network disaster recovery. Since the antivirus
678
and antispam scan services shares the same Domain Name Service (DNS) to forward the scan request,
they share the same source address configuration under Sophos antivirus engine server.
The source address configuration is optional. If you do not configure the source address, the UTM find
the route and get the source address.
Options
Release Information
spam-action
IN THIS SECTION
Syntax | 679
Description | 679
Options | 679
Syntax
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
start-time
IN THIS SECTION
Syntax | 680
Description | 681
Options | 681
Syntax
start-time start-time;
Hierarchy Level
Description
Specify the time that the device automatically starts downloading the updated signature database from
the specified URL.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
surf-control-integrated
IN THIS SECTION
Syntax | 682
Description | 683
Options | 683
Syntax
surf-control-integrated {
cache {
size value;
timeout value;
}
profile profile-name {
category customurl-list name {
action (block | log-and-permit | permit);
}
custom-block-message value;
default (block | log-and-permit | permit);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
timeout value;
}
}
server {
host host-name;
port number;
}
}
Hierarchy Level
Description
Options
Release Information
The surf-control- integrated feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The surf-control- integrated feature is not supported from Junos OS Release 15.1X49-D10
onwards.
684
sxl-retry
IN THIS SECTION
Syntax | 684
Description | 684
Options | 685
Syntax
sxl-retry value;
Hierarchy Level
Description
Configure the number of retry attempts to the remote Sophos Extensible List (SXL) server when a
request timeout occurs.
685
Options
• Range: 0 through 5
• Default: 1
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
sxl-timeout
IN THIS SECTION
Syntax | 686
Description | 686
Options | 686
Syntax
sxl-timeout seconds;
Hierarchy Level
Description
Configure the timeout value for responses to a Sophos checksum or URI query.
Options
• Default: 2 seconds
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 687
Description | 688
Options | 688
Syntax
Hierarchy Level
Description
Scanning a complex file could consume resources and time. If the time it is taking to scan exceeds the
timeout setting in the antivirus profile, the processing is terminated and the content is either passed or
blocked without completing the virus checking. The decision is made based on the timeout fallback
option. The default action is block.
Options
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
689
IN THIS SECTION
Syntax | 689
Description | 689
Options | 690
Syntax
Hierarchy Level
Description
Scanning a complex file could consume resources and time. If the time it is taking to scan exceeds the
timeout setting in the antivirus profile, the processing is terminated and the content is either passed or
690
blocked without completing the virus checking. The decision is made based on the timeout fallback
option.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 691
Description | 691
Syntax
timeout value;
Hierarchy Level
Description
The scanning timeout value includes the time frame from when the scan request is generated to when
the scan result is returned by the scan engine. The time range can be 1 to 1800 seconds. By default, it is
180 seconds.
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5 . Support for Sophos
engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
IN THIS SECTION
Syntax | 692
Description | 693
Syntax
timeout value;
693
Hierarchy Level
Description
Enter a timeout limit for requests. Once this limit is reached, fail mode settings are applied. The default
here is 15 seconds.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 694
Description | 694
Options | 694
Syntax
timeout value;
Hierarchy Level
Description
Set the cache timeout parameters for surf-control-integrated web filtering (24 hours is the default and
the maximum allowed life span of cached items).
Options
Release Information
The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10
onwards.
IN THIS SECTION
Syntax | 696
Description | 696
Options | 696
Syntax
Hierarchy Level
Description
Options
Release Information
The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10
onwards.
IN THIS SECTION
Syntax | 697
Description | 698
Options | 698
Syntax
Hierarchy Level
Description
If the total number of messages received concurrently exceeds 4000, the content is either passed or
blocked depending on the too-many-request fallback option. The default action is block. (The allowed
request limit is not configurable.)
Options
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
699
Release Description
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
IN THIS SECTION
Syntax | 699
Description | 700
Options | 700
Syntax
Hierarchy Level
Description
If the total number of messages received concurrently exceeds the device limits, the content is either
passed or blocked depending on the too-many-request fallback option. (The allowed request limit is not
configurable.)
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
701
IN THIS SECTION
Syntax | 701
Description | 702
Options | 702
Syntax
Hierarchy Level
Description
If the total number of messages received concurrently exceeds the device limits, the content is either
passed or blocked depending on the too-many-request fallback option. The default action is BLOCK.
(The allowed request limit is not configurable.)
Options
Release Information
The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10
onwards.
703
IN THIS SECTION
Syntax | 703
Description | 705
Options | 706
Syntax
to-zone zone-name {
policy policy-name {
description description;
match {
application {
[application];
any;
}
destination-address {
[address];
any;
any-ipv4;
any-ipv6;
}
source-address {
[address];
any;
any-ipv4;
any-ipv6;
}
source-identity {
[role-name];
704
any;
authenticated-user;
unauthenticated-user;
unknown-user;
}
}
scheduler-name scheduler-name;
then {
count {
alarm {
per-minute-threshold number;
per-second-threshold number;
}
}
deny;
log {
session-close;
session-init;
}
permit {
application-services {
application-firewall {
rule-set rule-set-name;
}
application-traffic-control {
rule-set rule-set-name;
}
gprs-gtp-profile profile-name;
gprs-sctp-profile profile-name;
idp;
redirect-wx | reverse-redirect-wx;
ssl-proxy {
profile-name profile-name;
}
uac-policy {
captive-portal captive-portal;
}
utm-policy policy-name;
}
destination-address {
drop-translated;
drop-untranslated;
}
705
firewall-authentication {
pass-through {
access-profile profile-name;
client-match user-or-group-name;
ssl-termination-profile profile-name;
web-redirect;
web-redirect-to-https;
}
web-authentication {
client-match user-or-group-name;
}
}
services-offload;
tcp-options {
sequence-check-required;
syn-check-required;
}
tunnel {
ipsec-group-vpn group-vpn;
ipsec-vpn vpn-name;
pair-policy pair-policy;
}
}
reject;
}
}
}
Hierarchy Level
Description
Options
Release Information
Statement introduced in Junos OS Release 8.5. Support for the services-offload and junos-host options
added in Junos OS Release 11.4. Support for the source-identity option added in Junos OS Release 12.1.
Support for the ssl-termination-profile and web-redirect-to-https options added in Junos OS Release
12.1X44-D10.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 707
707
Description | 707
Options | 707
Syntax
Hierarchy Level
Description
Options
• flag:
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 708
Description | 709
Options | 709
Syntax
Hierarchy Level
Description
Options
• flag—Trace operation to perform. To specify more than one trace operation, include multiple flag
statements.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 710
Description | 711
Options | 711
Syntax
traceoptions {
flag flag;
}
711
Hierarchy Level
Description
Options
• flag—Trace operation to perform. To specify more than one trace operation, include multiple flag
statements.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 713
Description | 713
Options | 714
Syntax
Hierarchy Level
Description
Options
• flag:
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 715
Description | 715
Options | 715
Syntax
Hierarchy Level
Description
Options
• flag—Trace operation to perform. To specify more than one trace operation, include multiple flag
statements.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 716
Description | 717
Options | 717
Syntax
Hierarchy Level
Description
Define tracing operations for individual Web filtering modules. To specify more than one tracing
operation, include multiple flag statements.
Options
• flag:
• cache—Enable Web filtering flags for the Web filtering cache maintained on the Web filtering
module.
• enhanced—Enable Web filtering flags for processing through Enhanced Web Filtering.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
traceoptions (SMTP)
IN THIS SECTION
Syntax | 718
Description | 719
Options | 719
Syntax
traceoptions {
flag {
all;
configuration;
IPC;
protocol-exchange;
send-request;
}
}
719
Hierarchy Level
[edit smtp]
Description
Options
Release Information
RELATED DOCUMENTATION
utm | 748
720
traffic-options
IN THIS SECTION
Syntax | 720
Description | 721
Options | 721
Syntax
traffic-options {
sessions-per-client {
limit value;
over-limit (block | log-and-permit);
}
}
Hierarchy Level
Description
In an attempt to consume all available resources and hinder the ability of the device, a malicious user
might generate a large amount of traffic all at once. To prevent such activity from succeeding, you can
impose a session throttle.
Starting in Junos OS Release 18.2R1 , we've deprecated the traffic-options statement at the [edit security
utm utm-policy policy-name] hierarchy level.
Options
Release Information
trickling
IN THIS SECTION
Syntax | 722
Description | 722
722
Options | 723
Syntax
trickling {
timeout value;
}
Hierarchy Level
Description
HTTP trickling is a mechanism used to prevent the HTTP client or server from timing-out during a file
transfer or during antivirus scanning. HTTP Trickling is time-based and there is only one parameter to
configure for this feature, which is the timeout Interval. By default, trickling is disabled.
WARNING: When you enable the trickling option, keep in mind that trickling might
send part of a file to the client during its antivirus scan. It is therefore possible that
some of the content could be received by the client before the file has been fully
scanned.
723
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Statement updated for
Sophos support in Junos OS Release 11.1.
Release Description
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
IN THIS SECTION
Syntax | 724
Description | 724
724
Syntax
Hierarchy Level
Description
Set the antivirus engine that will be used on the device. You can only have one engine type running and
you must restart the device if you change engines.
Release Information
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5. Statement updated for Sophos in
Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards.
IN THIS SECTION
Syntax | 725
Description | 726
Options | 726
Syntax
Hierarchy Level
Description
When content is blocked, the client generally still receives a successful response code but with modified
content (file replacement) containing a warning message. But with protocol-only notifications, a
protocol-specific error code might be returned to the client.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
727
IN THIS SECTION
Syntax | 727
Description | 728
Options | 728
Syntax
Hierarchy Level
Description
You can configure notifications for both fallback blocking and fallback nonblocking actions. With
protocol-only notifications, a protocol-specific error code may be returned to the client.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1 .
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
729
IN THIS SECTION
Syntax | 729
Description | 730
Options | 730
Syntax
Hierarchy Level
Description
When content is blocked because a virus is found or a scan error occurs, the client generally still
receives a successful response code but with modified content (file replacement) containing a warning
message. But with protocol-only notifications, a protocol-specific error code might be returned to the
client.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
731
IN THIS SECTION
Syntax | 731
Description | 731
Options | 732
Syntax
Hierarchy Level
Description
Define the type of Web filtering solution or URL filtering solution used by the device.
732
Options
Release Information
The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, command introduced in Junos OS Release 9.5.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10
onwards.
733
IN THIS SECTION
Syntax | 733
Description | 733
Syntax
upload-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the antivirus FTP (upload) protocol and attach this policy to a security profile
to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 734
Description | 735
Syntax
upload-profile profile-name;
Hierarchy Level
Description
Configure a UTM policy for the content-filtering FTP (upload) protocol and attach this policy to a
security profile to implement it.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
uri-check
IN THIS SECTION
Syntax | 736
Description | 736
Syntax
uri-check;
Hierarchy Level
Description
Perform Sophos antivirus Uniform Resource Identifier (URI) checking. URI checking is a way of analyzing
URI content in HTTP traffic against a remote Sophos database to identify malware or malicious content.
URI checking is on by default.
NOTE: Starting in Junos OS release 18.4R1, the URI checking is off by default.
You can disable Sophos antivirus URI checking with the no-uri-check statement.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
737
IN THIS SECTION
Syntax | 737
Description | 737
Syntax
url url;
Hierarchy Level
Description
Specify the URL for the pattern database. You should not change the default URL unless you are
experiencing problems with it and have called for support.
738
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5 for Juniper Express
engine and Kaspersky Lab engine. Support for Sophos engine added in Junos OS Release 11.1.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
Release Description
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
url-blacklist
IN THIS SECTION
Syntax | 739
Description | 739
Options | 739
Syntax
url-blacklist listname;
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
740
url-pattern
IN THIS SECTION
Syntax | 740
Description | 740
Options | 743
Syntax
url-pattern object-name {
value [value];
}
Hierarchy Level
Description
Use URL pattern lists to create custom URL category lists. These are lists of patterns that bypass
scanning.
741
WARNING: Custom category does not take precedence over predefined categories
when it has the same name as one of the predefined categories. We do not recommend
having a custom category name be the same as the predefined category name.
Starting in Junos OS Release 20.4R1, the URL filtering supports the regular expression format given in
Table 8 on page 741.
Caret (^) in domain Pattern = [^]..[^].sub- Caret could be at any place. ^.google.^.^
name domain.[^]..[^].sub-domain.
Match one word in domain a.^.b
[^]..[^]
name.
Question Mark (?) Pattern = sub-domain.sub- Question mark should be at the dev.local?
in domain name domain.sub-do[?][?] tail only.
www.yahoo.??
Match one character in domain
name.
Prefix in URL path Pattern = <domain-name>/ Match the longest prefix in the <domain>/watch?
[prefix] URL path.
<domain>/news/
The system validate the URL patterns when you commit the configuration. If you configure an invalid
pattern, the system shows a popup warning with the first bad character in (). For example, the pattern
a.*.com shows a warning message Pattern a.(*).com not supported.
Starting in Junos OS Release 20.4R1, we have introduced a golden match for multiple URL patterns.
When you configure multiple patterns for one domain, sometimes a specific URL could match multiple
patterns, then the URL filtering module selects the best out of these patterns, which is the golden
match. For the selection of the golden match, the URL filtering module prioritizes the URL pattern in the
following sequence:
2. Within the same domain name pattern, select the longest prefix match of the URL path.
3. Within the same domain name pattern and same URL path prefix, keyword match will take the
priority.
1. Pattern 1 = finance.abc.com/gb/chinainternet/
2. Pattern 2 = finance.abc.^/gb/chinamkt/
3. Pattern 3 = finance.abc.^/gb/chinamkt/*.shtml
4. Pattern 4 = *.abc.com/gb/chinamkt/chinamkt_cn
1. URL filtering module considers all the four patterns as a potential match in the domain name match
stage, and the priority order is:
2. Within the same domain name pattern, the URL filtering module considers the longest prefix match
of the URL path.
• Pattern 1 does not match the URL path and the URL filtering module skips pattern 1.
• Pattern 2 and pattern 3 have the same prefix in the URL path. Hence, the keywords match
controls the golden match selection. Finally, the URL filtering module prefers pattern 3 that has
the longest keywords match as the golden match.
743
Options
• value value—Value of the URL list object. You can configure multiple values separated by spaces and
enclosed in square brackets.
Release Information
RELATED DOCUMENTATION
url-whitelist
IN THIS SECTION
Syntax | 744
Description | 744
Syntax
url-whitelist listname;
Hierarchy Level
Description
A URL allowlist is a unique custom list that you define in which all the URLs or IP addresses in that list
for a specified category are always bypassed for scanning.
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
745
url-whitelist
IN THIS SECTION
Syntax | 745
Description | 745
Options | 746
Syntax
url-whitelist listname;
Hierarchy Level
Description
A URL allowlist is a unique custom list that you define in which all the URLs or IP addresses in that list
for a specified category are always bypassed for filtering
746
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
IN THIS SECTION
Syntax | 746
Description | 747
Syntax
username name;
747
Hierarchy Level
Description
Release Information
The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 11.2.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
15.1X49-D10 The Express and Kaspersky Antivirus feature is not supported from Junos OS Release 15.1X49-
D10 onwards.
748
utm
IN THIS SECTION
Syntax | 748
Description | 758
Options | 759
Syntax
utm {
application-proxy {
traceoptions {
flag flag;
}
}
custom-objects {
custom-url-category object-name {
value [value];
}
filename-extension object-name {
value [value];
}
mime-pattern object-name {
value [value];
}
protocol-command object-name {
value [value];
}
url-pattern object-name {
value [value];
}
749
}
feature-profile {
anti-spam {
address-blacklist list-name;
address-whitelist list-name;
sbl {
profile profile-name {
custom-tag-string [string];
(sbl-default-server | no-sbl-default-server);
spam-action (block | tag-header | tag-subject);
}
}
traceoptions {
flag flag;
}
}
anti-virus {
juniper-express-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
url url;
}
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
750
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(intelligent-prescreening | no-intelligent-prescreening);
timeout value;
}
trickling {
timeout value;
}
}
}
kaspersky-lab-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
751
port port-number;
server address-or-url;
username name;
}
url url;
}
profile profile-name {
fallback-options {
content-size (block | log-and-permit);
corrupt-file (block | log-and-permit);
decompress-layer (block | log-and-permit);
default (block | log-and-permit);
engine-not-ready (block | log-and-permit);
out-of-resources (block | (log-and-permit);
password-file (block | (log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
notification-options {
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
decompress-layer-limit value;
752
(intelligent-prescreening | no-intelligent-prescreening);
scan-extension filename;
scan-mode (all | by-extension);
timeout value;
}
trickling {
timeout value;
}
}
}
mime-whitelist {
exception listname;
list listname {
exception listname;
}
}
sophos-engine {
pattern-update {
email-notify {
admin-email email-address;
custom-message message;
custom-message-subject message-subject;
}
interval value;
no-autoupdate;
proxy {
password password-string;
port port-number;
server address-or-url;
username name;
}
url url;
}
profile <name> {
fallback-options {
content-size (block | log-and-permit | permit);
default (block | log-and-permit | permit);
engine-not-ready (block | log-and-permit | permit);
out-of-resources (block | log-and-permit | permit);
timeout (block | log-and-permit | permit);
too-many-requests (block | log-and-permit | permit);
}
notification-options {
753
fallback-block {
administrator-email email-address;
allow-email;
custom-message message;
custom-message-subject message-subject;
display-host;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
fallback-non-block {
custom-message message;
custom-message-subject message-subject;
(notify-mail-recipient | no-notify-mail-recipient);
}
virus-detection {
custom-message message;
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
}
scan-options {
content-size-limit value;
(no-uri-check | uri-check);
timeout value;
}
trickling {
timeout value;
}
}
sxl-retry value;
sxl-timeout seconds;
}
traceoptions {
flag flag;
}
type (juniper-express-engine | kaspersky-lab-engine | sophos-engine);
url-whitelist listname;
}
content-filtering {
profile profile-name {
block-command protocol-command-list;
block-content-type (activex | exe | http-cookie | java-applet | zip);
754
block-extension extension-list;
block-mime {
exception list-name;
list list-name;
}
notification-options {
custom-message message;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
permit-command protocol-command-list;
}
traceoptions {
flag flag;
}
}
web-filtering {
juniper-enhanced {
cache {
size value;
timeout value;
}
profile profile-name {
block-message {
type {
custom-redirect-url;
}
url url;
}
quarantine-message {
type {
custom-redirect-url;
}
url url;
}
category customurl-list name {
action (block | log-and-permit | permit | quarantine);
}
custom-block-message value;
custom-quarantine-message value;
default (block | log-and-permit | permit | quarantine);
fallback-settings {
default (block | log-and-permit);
755
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
timeout value;
}
server {
host host-name;
port number;
}
}
traceoptions {
flag flag;
}
type (juniper-enhanced | juniper-local | surf-control-integrated | websense-
redirect);
url-blacklist listname;
url-whitelist listname;
websense-redirect {
profile profile-name {
account value;
custom-block-message value;
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
server {
host host-name;
port number;
}
sockets value;
timeout value;
}
}
}
}
ipc {
traceoptions flag flag;
}
757
traceoptions {
flag flag;
}
utm-policy policy-name {
anti-spam {
smtp-profile profile-name;
}
anti-virus {
ftp {
download-profile profile-name;
upload-profile profile-name;
}
http-profile profile-name;
imap-profile profile-name;
pop3-profile profile-name;
smtp-profile profile-name;
}
content-filtering {
ftp {
download-profile profile-name;
upload-profile profile-name;
}
http-profile profile-name;
imap-profile profile-name;
pop3-profile profile-name;
rule-set rule-set-name {
rule rule-name {
match {
application any; /*http, pop3, impa, smtp, ftp */
direction any; /* upload or download */
file-type exe; /*predetected file types*/
}
then {
action {
no-action; /* No action */
/* block Block and drop connection */
/* close-client Close client */
/* close-server Close server */
/* close-client-and-server Close client and server */
}
notification {
seclog; /* event logging */
endpoint { /* endpoint notification options */
758
type protocol-only;
notify-mail-sender;
custom-message "CF Blocks content";
}
}
}
}
}
}
}
smtp-profile profile-name;
}
traffic-options {
sessions-per-client {
limit value;
over-limit (block | log-and-permit);
}
}
web-filtering {
http-profile profile-name;
}
}
}
Hierarchy Level
Description
Options
Release Information
Starting in Junos OS Release 21.4R1, content filtering is performed by detecting the file content and not
the file extensions. So, content filtering options based on mime-type, content-type, and protocol
command is not supported. After you upgrade to Junos OS Release 21.4R1 above listed options are no
more available for configuration. The rule-set and rules configurations are introduced under the [edit
security utm utm-policy <utm-policy-name> content-filtering] hierarchy level. These rules and rule-set allows
you to configure direction specific content filters and connection reset.
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
The Kaspersky, surf-control-integrated, and express antivirus features are not supported from Junos OS
Release 15.1X49-D10 onwards. For previous releases, statement introduced in Junos OS Release 9.5 .
Release Description
15.1X49-D10 The Kaspersky, surf-control-integrated, and express antivirus features are not supported from
Junos OS Release 15.1X49-D10 onwards.
760
default-configuration
IN THIS SECTION
Syntax | 760
Description | 766
Options | 766
Syntax
utm {
default-configuration {
anti-spam {
address-blacklist;
address-whitelist;
sbl {
custom-tag-string;
(sbl-default-server | no-sbl-default-server);
spam-action (block | tag-header | tag-subject);
}
traceoptions {
flag name;
}
type (anti-spam-none | sbl);
}
anti-virus {
mime-whitelist {
exception;
list;
}
sophos-engine {
fallback-options {
761
}
routing-instance;
url;
}
scan-options {
content-size-limit;
timeout seconds;
(uri-check | no-uri-check);
}
server {
ip;
routing-instance;
}
sxl-retry;
sxl-timeout seconds;
trickling timeout;
}
traceoptions {
flag name;
}
url-whitelist;
}
content-filtering {
block-command;
block-content-type {
activex;
exe;
http-cookie;
java-applet;
zip;
}
block-extension;
block-mime {
exception;
list;
}
notification-options {
custom-message;
(notify-mail-sender | no-notify-mail-sender);
seclog; /* New event logging global setting */
type (message | protocol-only);
} permit-command;
traceoptions {
763
flag name;
}
rule-set rule-set-name { /* New provision to add to default rules */
rule rule-name {
}
}
type (content-filtering-none | local);
}
web-filtering {
http-persist;
http-reassemble;
juniper-enhanced {
base-filter;
block-message {
type custom-redirect-url;
url;
}
cache {
size kilobytes;
timeout minutes;
}
category name {
action (block | log-and-permit | permit | quarantine);
custom-message;
}
custom-block-message;
default (block | log-and-permit | permit | quarantine);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
no-safe-search;
quarantine-custom-message;
quarantine-message {
type custom-redirect-url;
url;
}
reputation {
reputation-fairly-safe;
reputation-moderately-safe;
reputation-suspicious;
764
reputation-very-safe;
}
server {
host;
port;
routing-instance;
}
site-reputation-action {
fairly-safe (block | log-and-permit | permit | quarantine);
harmful (block | log-and-permit | permit | quarantine);
moderately-safe (block | log-and-permit | permit | quarantine);
suspicious (block | log-and-permit | permit | quarantine);
very-safe (block | log-and-permit | permit | quarantine);
}
timeout seconds;
}
juniper-local {
block-message {
type custom-redirect-url;
url;
}
category name {
action (block | log-and-permit | permit | quarantine);
custom-message;
}
custom-block-message;
default (block | log-and-permit | permit);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
quarantine-custom-message;
quarantine-message {
type custom-redirect-url;
url;
}
timeout seconds;
}
traceoptions {
flag name;
}
765
url-blacklist;
url-whitelist;
websense-redirect {
account;
block-message {
type custom-redirect-url;
url;
}
category name {
action (block | log-and-permit | permit | quarantine);
custom-message;
}
custom-block-message;
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
quarantine-custom-message;
quarantine-message {
type custom-redirect-url;
url;
}
server {
host;
port;
routing-instance;
}
sockets;
timeout seconds;
}
}
}
application-proxy;
custom-objects;
feature-profile;
traceoptions;
utm-policy junos-default-utm-policy;
}
}
766
Hierarchy Level
Description
• UTM default configuration for unified policies—For security policies that enable UTM with no
custom UTM policy defined, the default UTM policy will be used.
• UTM default configuration for existing UTM policies—For existing security policies that have a UTM
policy enabled, the default UTM policy will NOT be used.
Options
anti-spam Configure the default UTM configuration for antispam feature profile.
anti-virus Configure the default UTM configuration for antivirus feature profile.
content-filtering Configure the default UTM configuration for content filtering feature profile.
web-filtering Configure the default UTM configuration for Web filtering feature profile.
utm-policy Configure a UTM policy for antivirus, antispam, content filtering, traffic options,
and Web filtering protocols and attach this policy to a security profile to implement
it.
feature-profile Configure UTM features, antivirus, antispam, content filtering, and Web filtering by
creating feature profiles.
custom-objects Configure custom objects before configuring UTM feature-profile features. Custom
category does not take precedence over predefined categories when it has the
same name as one of the predefined categories. It is not recommended to have a
custom category name be the same as the predefined category name.
Release Information
Starting in Junos OS Release 21.4R1, the rule-set and rules configurations introduced under the [edit
security utm utm-policy <utm-policy-name> content-filtering] hierarchy level can be used from [edit security
utm default-configuration content-filtering hierarchy.
Content filtering options based on mime-type, content-type, and protocol command is not supported.
After you upgrade to Junos OS Release 21.4R1, previously existing file extension based content filtering
options under the [edit security utm utm-policy <utm-policy-name> content-filtering] hierarchy are no more
available for configuration.
Junos OS Release 21.4R1 allows you to use legacy functionality if you don’t want to migrate to this
modern functionality. You will be allowed to use the legacy configurations but all the legacy
configuration knobs are deprecated and are hidden. Also, you will receive system logs and error message
warnings when you use all the legacy deprecated knobs.
utm-policy
IN THIS SECTION
Syntax | 768
Description | 770
Options | 770
Syntax
utm-policy policy-name {
anti-spam {
smtp-profile profile-name;
}
anti-virus {
ftp {
download-profile profile-name;
upload-profile profile-name;
}
http-profile profile-name;
imap-profile profile-name;
pop3-profile profile-name;
smtp-profile profile-name;
}
content-filtering {
ftp {
download-profile profile-name;
upload-profile profile-name;
}
http-profile profile-name;
imap-profile profile-name;
pop3-profile profile-name;
769
rule-set rule-set-name {
rule rule-name {
match {
application any; /*http, pop3, impa, smtp, ftp */
direction any; /* upload or download */
file-type exe; /*predetect magic supported file types*/
}
then {
action {
no-action; /* No action */
/* block Block and drop connection */
/* close-client Close client */
/* close-server Close server */
/* close-client-and-server Close client and server */
}
notification {
seclog; /* event logging */
endpoint { /* endpoint notification options */
type protocol-only;
notify-mail-sender;
custom-message "CF Blocks content";
}
smtp-profile profile-name;
}
traffic-options {
sessions-per-client {
limit value;
over-limit (block | log-and-permit);
}
}
web-filtering {
http-profile profile-name;
}
}
Hierarchy Level
Description
Configure a UTM policy for antivirus, antispam, content-filtering, traffic-options, and Web-filtering
protocols and attach this policy to a security profile to implement it.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 771
Description | 771
Options | 772
Syntax
utm-policy policy-name;
Hierarchy Level
[edit security policies from-zone zone-name to-zone zone-name policy policy-name then permit
application-services]
Description
Configure a UTM policy for application services and attach this policy to a security profile to implement
it.
772
Options
Release Information
IN THIS SECTION
Syntax | 772
Description | 773
Options | 773
Syntax
virus-detection {
custom-message message;
773
custom-message-subject message-subject;
(notify-mail-sender | no-notify-mail-sender);
type (message | protocol-only);
}
Hierarchy Level
Description
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
The Express and Kaspersky Antivirus features are not supported from Junos OS Release 15.1X49-D10
onwards. For previous releases, statement introduced in Junos OS Release 9.5. Support for Sophos
engine added in Junos OS Release 11.1.
Release Description
15.1X49-D10 The Express and Kaspersky Antivirus features are not supported from Junos OS Release 15.1X49-
D10 onwards.
web-filtering
IN THIS SECTION
Syntax | 774
Description | 777
Options | 778
Syntax
web-filtering {
http-persist;
http-reassemble;
juniper-enhanced {
base-filter;
block-message {
775
type custom-redirect-url;
url;
}
cache {
size kilobytes;
timeout minutes;
}
category name {
action (block | log-and-permit | permit | quarantine);
custom-message;
}
custom-block-message;
default (block | log-and-permit | permit | quarantine);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
no-safe-search;
quarantine-custom-message;
quarantine-message {
type custom-redirect-url;
url;
}
reputation {
reputation-fairly-safe;
reputation-moderately-safe;
reputation-suspicious;
reputation-very-safe;
}
server {
host;
port;
routing-instance;
}
site-reputation-action {
fairly-safe (block | log-and-permit | permit | quarantine);
harmful (block | log-and-permit | permit | quarantine);
moderately-safe (block | log-and-permit | permit | quarantine);
suspicious (block | log-and-permit | permit | quarantine);
very-safe (block | log-and-permit | permit | quarantine);
}
776
timeout seconds;
}
juniper-local {
block-message {
type custom-redirect-url;
url;
}
category name {
action (block | log-and-permit | permit | quarantine);
custom-message;
}
custom-block-message;
default (block | log-and-permit | permit);
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
quarantine-custom-message;
quarantine-message {
type custom-redirect-url;
url;
}
timeout seconds;
}
performance-mode;
traceoptions {
flag name;
}
url-blacklist;
url-whitelist;
websense-redirect {
account;
block-message {
type custom-redirect-url;
url;
}
category name {
action (block | log-and-permit | permit | quarantine);
custom-message;
}
custom-block-message;
777
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
quarantine-custom-message;
quarantine-message {
type custom-redirect-url;
url;
}
server {
host;
port;
routing-instance;
}
sockets;
timeout seconds;
}
}
Hierarchy Level
Description
Configure UTM web filtering features. You can also configure the default UTM configuration for web
filtering feature profile. If you do not configure any option in the web filtering feature profile, the values
configured in the default UTM configuration are applied. The default UTM Web filtering configuration
for HTTP is also applicable for the HTTPS sessions. Web filtering feature’s potential policies conflict
check is independent of the content filtering, antivirus, and antispam features.
778
Options
http-persist Check all HTTP request in a connection. If http-persist option is enabled for clear
text HTTP traffic, then Web filtering checks every HTTP request packet in the same
session.
http-reassemble Reassemble HTTP request segments. If http-reassemble option is enabled for clear
text HTTP traffic, then Enhanced Web Filtering (EWF) reassembles the fragmented
HTTP request to avoid evasion instead of packet-based inspection.
base-filter A base filter is an object that contains a category-action pair for all categories
defined in the category file.
cache Set the cache parameters for Surf-Control-Integrated Web filtering and Enhanced
Web Filtering.
category Select a custom URL category list you created (custom objects) for filtering against.
custom-block-message Enter a custom message to be sent when HTTP requests are blocked.
default Specify an action for the profile, for requests that experience internal errors in the
Web filtering module.
no-safe-search Do not perform safe-search for Juniper enhanced protocol. Safe-search redirect
supports HTTP only. Therefore it is not possible to generate a redirect response for
HTTPS search URLs. Safe-search redirects can be disabled by using the CLI option
no-safe-search.
reputation Customize reputation level. The ThreatSeeker Cloud (TSC) provides site reputation
information. Based on these reputations, you can choose a block or a permit action.
site-reputation- Specify the action to be taken depending on the site reputation returned for all
action types of URLs whether it is categorized or uncategorized.
timeout Enter a timeout limit for requests. Once this limit is reached, fail mode settings are
applied.
url-blacklist This is a global blocklist category, blocking content for Web filtering.
url-whitelist A URL allowlist is a unique custom list that you define in which all the URLs or IP
addresses in that list for a specified category are always bypassed for filtering.
websense-redirect Web filtering websense redirect engine. Websense occasionally releases new EWF
categories. EWF classifies websites into categories according to host, URL, or IP
address and performs filtering based on the categories.
type Type of Web filtering solution or URL filtering solution used by the device.
performance-mode Improves the performance by only analyzing the traffic requests on ports 80 and
443.
Release Information
The surf-control-integrated feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, statement introduced in Junos OS Release 9.5.
780
The [edit security utm default-configuration] hierarchy level introduced in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 780
Description | 781
Syntax
web-filtering {
http-profile http-profile;
}
Hierarchy Level
Description
Configures a UTM policy for the Web filtering protocols and attach this policy to a security profile to
implement it. Web filtering allows you to manage Internet usage by preventing access to inappropriate
Web content.
Release Information
RELATED DOCUMENTATION
websense-redirect
IN THIS SECTION
Syntax | 782
Description | 783
Options | 783
Syntax
websense-redirect {
profile profile-name {
account value;
custom-block-message value;
fallback-settings {
default (block | log-and-permit);
server-connectivity (block | log-and-permit);
timeout (block | log-and-permit);
too-many-requests (block | log-and-permit);
}
server {
host host-name;
port number;
}
sockets value;
timeout value;
no-safe-search;
}
}
783
Hierarchy Level
Description
Starting with Junos OS Release 17.4R1, you can download and dynamically load new Enhanced Web
Filtering (EWF) categories. The downloading and dynamic loading of the new EWF categories do not
require a software upgrade. Websense occasionally releases new EWF categories. EWF classifies
websites into categories according to host, URL, or IP address and performs filtering based on the
categories.
The new categories do not affect the existing configurations. You can modify the existing configurations
to make use of the new categories.
Options
Release Information
The [edit security utm default-configuration] hierarchy level is introduced in Junos OS Release 18.2R1.
784
RELATED DOCUMENTATION
Example: Enhancing Security by Configuring Redirect Web Filtering Using Custom Objects | 202
8 CHAPTER
Operational Commands
IN THIS SECTION
Syntax | 787
Description | 787
Options | 788
Syntax
Description
Clears antispam statistics information. With chassis cluster support for UTM, statistics from both the
nodes is cleared.
Starting in Junos OS Release 18.3R1, you can clear the antispam statistics information for the primary
logical system or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can clear the antispam statistics information for a specific
tenant system or for all the tenant systems.
788
Options
none Clears the antispam statistics information for the primary logical system.
root-logical-system (Optional) Clears the antispam statistics information for the primary logical system.
logical-system logical- (Optional) Clears the antispam statistics information for a specific user
system-name logical system.
all (Optional) Clears the antispam statistics information for all the user logical systems.
all-logical-systems- (Optional) Clears the antispam statistics information for all the logical
tenants systems and tenant systems.
tenant tenant-name (Optional) Clears the antispam statistics information for a specific tenant system.
all (Optional) Clears the antispam statistics information for all the tenant systems.
clear
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 790
Description | 790
Options | 791
Syntax
Description
Clears antivirus statistics information. With chassis cluster support for UTM, statistics from both the
nodes are cleared.
Starting in Junos OS Release 18.3R1, you can clear the antivirus statistics information for the primary
logical system or for a specific user logical system or for all the user logical systems.
791
Starting in Junos OS Release 19.2R1, you can clear the antivirus statistics information for a specific
tenant system or for all the tenant systems.
Options
none Clears the antivirus statistics information for the primary logical system.
root-logical-system (Optional) Clears the antivirus statistics information for the primary logical system.
logical-system logical- (Optional) Clears the antivirus statistics information for a specific user
system-name logical system.
all (Optional) Clears the antivirus statistics information for all the user logical systems.
all-logical-systems- (Optional) Clears the antivirus statistics information for all the logical systems
tenants and tenant systems.
tenant tenant-name (Optional) Clears the antivirus statistics information for a specific tenant system.
all (Optional) Clears the antivirus statistics information for all the tenant systems.
clear
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 794
Description | 794
Options | 794
Syntax
Description
Clears content-filtering statistics information. With chassis cluster support for UTM, statistics from both
the nodes are cleared.
Starting in Junos OS Release 18.3R1, you can clear the content filtering statistics information for the
primary logical system or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can clear the content filtering statistics information for a
specific tenant system or for all the tenant systems.
Options
none Clears the content filtering statistics information for the primary logical system.
root-logical- (Optional) Clears the content filtering statistics information for the primary logical
system system.
logical-system logical- (Optional) Clears the content filtering statistics information for a specific
system-name user logical system.
all (Optional) Clears the content filtering statistics information for all the user logical systems.
all-logical-systems- (Optional) Clears the content filtering statistics information for all the logical
tenants systems and tenant systems.
tenant tenant-name (Optional) Clears the content filtering statistics information for a specific tenant
system.
795
all (Optional) Clears the content filtering statistics information for all the tenant systems.
clear
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 797
Description | 797
Syntax
Description
Clear UTM session information. With chassis cluster support for UTM, sessions on both the nodes are
cleared.
clear
Output Fields
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 798
Description | 799
Options | 799
Syntax
Description
Clear web filtering statistics information. With chassis cluster support for UTM, statistics from both the
nodes is cleared.
Starting in Junos OS Release 18.3R1, you can clear the Web filtering statistics information for the
primary logical system or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can clear the Web filtering statistics information for a specific
tenant system or for all the tenant systems.
Options
none Clears the Web filtering statistics information for the primary logical system.
root-logical- (Optional) Clears the Web filtering statistics information for the primary logical
system system.
logical-system logical- (Optional) Clears the Web filtering statistics information for a specific user
system-name logical system.
all (Optional) Clears the Web filtering statistics information for all the user logical systems.
all-logical-systems- (Optional) Clears the Web filtering statistics information for all the logical
tenants systems and tenant systems.
tenant tenant-name (Optional) Clears the Web filtering statistics information for a specific tenant
system.
all (Optional) Clears the Web filtering statistics information for all the tenant systems.
clear
800
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 802
Description | 802
Options | 802
Syntax
Description
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, manually update the express antivirus pattern database using the command
described. You can update the express antivirus pattern database automatically or manually. With full
chassis cluster support for UTM this command is operational on both the nodes.
Options
• pattern-update — Update the express antivirus pattern database with the latest signatures.
maintenance
Output Fields
When you enter this command, you are provided feedback on the status of your request.
803
Sample Output
Release Information
The Express Antivirus feature is not supported from Junos OS Release 15.1X49-D10 onwards. For
previous releases, command introduced in Junos OS Release 9.5.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 804
Description | 804
Options | 804
Syntax
Description
The Kaspersky Antivirus feature is not supported from Junos OS Release 15.1x49-D10 onwards.For
previous releases, manually update the full file-based antivirus pattern database using the commands
described. You can update the full file-based antivirus pattern database automatically or manually. With
full chassis cluster support for UTM this command is operational on both the nodes.
Options
• pattern-update — Update the full file-based antivirus pattern database with the latest signatures.
maintenance
Output Fields
When you enter this command, you are provided feedback on the status of your request.
805
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 806
Description | 806
Options | 806
Syntax
Description
Manually update the Sophos antivirus pattern database using the command described. To update
automatically you use the configuration statement set security utm feature-profile anti-virus sophos-engine
pattern-update interval seconds. With full chassis cluster support for UTM this command is operational on
both the nodes.
Options
• pattern-update — Update the Sophos antivirus pattern database with the latest signatures.
maintenance
Output Fields
When you enter this command, you are provided feedback on the status of your request.
807
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 808
Description | 808
Options | 808
Syntax
Description
Manually update the Avira antivirus pattern database using the command described. To update
automatically you use the configuration statement set security utm default-configuration anti-virus avira-
engine pattern-update interval seconds. Avira is an internal scan engine that provides a full file-based
anitvirus scanning feature. The full file-based antivirus scanning feature is a separately licensed
subscription service. The Avira scan engine is provided as a downloadable UTM module. You can
download and install virus signature database.
Options
• pattern-local-update — Update the Avira antivirus pattern database from local folder.
• pattern-update — Update the Avira antivirus pattern database with the latest signatures.
maintenance
809
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
Sample Output
Sample Output
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 811
Description | 811
Syntax
Description
Install the predefined category and predefined filter on the system. Users could check the category or
filter using the following command: show security utm web-filtering category base-filter.
NOTE: During new category file installation, if the category filename is changed, then the new
category file overwrites the old category file in the internal system and all related output
information is replaced with the new category name.
maintenance
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 812
Description | 812
Syntax
Description
Reset the predefined category and the base filters to the factory default. This option helps for category
rollback.
maintenance
813
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 814
Description | 814
Syntax
Description
Download and install the category file, if no version is specified, the latest version is downloaded and
installed during category upgrade.
maintenance
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 815
Description | 815
Syntax
Description
Download the category file, if no version is specified, the latest version of the category file is
downloaded during category upgrade.
maintenance
816
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 817
Description | 817
Syntax
Description
You can this command to check and reload all custom page files in the configuration. It displays the
similar error or warning messages when you commit the configuration.
View
Sample Output
Release Information
RELATED DOCUMENTATION
custom-page-file | 447
818
IN THIS SECTION
Syntax | 818
Description | 818
Options | 818
Syntax
Description
Options
view
Output Fields
Table 9 on page 819 describes the output fields for the show configuration smtp command.
Sample Output
Release Information
RELATED DOCUMENTATION
utm | 748
IN THIS SECTION
Syntax | 820
Description | 820
Syntax
Description
Display the full set of available preset statements from the defaults group.
view
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 822
Description | 822
Options | 822
Syntax
Description
Display security event logs. This command continuously displays security events on the screen. To stop
the display, press Ctrl+c.
Options
all Display all audit event logs stored in the device memory.
destination-address Display audit event logs with the specified destination address.
823
destination-port Display audit event logs with the specified destination port.
event-id Display audit event logs with the specified event identification number.
newer-than Display audit event logs newer than the specified date and time.
older-than Display audit event logs older than the specified date and time.
process Display audit event logs with the specified process that generated the event.
protocol Display audit event logs generated through the specified protocol.
severity Display audit event logs generated with the specified severity.
sort-by Display audit event logs generated sorted with the specified options.
source-address Display audit event logs with the specified source address.
source-port Display audit event logs with the specified source port.
username Display audit event logs generated for the specified user.
view
Output Fields
Table 10 on page 824 lists the output fields for the show security log command. Output fields are listed
in the approximate order in which they appear.
824
Security logs were always timestamped using the UTC time zone by running
set system time-zone utc and set security log utc-timestamp CLI commands.
Now, time zone can be defined using the local time zone by running the set
system time-zone time-zone command to specify the local time zone that the
system should use when timestamping the security logs.
Sample Output
...
2010-10-22 13:36:12 CST session denied m icmp 1(8) policy1 trustZone untrustZone N/A(N/A)
ge-0/0/1.0
2010-10-22 13:36:14 CST session denied 1.1.1.2/2-->2.2.2.2/54812 icmp 1(8) policy1 trustZone
untrustZone N/A(N/A) ge-0/0/1.0
...
2010-10-27 15:50:11 CST IP spoofing! source: 2.2.2.20, destination: 2.2.2.2, protocol-id: 17,
zone name: trustZone, interface name: ge-0/0/1.0, action: drop
2010-10-27 15:50:11 CST IP spoofing! source: source: 2.2.2.20, destination: 2.2.2.2, protocol-
id: 17, zone name: trustZone, interface name: ge-0/0/1.0, action: drop
825
...
2011-02-18 15:53:34 CST PKID_PV_OBJECT_READ: A PKI object was read into memory from /var/db/
certs/common/certification-authority/ca-profile1-ca1.cert
2011-02-18 15:53:35 CST PKID_PV_OBJECT_READ: A PKI object was read into memory from /var/db/
certs/common/crl/ca-profile1.crl
2011-02-18 15:53:35 CST PKID_PV_OBJECT_READ: A PKI object was read into memory from /var/db/
certs/system-key-pair/system-generated.priv
2011-02-18 15:53:35 CST PKID_PV_OBJECT_READ: A PKI object was read into memory from /var/db/
certs/system-cert/system-generated.cert
2011-02-18 15:53:35 CST PKID_PV_OBJECT_READ: A PKI object was read into memory from /var/db/
certs/common/key-pair/cert1.priv
2011-02-18 15:53:42 CST PKID_PV_OBJECT_READ: A PKI object was read into memory from /var/db/
certs/common/key-pair/test2.priv
...
2011-03-14 23:00:40 PDT IDP_COMMIT_COMPLETED: IDP policy commit is complete.
IDP_POLICY_LOAD_FAILED: IDP policy loading failed ;poli
cy[/var/db/idpd/bins/.bin.gz.v], detector[/usr/libdata/libidp-detector.so.tgz.v]
,failure detail[Policy loading failed :: Policy file not found
2011-03-14 23:00:58 PDT ]
IDP_POLICY_LOAD_FAILED: IDP policy loading failed ;poli
cy[/var/db/idpd/bins/.bin.gz.v], detector[/usr/libdata/libidp-detector.so.tgz.v]
,failure detail[Policy loading failed :: Policy file not found
2011-03-14 23:00:58 PDT ]
IDP_POLICY_LOAD_FAILED: IDP policy loading failed ;poli
cy[/var/db/idpd/bins/.bin.gz.v], detector[/usr/libdata/libidp-detector.so.tgz.v]
,failure detail[Policy loading failed :: Policy file not found
2011-03-14 23:00:58 PDT ]
...
Event time Message
2011-03-21 14:21:49 CST UI_CMDLINE_READ_LINE: User 'root', command 'set date ntp 9.9.9.1 source-
address 6.6.6.1 '
2011-03-21 14:23:01 CST UI_CMDLINE_READ_LINE: User 'root', command 'set date ntp 9.9.9.1 source-
address 6.6.6.1 .5 '
2011-03-21 14:23:05 CST KMD_PM_SA_ESTABLISHED: Local gateway: 7.7.7.1, Remote gateway: 8.8.8.1,
Local ID: ipv4(any:0,[0..3]=6.6.6.1), Remote ID: ipv4(any:0,[0..3]=9.9.9.1), Direction: inbound,
SPI: 37a2a179, AUX-SPI: 0, Mode: tunnel, Type: dynamic
2011-03-21 14:23:05 CST KMD_PM_SA_ESTABLISHED: Local gateway: 7.7.7.1, Remote gateway: 8.8.8.1,
Local ID: ipv4(any:0,[0..3]=6.6.6.1), Remote ID: ipv4(any:0,[0..3]=9.9.9.1), Direction:
outbound, SPI: b2231c1f, AUX-SPI: 0, Mode: tunnel, Type: dynamic
2011-03-21 14:23:08 CST UI_CMDLINE_READ_LINE: User 'root', command 'set date ntp 9.9.9.1 source-
826
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 826
Description | 827
Options | 827
Syntax
<count>
<detail>
<from-zone zone-name>
<global>
<hit-count>
<information>
<logical-system logical-system-name>
<policy-name policy-name>
<root-logical-system>
<service-set>
<start>
<tenant tenant-name>
<to-zone zone-name>
<unknown-source-identity>
<zone-context>
Description
Displays a summary of all security policies configured on the device. If a particular policy is specified,
display information specific to that policy. The existing show commands for displaying the policies
configured with multiple tenant support are enhanced. A security policy controls the traffic flow from
one zone to another zone. The security policies allow you to deny, permit, reject (deny and send a TCP
RST or ICMP port unreachable message to the source host), encrypt and decrypt, authenticate,
prioritize, schedule, filter, and monitor the traffic attempting to cross from one security zone to another.
Options
• detail—(Optional) Displays a detailed view of all of the policies configured on the device.
• policy-name—(Optional) Displays the policy information matching the given policy name.
view
Output Fields
Table 11 on page 828 lists the output fields for the show security policies command. Output fields are
listed in the approximate order in which they appear.
• enabled: The policy can be used in the policy lookup process, which
determines access rights for a packet and the action taken in regard to it.
• disabled: The policy cannot be used in the policy lookup process, and
therefore it is not available for access control.
Sequence number Number of the policy within a given context. For example, three policies that
are applicable in a from-zoneA-to-zoneB context might be ordered with
sequence numbers 1, 2, 3. Also, in a from-zoneC-to-zoneD context, four
policies might have sequence numbers 1, 2, 3, 4.
Source addresses For standard display mode, the names of the source addresses for a policy.
Address sets are resolved to their individual names.
For detail display mode, the names and corresponding IP addresses of the
source addresses for a policy. Address sets are resolved to their individual
address name-IP address pairs.
Destination addresses Name of the destination address (or address set) as it was entered in the
destination zone’s address book. A packet’s destination address must match
this value for the policy to apply to it.
source-end-user-profile Name of the device identity profile (referred to as end-user-profile in the CLI)
that contains attributes, or characteristics of a device. Specification of the
device identity profile in the source-end-user-profile field is part of the device
identity feature. If a device matches the attributes specified in the profile and
other security policy parameters, then the security policy’s action is applied to
traffic issuing from the device.
Source addresses (excluded) Name of the source address excluded from the policy.
830
Destination addresses Name of the destination address excluded from the policy.
(excluded)
• ALG: If an ALG is explicitly associated with the policy, the name of the ALG
is displayed. If application-protocol ignore is configured, ignore is
displayed. Otherwise, 0 is displayed.
However, even if this command shows ALG: 0, ALGs might be triggered for
packets destined to well-known ports on which ALGs are listening, unless
ALGs are explicitly disabled or when application-protocol ignore is not
configured for custom applications.
• Source port range: The low-high source port range for the session
application.
Source identity feeds Name of a source identity (user name) added as match criteria
Destination identity feeds Name of a destination identity (user name) added as match criteria
• permit
• deny
Action or Action-type • The action taken for a packet that matches the policy’s tuples. Actions
include the following:
• permit
• feed
• firewall-authentication
• pair-policy pair-policy-name
• pool-set pool-set-name
• interface
• destination-nat name
• deny
• reject
• services-offload
Session log Session log entry that indicates whether the at-create and at-close flags were
set at configuration time to log session information.
Scheduler name Name of a preconfigured scheduler whose schedule determines when the
policy is active and can be used as a possible match for traffic.
833
Policy statistics • Input bytes—The total number of bytes presented for processing by the
device.
• Policy lookups—The number of times the policy was accessed to check for
a match.
834
Per policy TCP Options Configured syn and sequence checks, and the configured TCP MSS value for
the initial direction, the reverse direction or, both.
Feed Feeds details added in the security policy. The supported feeds are:
• add-source-ip-to-feed
• add-destination-ip-to-feed
• add-source-identity-to-feed
• add-destination-identity-to-feed
Sample Output
The following example displays the output with unified policies configured.
any-ipv6(global): ::/0
Destination addresses:
any-ipv4(global): 0.0.0.0/0
any-ipv6(global): ::/0
Application: any
IP protocol: 0, ALG: 0, Inactivity timeout: 0
Source port range: [0-0]
Destination port range: [0-0]
dynapp-redir-profile: profile1(1)
Per policy TCP Options: SYN check: No, SEQ check: No, Window scale: No
role1
role2
role4
Application: any
IP protocol: 0, ALG: 0, Inactivity timeout: 0
Source port range: [0-0]
Destination port range: [0-0]
Per policy TCP Options: SYN check: No, SEQ check: No
Policy statistics:
Input bytes : 18144 545 bps
Initial direction: 9072 272 bps
Reply direction : 9072 272 bps
Output bytes : 18144 545 bps
Initial direction: 9072 272 bps
Reply direction : 9072 272 bps
Input packets : 216 6 pps
Initial direction: 108 3 bps
Reply direction : 108 3 bps
Output packets : 216 6 pps
Initial direction: 108 3 bps
Reply direction : 108 3 bps
Session rate : 108 3 sps
Active sessions : 93
Session deletions : 15
Policy lookups : 108
Policy: p2, action-type: permit, services-offload:enabled , State: enabled, Index: 5, Scope
Policy: 0
Policy Type: Configured
Description: The policy p2 is for the sales team
Sequence number: 1
From zone: untrust, To zone: trust
Source addresses:
any-ipv4(global): 0.0.0.0/0
any-ipv6(global): ::/0
Destination addresses:
any-ipv4(global): 0.0.0.0/0
any-ipv6(global): ::/0
Source identities:
role1
role2
role4
Application: any
IP protocol: 0, ALG: 0, Inactivity timeout: 0
841
The following example displays the output with unified policies configured.
any-ipv6(global): ::/0
Application: junos-defaults
IP protocol: tcp, ALG: 0, Inactivity timeout: 0
Source port range: [0-0]
Destination port range: [80-80]
Per policy TCP Options: SYN check: No, SEQ check: No, Window scale: No
Dynamic-application: junos:HTTP
Application: junos-telnet
IP protocol: tcp, ALG: 0, Inactivity timeout: 1800
Source port range: [0-0]
Destination port range: [23-23]
Application: app_udp
IP protocol: udp, ALG: 0, Inactivity timeout: 1800
Source port range: [0-0]
Destination port range: [5000-5000]
Application: junos-icmp6-all
IP protocol: 58, ALG: 0, Inactivity timeout: 60
ICMP Information: type=255, code=0
Per policy TCP Options: SYN check: No, SEQ check: No, Window scale: No
Session log: at-create, at-close
Policy statistics:
Input bytes : 0 0 bps
Initial direction: 0 0 bps
Reply direction : 0 0 bps
Output bytes : 0 0 bps
Initial direction: 0 0 bps
Reply direction : 0 0 bps
Input packets : 0 0 pps
Initial direction: 0 0 bps
Reply direction : 0 0 bps
Output packets : 0 0 pps
Initial direction: 0 0 bps
Reply direction : 0 0 bps
Session rate : 0 0 sps
Active sessions : 0
Session deletions: 0
Policy lookups : 0
Applications: any
Source identity feeds: user_feed_1, user_feed_2
Destination identity feeds: user_feed_3, user_feed_4
Action: permit, application services, feed
Release Information
Support for global policy and services offloading is added in Junos OS Release 11.4.
Support for source-identities and the Description output field is added in Junos OS Release 12.1.
The output fields for Policy Statistics expanded, and the output fields for the global and policy-name
options are expanded to include from-zone and to-zone global match criteria in Junos OS Release
12.1X47-D10.
Support for the initial-tcp-mss and reverse-tcp-mss options is added in Junos OS Release 12.3X48-D20.
Output field and description for source-end-user-profile option is added in Junos OS Release 15.1x49-
D70.
Output field and description for dynamic-applications option is added in Junos OS Release 15.1x49-D100.
Output field and description for dynapp-redir-profile option is added in Junos OS Release 18.2R1.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 848
Description | 848
Options | 849
Syntax
Description
Displays antispam statistics for connections including total e-mail scanned, tagged, and dropped
connections.
Statistics from both the nodes (with full chassis cluster support for UTM) are displayed.
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc to view the
physical interface cards (PICs) and Flexible PIC Concentrator (FPC) statistics are not supported.
Starting in Junos OS Release 18.3R1, you can view the antispam statistics for the primary logical system
or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can view the antispam statistics for the tenant system.
849
Options
root-logical-system (Optional) Displays antispam statistics for the primary logical system.
logical-system logical-system- (Optional) Displays antispam statistics for a specific user logical
name system.
all (Optional) Displays antispam statistics for all the user logical systems.
<all-logical-systems- (Optional) Displays antispam statistics for all the logical systems and tenant
tenants> systems.
tenant tenant-name (Optional) Displays antispam statistics for a specific tenant system.
all (Optional) Displays antispam statistics for all the tenant systems.
view
Sample Output
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Total connections: 0
Denied connections: 0
Total greetings: 0
Denied greetings: 0
Total e-mail scanned: 0
White list hit: 0
Black list hit: 0
Spam total: 0
Spam tagged: 0
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Total connections: 0
Denied connections: 0
Total greetings: 0
Denied greetings: 0
Total e-mail scanned: 0
White list hit: 0
Black list hit: 0
Spam total: 0
Spam tagged: 0
851
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Total connections: 0
Denied connections: 0
Total greetings: 0
Denied greetings: 0
Total e-mail scanned: 0
White list hit: 0
Black list hit: 0
Spam total: 0
Spam tagged: 0
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Total connections: 0
Denied connections: 0
Total greetings: 0
Denied greetings: 0
Total e-mail scanned: 0
White list hit: 0
Black list hit: 0
Spam total: 0
Spam tagged: 0
852
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Total connections: 0
Denied connections: 0
Total greetings: 0
Denied greetings: 0
Total e-mail scanned: 0
White list hit: 0
Black list hit: 0
Spam total: 0
Spam tagged: 0
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Total connections: 0
Denied connections: 0
Total greetings: 0
Denied greetings: 0
Total e-mail scanned: 0
White list hit: 0
Black list hit: 0
Spam total: 0
Spam tagged: 0
853
Spam dropped: 0
DNS errors: 0
Timeout errors: 0
Return errors: 0
Invalid parameter errors: 0
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 854
Description | 854
Syntax
Description
Display antispam status for connections including allowlist and blocklist server information. Status of
both the nodes (with full chassis cluster support for UTM) is displayed.
view
Output Fields
Output fields are listed in the approximate order in which they appear.
command-name
DNS Server:
Primary : 1.2.3.4, Src Interface: ge-0/0/0
Secondary: 0.0.0.0, Src Interface: ge-0/0/1
855
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 855
Description | 856
Options | 856
Syntax
Description
Displays antivirus statistics for connections including clean and infected files, scan engine status, and
aggregated statistics from all FPCs and PICs. Statistics from both the nodes (with full chassis cluster
support for UTM) are displayed.
Starting in Junos OS Release 18.3R1, you can view the antivirus statistics for the primary logical system
or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can view the antivirus statistics for a specific tenant system or
for all the tenant systems.
Options
root-logical-system (Optional) Displays antivirus statistics for the primary logical system.
logical-system logical-system- (Optional) Displays antivirus statistics for a specific user logical
name system.
all (Optional) Displays antivirus statistics for all the user logical systems.
all-logical-systems-tenants (Optional) Displays antivirus statistics for all the logical systems and tenant
systems.
tenant tenant-name (Optional) Displays antivirus statistics for a specific tenant system.
all (Optional) Displays antispam statistics for all the tenant systems.
857
view
Sample Output
Fallback:
Log-and-Permit Block Permit
Engine not ready: 0 0 0
Out of resources: 0 0 0
Timeout: 0 0 0
Maximum content size: 0 0 0
Too many requests: 0 0 0
Others: 0 0 0
fpc-slot 5 pic-slot 0
UTM Anti Virus statistics:
MIME-whitelist passed: 0
URL-whitelist passed: 0
Scan Request:
Fallback:
Log-and-Permit Block Permit
Engine not ready: 0 0 0
Out of resources: 0 0 0
Timeout: 0 0 0
Maximum content size: 0 0 0
Too many requests: 0 0 0
Others: 0 0 0
Fallback:
Log-and-Permit Block Permit
Engine not ready: 0 0 0
Out of resources: 0 0 0
Timeout: 0 0 0
Maximum content size: 0 0 0
Too many requests: 0 0 0
Others: 0 0 0
0 0 0 0
Fallback:
Log-and-permit Block
Engine not ready: 0 0
Out of resources: 0 0
Timeout: 0 0
Maximum content size: 0 0
Too many requests: 0 0
Others: 0 0
Log-and-permit Block
Engine not ready: 0 0
Out of resources: 0 0
Timeout: 0 0
Maximum content size: 0 0
Too many requests: 0 0
Others: 0 0
Log-and-permit Block
Engine not ready: 0 0
Out of resources: 0 0
Timeout: 0 0
Maximum content size: 0 0
Too many requests: 0 0
Others: 0 0
Log-and-permit Block
Engine not ready: 0 0
Out of resources: 0 0
Timeout: 0 0
Maximum content size: 0 0
Too many requests: 0 0
Decompress error: 0 0
Others: 0 0
URL-whitelist passed: 0
Session abort: 0
Scan Request:
Log-and-permit Block
Engine not ready: 0 0
Out of resources: 0 0
Timeout: 0 0
Maximum content size: 0 0
Too many requests: 0 0
Decompress error: 0 0
Others: 0 0
Log-and-permit Block
Engine not ready: 0 0
Out of resources: 0 0
Timeout: 0 0
Maximum content size: 0 0
Too many requests: 0 0
Decompress error: 0 0
Others: 0 0
862
Release Information
Support for Flexible PIC Concentrator (FPC) and PIC status added in Junos OS Release 12.1X46-D10.
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc are deprecated
—rather than immediately removed—to provide backward compatibility.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 863
Description | 863
Syntax
show security utm anti-virus status <fpc <fpc-slot fpc-slot pic-slot pic-slot>>
Description
Display antivirus status for connections including clean and infected files, scan engine status, and
aggregated status from all FPCs and PICs. Status of both the nodes (with full chassis cluster support for
UTM) is displayed.
view
Output Fields
Output fields are listed in the approximate order in which they appear.
Sample Output
Forwarding-mode: hold
Onbox AV load flavor: running Light, configure Light
Scan engine type: avira-engine
Scan engine information: 8.3.60.28
Anti-virus signature version: 8.16.46.24
Refer the sample output for Avira scan engine. Support for Avira is added in 18.4R1 release.
Release Information
Support for UTM in chassis cluster added in Junos OS Release 11.4. Support for Flexible PIC
Concentrator (FPC) and PIC status added in Junos OS Release 12.1X46-D10.
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc to display PIC
and FPC statistics are not supported.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 866
Description | 866
Options | 867
Syntax
Description
Displays the content filtering statistics for connections including lists of blocked files and the reasons for
blocking. Statistics from both the nodes (with full chassis cluster support for UTM) are displayed.
Starting in Junos OS Release 18.3R1, you can view the content filtering statistics for the primary logical
system or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can view the content filtering statistics for a specific tenant
system or for all the tenant systems.
Starting in Junos OS Release 21.4R1, we have improved the UTM content filtering efficiency by adding
pre-detect technique to detect file types accurately. This techinque allows you to create rulesets and
867
rules to define content filter criteria. This enhnacemnet is a replacement of the existing file type
detection based on file name extensions and profile based filtering on application profiles. This
command is enhnaced to display the enhnaced content filtering statistics in a UTM policy.
Options
none Displays content filtering statistics for the primary logical system.
root-logical- (Optional) Displays content filtering statistics for the primary logical system.
system
utm-policy <utm-policy-name>
Starting in Junos OS Release 21.4R1, this option is added under the root-logical-system
option, to display content filtering statistics in a specified UTM policy within the root
logical system.
logical-system (Optional) Displays content filtering statistics for a specific user logical system.
logical-
system-name utm-policy <utm-policy-name>
Starting in Junos OS Release this option is added under the root-logical-system option,
to display content filtering statistics in a specified UTM policy within the specified
logical system.
all (Optional) Displays content filtering statistics for all the user logical systems.
all-logical-systems-tenants (Optional) Displays content filtering statistics for all logical systems and
tenant systems.
tenant tenant-name (Optional) Displays content filtering statistics for a specific tenant system.
all (Optional) Displays content filtering statistics for all the tenant systems.
utm-policy <utm- Starting in Junos OS Release 21.4R1, this option is added to display content
policy-name> filtering statistics in a specified UTM policy.
view
868
Sample Output
Any : 0
http : 1
ftp : 1
smtp : 0
imap : 0
pop3 : 0
Download : 0
869
Upload : 0
http : 0
ftp : 0
smtp : 0
imap : 0
pop3 : 0
no-action : 0
block : 0
close-client : 0
close-server : 0
close-client-server : 0
map : 0
mime : 0
msasf : 0
mscf : 0
msi : 0
mso : 0
ntdetect : 0
ole : 0
paquet : 0
pdf : 0
pe : 0
perl : 0
pif : 0
png : 0
rar : 0
reg : 0
rtf : 0
script : 0
sh : 0
sis : 0
spis : 0
sys : 0
tar : 0
vba : 0
wmf : 0
wsf : 0
xml : 0
xz : 0
zip : 0
ZIP files: 0
HTTP cookie: 0
Any : 0
http : 1
ftp : 1
smtp : 0
imap : 0
pop3 : 0
Download : 0
Upload : 0
http : 0
ftp : 0
smtp : 0
imap : 0
pop3 : 0
no-action : 0
block : 0
close-client : 0
close-server : 0
close-client-server : 0
unknown : 0
dos : 0
872
pe1 : 0
pe2 : 0
shockwave : 0
jpeg : 0
elf : 0
hlp : 0
java : 0
ole2 : 0
ole2-inverted : 0
sh : 0
perl1 : 0
perl2 : 0
itsf : 0
reg : 0
pdf : 0
wsf : 0
mime : 0
zip : 0
lnk : 0
vba : 0
xml : 0
ms-asf : 0
script-file : 0
script-file2 : 0
eicar : 0
ntdetect : 0
decrypt-hybris-plugin : 0
decrypt-hybris-plugin2 : 0
png : 0
wmf : 0
wmf2 : 0
emf : 0
map : 0
jmp : 0
ace : 0
lha : 0
paquet : 0
applesingle : 0
bzip : 0
diskdupe : 0
rtf : 0
gea : 0
gzip : 0
873
mso : 0
sis : 0
spis : 0
tar : 0
arj : 0
ha : 0
rar : 0
zip-pk : 0
mscf : 0
msi : 0
pif : 0
hybris-plugin : 0
dos-full-scan : 0
script-file-full-scan : 0
swf : 0
swf-cws : 0
sys : 0
eml : 0
7z : 0
xz : 0
Any : 0
http : 1
ftp : 1
smtp : 0
imap : 0
pop3 : 0
Download : 0
Upload : 0
http : 0
ftp : 0
smtp : 0
imap : 0
pop3 : 0
no-action : 0
block : 0
close-client : 0
close-server : 0
close-client-server : 0
unknown : 0
dos : 0
pe1 : 0
pe2 : 0
shockwave : 0
jpeg : 0
elf : 0
hlp : 0
java : 0
ole2 : 0
ole2-inverted : 0
sh : 0
875
perl1 : 0
perl2 : 0
itsf : 0
reg : 0
pdf : 0
wsf : 0
mime : 0
zip : 0
lnk : 0
vba : 0
xml : 0
ms-asf : 0
script-file : 0
script-file2 : 0
eicar : 0
ntdetect : 0
decrypt-hybris-plugin : 0
decrypt-hybris-plugin2 : 0
png : 0
wmf : 0
wmf2 : 0
emf : 0
map : 0
jmp : 0
ace : 0
lha : 0
paquet : 0
applesingle : 0
bzip : 0
diskdupe : 0
rtf : 0
gea : 0
gzip : 0
mso : 0
sis : 0
spis : 0
tar : 0
arj : 0
ha : 0
rar : 0
zip-pk : 0
mscf : 0
msi : 0
876
pif : 0
hybris-plugin : 0
dos-full-scan : 0
script-file-full-scan : 0
swf : 0
swf-cws : 0
sys : 0
eml : 0
7z : 0
xz : 0
Release Information
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc to display
physical interface cards (PICs) and Flexible PIC Concentrator (FPC) statistics are not supported.
Starting in Junos OS Release 21.4R1, This command is enhnaced to display the enhnaced content
filtering statistics in a UTM policy.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 878
Description | 878
Syntax
Description
Display general UTM session information including all allocated sessions and active sessions. Also,
display information from both nodes in a chassis cluster.
879
view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
command-name
Release Information
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc to display
physical interface cards (PICs) and Flexible PIC Concentrator (FPC) statistics are not supported.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 880
Description | 880
Syntax
Description
Display whether the UTM service is running or not and status of both the nodes (with full chassis cluster
support for UTM).
view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
command-name
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 882
Description | 882
Syntax
Description
Show the list of predefined base filters. A base filter is an object that contains a category-action pair for
all categories defined in the category file. A base filter is a structured object, and is defined with the help
of a filter name and an array of category-action pairs. Each Enhanced Web Filtering (EWF) category has
a default action in a base filter, which is attached to the user profile to act as a backup filter. If the
categories are not configured in the user profile, the base filter takes the action. Junos OS Release
17.4R1 also supports online upgradation of base filters.
view
Sample Output
Enhanced_Advocacy_Groups permit
Enhanced_Entertainment permit
Enhanced_Gambling block
Enhanced_Games block
Enhanced_Illegal_or_Questionable block
Enhanced_Job_Search permit
Enhanced_Shopping permit
Enhanced_Sports permit
Enhanced_Tasteless permit
Enhanced_Travel permit
Enhanced_Vehicles permit
Enhanced_Violence block
Enhanced_Weapons block
Enhanced_Drugs block
Enhanced_Militancy_and_Extremist block
Enhanced_Intolerance permit
Enhanced_Health permit
Enhanced_Website_Translation permit
Enhanced_Advertisements permit
Enhanced_User_Defined permit
Enhanced_Nudity block
Enhanced_Adult_Content block
Enhanced_Sex block
Enhanced_Financial_Data_and_Services permit
Enhanced_Cultural_Institutions permit
Enhanced_Media_File_Download permit
Enhanced_Military permit
Enhanced_Political_Organizations permit
Enhanced_General_Email permit
Enhanced_Proxy_Avoidance block
Enhanced_Search_Engines_and_Portals permit
Enhanced_Web_Hosting permit
Enhanced_Web_Chat permit
Enhanced_Hacking block
Enhanced_Alternative_Journals permit
Enhanced_Non_Traditional_Religions block
Enhanced_Traditional_Religions permit
Enhanced_Restaurants_and_Dining permit
Enhanced_Gay_or_Lesbian_or_Bisexual_Interest permit
Enhanced_Personals_and_Dating permit
Enhanced_Alcohol_and_Tobacco permit
Enhanced_Prescribed_Medications permit
884
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 884
Description | 884
Syntax
Description
Show the list of categories predefined by Websense. A category list is available on the device. This list
consists of categories, each containing a category code, a name, and a parent ID. Categories can also be
user-defined. Each category consists of a list of URLs or IP addresses. Categories are not updated
885
dynamically and are tied to the Junos OS release because they have to be compiled into the Junos OS
image. Any update in categories needs to be synchronized with the Junos OS release cycle.
NOTE: Starting with Junos OS Release 17.4R1, you can download and dynamically load new
Enhanced Web Filtering (EWF) categories. The downloading and dynamic loading of the new
EWF categories do not require a software upgrade.
view
Sample Output
Enhanced_Vehicles
Enhanced_Violence
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 886
Description | 887
Syntax
Description
Show the current running version of the downloaded category file or the status of the installed
predefined file.
view
Sample Output
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 888
Description | 888
Options | 889
Syntax
Description
Displays Web filtering statistics for connections including allowlist and blocklist hits and custom
category hits. The aggregated statistics from all FPCs and PICs and statistics from both the nodes (with
full chassis cluster support for UTM) are also displayed.
Starting in Junos OS Release 18.3R1, you can view the Web filtering statistics for the primary logical
system or for a specific user logical system or for all the user logical systems.
Starting in Junos OS Release 19.2R1, you can view the Web filtering statistics for a specific tenant
system or for all the tenant systems.
889
Options
none Displays Web filtering statistics for the primary logical system.
root-logical-system (Optional) Displays Web filtering statistics for the primary logical system.
logical-system logical-system- (Optional) Displays Web filtering statistics for a specific user logical
name system.
all (Optional) Displays Web filtering statistics for all the user logical systems.
all-logical-systems- (Optional) Displays Web filtering statistics for all the logical systems and
tenants tenant systems.
tenant tenant-name (Optional) Displays Web filtering statistics for a specific tenant system.
all (Optional) Displays Web filtering statistics for all the tenant systems.
view
Sample Output
fpc-slot 5 pic-slot 0
UTM web-filtering statistics:
Total requests: 0
white list hit: 0
Black list hit: 0
891
Queries to server: 0
Server reply permit: 0
Server reply block: 0
Server reply quarantine: 0
Server reply quarantine block: 0
Server reply quarantine permit: 0
Custom category permit: 0
Custom category block: 0
Custom category quarantine: 0
Custom category qurantine block: 0
Custom category quarantine permit: 0
Site reputation permit: 0
Site reputation block: 0
Site reputation quarantine: 0
Site reputation quarantine block: 0
Site reputation quarantine permit: 0
Site reputation by Category 0
Site reputation by Global 0
Cache hit permit: 0
Cache hit block: 0
Cache hit quarantine: 0
Cache hit quarantine block: 0
Cache hit quarantine permit: 0
Safe-search redirect: 0
SNI pre-check queries to server: 1
SNI pre-check server responses: 1
Web-filtering sessions in total: 128000
Web-filtering sessions in use: 0
Fallback: log-and-permit block
Default 0 0
Timeout 0 0
Connectivity 0 0
Too-many-requests 0 0
Queries to server: 0
Server reply permit: 0
Server reply block: 0
Server reply quarantine: 0
Server reply quarantine block: 0
Server reply quarantine permit: 0
Custom category permit: 0
Custom category block: 0
Custom category quarantine: 0
Custom category qurantine block: 0
Custom category quarantine permit: 0
Site reputation permit: 0
Site reputation block: 0
Site reputation quarantine: 0
Site reputation quarantine block: 0
Site reputation quarantine permit: 0
Site reputation by Category 0
Site reputation by Global 0
Cache hit permit: 0
Cache hit block: 0
Cache hit quarantine: 0
Cache hit quarantine block: 0
Cache hit quarantine permit: 0
Safe-search redirect: 0
SNI pre-check queries to server: 1
SNI pre-check server responses: 1
Web-filtering sessions in total: 128000
Web-filtering sessions in use: 0
Fallback: log-and-permit block
Default 0 0
Timeout 0 0
Connectivity 0 0
Too-many-requests 0 0
Default 0 0
Timeout 0 0
Connectivity 0 0
Too-many-requests 0 0
Connectivity 0 0
Too-many-requests 0 0
Release Information
Support for Flexible PIC Concentrator (FPC) and PIC statistics added in Junos OS Release 12.1X46-D10.
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc are deprecated
—rather than immediately removed—to provide backward compatibility.
895
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 895
Description | 895
Syntax
show security utm web-filtering status <fpc <fpc-slot fpc-slot pic-slot pic-slot>>
Description
Display whether the Web filtering server connection is up or not. The aggregated status from all FPCs
and PICs and status of both the nodes (with full chassis cluster support for UTM) are also displayed.
896
view
Output Fields
Output fields are listed in the approximate order in which they appear.
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Table 12 on page 896 lists the output fields for the show security utm web-filtering status command.
• UP
• DOWN
• Enabled: When the performance-mode is not configured at the [edit security utm default-
configuration web-filtering] hierarchy level.
• Disabled: When the performance-mode is configured at the [edit security utm default-
configuration web-filtering] hierarchy level.
Sample Output
{primary:node0}
user@host> show security utm web-filtering status
node0:
--------------------------------------------------------------------------
UTM web-filtering status:
Server status: Juniper Enhanced using Websense server UP
node1:
--------------------------------------------------------------------------
898
Starting with 12.3X48-D10 and Junos OS Release 17.3R1, on SRX210, SRX220, SRX240, SRX300,
SRX320, SRX340, SRX345, and SRX550M devices, the UTM process has been moved to the Packet
Forwarding Engine (PFE). Starting with 12.1X46-D10 and Junos OS Release 17.3R1, on SRX1400,
SRX1500, SRX3400, SRX3600, SRX4100, SRX4200, SRX4600, SRX5400, and SRX5600 devices, the
UTM process has been moved to the PFE. Hence, the status shows down on the secondary node of the
cluster.
Release Information
Support for UTM in chassis cluster added in Junos OS Release 11.4. Support for Flexible PIC
Concentrator (FPC) and PIC status added in Junos OS Release 12.1X46-D10.
Starting in Junos OS Release 18.2R1, on SRX5000 Series devices, the options pic and fpc to display PIC
and FPC statistics are not supported.
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 899
Description | 899
Options | 899
Syntax
Description
Use this command to check if the IP (Internet Protocol) is a spam source or it is a configuration problem
when the device doesn't block the spam. The anti-spam feature requires internet connectivity with the
Spam Block List (SBL) server. Domain Name Service (DNS) must be available to access the SBL server.
Options
view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Table 13 on page 900 lists the output fields for the test security utm anti-spam command. Output fields
are listed in the approximate order in which they appear.
900
SBL Server Spam block list (SBL) contains the list of the disallowed IPs.
DNS Server The firewall performs SBL lookups through the Domain Name Service (DNS) protocol.
Sample Output
The following examples test IP 1.0.0.1 in SBL server msgsecurity.juniper.net through DNS server
172.29.151.60:
SBL Server:
msgsecurity.juniper.net
DNS Server:
172.29.151.60
command-name
The following examples test IP 1.0.0.2 in SBL server msgsecurity.juniper.net through DNS server
172.29.151.60:
SBL Server:
msgsecurity.juniper.net
DNS Server:
172.29.151.60
command-name
The following examples test IP 1.0.0.2 in SBL server msgsecurity.juniper.net through DNS server
172.29.151.60:
SBL Server:
msgsecurity.juniper.net
DNS Server:
172.29.151.60
command-name
The following examples test IP 1.0.0.3 in SBL server msgsecurity.juniper.net through DNS server
172.29.151.66:
SBL Server:
msgsecurity.juniper.net
902
DNS Server:
172.29.151.66
command-name
The following examples test IP 1.0.0.4 in SBL server msgsecurity.juniper.net through DNS server
172.29.151.66:
SBL Server:
msgsecurity.juniper.net
DNS Server:
172.29.151.66
command-name
The following examples test IP 1.0.0.4 in SBL server msgsecurity.juniper.net through DNS server
172.29.151.66:
SBL Server:
msgsecurity.juniper.net
DNS Server:
172.29.151.66
903
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 903
Description | 904
Options | 904
Syntax
Description
Use this test command to send the test-string to web-filtering server (example: Websense ThreatSeeker
Cloud) to test the category and reputation of the test-string.
Options
<test-url> Enhanced-web-filtering threat-check test URL. The maximum length of test URL is 249.
view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Table 14 on page 904 lists the output fields for the test security utm enhanced-web-filtering url-check
command. Output fields are listed in the approximate order in which they appear.
Enhance web-filtering server Enhanced Web Filtering (EWF) supports HTTP methods.
905
Sample Output
The following example sends URL www.google.com to EWF rp.cloud.threatseeker.com check the
category and reputation:
command-name
The following example sends URL www.aaa.com to EWF rp.cloud.threatseeker.com check the category
and reputation:
command-name
The following example sends URL www.bbb.com to EWF rp.cloud.threatseeker.com check the category
and reputation:
command-name
The following example sends URL www.bbb.com to EWF rp.cloud.threatseeker.com check the category
and reputation:
command-name
The following example sends URL www.google.com to EWF rp.cloud.threatseeker.com check the
category and reputation:
Release Information
RELATED DOCUMENTATION
IN THIS SECTION
Syntax | 907
Description | 908
Options | 908
Syntax
Description
Use this command to check if the test-string matches the specific profile in the Web filtering server.
Options
test-url Enhanced Web filtering threat-check test URL. The maximum length of test URL is 249.
view
Sample Output
The following example sends profile sportclass and test url www.google.com to the Web filtering server
to check whether the test string matches the specific profile:
command-name
The following example sends profile dangerclass and test url www.gun-clubs.com to the Web filtering
server to check whether the test string matches the specific profile:
command-name
The following example sends profile dangerclass and test url www.gun-clubs.com to the Web filtering
server to check whether the test string matches the specific profile:
command-name
The following example sends profile dangerclass and test url www.gun-clubs.com to the Web filtering
server to check whether the test string matches the specific profile:
Test result: Web filtering engine is not ready, please try again later
command-name
The following example sends profile dangerclass and test url www.gun-clubs.com to the Web filtering
server to check whether the test string matches the specific profile:
command-name
The following example sends profile dangerclass and test url www.gun-clubs.com to the Web filtering
server to check whether the test string matches the specific profile:
command-name
The following example sends profile junos-wf-enhanced-default and test www.google.com to the Web
filtering server to check whether the test string matches the specific profile:
Release Information
RELATED DOCUMENTATION