RFC1446 - Security Protocols for version 2 of the Simple Net

时间:2005-02-14 来源: 作者: 点击:
Network Working Group J. Galvin Request for Comments: 1446 Trusted Information Systems K. McCloghrie Hughes LAN Systems April 1993 Security Protocols for version 2 of the Simple Network Management Protocol (SNMPv2) Status of this Memo This RFCspecife
  Network Working Group J. Galvin
Request for Comments: 1446 Trusted Information Systems
K. McCloghrie
Hughes LAN Systems
April 1993

Security Protocols
for version 2 of the
Simple Network Management Protocol (SNMPv2)

Status of this Memo

This RFCspecifes an IAB standards track protocol for the
Internet community, and requests discussion and suggestions
for improvements. Please refer to the current edition of the
"IAB Official Protocol Standards" for the standardization
state and status of this protocol. Distribution of this memo
is unlimited.

Table of Contents

1 Introduction .......................................... 2
1.1 A Note on Terminology ............................... 3
1.2 Threats ............................................. 4
1.3 Goals and Constraints ............................... 5
1.4 Security Services ................................... 6
1.5 Mechanisms .......................................... 7
1.5.1 Message Digest Algorithm .......................... 8
1.5.2 Symmetric Encryption Algorithm .................... 9
2 SNMPv2 Party .......................................... 11
3 Digest Authentication Protocol ........................ 14
3.1 Generating a Message ................................ 16
3.2 Receiving a Message ................................. 18
4 Symmetric Privacy Protocol ............................ 21
4.1 Generating a Message ................................ 21
4.2 Receiving a Message ................................. 22
5 Clock and Secret Distribution ......................... 24
5.1 Initial Configuration ............................... 25
5.2 Clock Distribution .................................. 28
5.3 Clock Synchronization ............................... 29
5.4 Secret Distribution ................................. 31
5.5 Crash Recovery ...................................... 34
6 Security Considerations ............................... 37
6.1 Recommended Practices ............................... 37
6.2 Conformance ......................................... 39
6.3 Protocol Correctness ................................ 42

RFC1446 Security Protocols for SNMPv2 April 1993

6.3.1 Clock Monotonicity Mechanism ...................... 43
6.3.2 Data Integrity Mechanism .......................... 43
6.3.3 Data Origin Authentication Mechanism .............. 44
6.3.4 Restricted Administration Mechanism ............... 44
6.3.5 Message Timeliness Mechanism ...................... 45
6.3.6 Selective Clock Acceleration Mechanism ............ 46
6.3.7 Confidentiality Mechanism ......................... 47
7 Acknowledgements ...................................... 48
8 References ............................................ 49
9 Authors' Addresses .................................... 51

RFC1446 Security Protocols for SNMPv2 April 1993

1. Introduction

A network management system contains: several (potentially
many) nodes, each with a processing entity, termed an agent,
which has access to management instrumentation; at least one
management station; and, a management protocol, used to convey
management information between the agents and management
stations. Operations of the protocol are carried out under an
administrative framework which defines both authentication and
authorization policies.

Network management stations execute management applications
which monitor and control network elements. Network elements
are devices such as hosts, routers, terminal servers, etc.,
which are monitored and controlled through access to their
management information.

In the Administrative Model for SNMPv2 document [1], each
SNMPv2 party is, by definition, associated with a single
authentication protocol and a single privacy protocol. It is
the purpose of this document, Security Protocols for SNMPv2,
to define one such authentication and one such privacy
protocol.

The authentication protocol provides a mechanism by which
SNMPv2 management communications transmitted by the party may
be reliably identified as having originated from that party.
The authentication protocol defined in this memo also reliably
determines that the message received is the message that was
sent.

The privacy protocol provides a mechanism by which SNMPv2
management communications transmitted to said party are
protected from disclosure. The privacy protocol in this memo
specifies that only authenticated messages may be protected
from disclosure.

These protocols are secure alternatives to the so-called
"trivial" protocol defined in [2].

USE OF THE TRIVIAL PROTOCOL ALONE DOES NOT CONSTITUTE
SECURE NETWORK MANAGEMENT. THEREFORE, A NETWORK
MANAGEMENT SYSTEM THAT IMPLEMENTS ONLY THE TRIVIAL
PROTOCOL IS NOT CONFORMANT TO THIS SPECIFICATION.

RFC1446 Security Protocols for SNMPv2 April 1993

The Digest Authentication Protocol is described in Section 3.
It provides a data integrity service by transmitting a message
digest - computed by the originator and verified by the
recipient - with each SNMPv2 message. The data origin
authentication service is provided by prefixing the message
with a secret value known only to the originator and
recipient, prior to computing the digest. Thus, data
integrity is supported explicitly while data origin
authentication is supported implicitly in the verification of
the digest.

The Symmetric Privacy Protocol is described in Section 4. It
protects messages from disclosure by encrypting their contents
according to a secret cryptographic key known only to the
originator and recipient. The additional functionality
afforded by this protocol is assumed to justify its additional
computational cost.

The Digest Authentication Protocol depends on the existence of
loosely synchronized clocks between the originator and
recipient of a message. The protocol specification makes no
assumptions about the strategy by which such clocks are
synchronized. Section 5.3 presents one strategy that is
particularly suited to the demands of SNMP network management.

Both protocols described here require the sharing of secret
information between the originator of a message and its
recipient. The protocol specifications assume the existence
of the necessary secrets. The selection of such secrets and
their secure distribution to appropriate parties may be
accomplished by a variety of strategies. Section 5.4 presents
one such strategy that is particularly suited to the demands
of SNMP network management.

1.1. A Note on Terminology

For the purpose of exposition, the original Internet-standard
Network Management Framework, as described in RFCs 1155, 1157,
and 1212, is termed the SNMP version 1 framework (SNMPv1).
The current framework is termed the SNMP version 2 framework
(SNMPv2).

RFC1446 Security Protocols for SNMPv2 April 1993

1.2. Threats

Several of the classical threats to network protocols are
applicable to the network management problem and therefore
would be applicable to any SNMPv2 security protocol. Other
threats are not applicable to the network management problem.
This section discusses principal threats, secondary threats,
and threats which are of lesser importance.

The principal threats against which any SNMPv2 security
protocol should provide protection are:

Modification of Information
The SNMPv2 protocol provides the means for management
stations to interrogate and to manipulate the value of
objects in a managed agent. The modification threat is
the danger that some party may alter in-transit messages
generated by an authorized party in such a way as to
effect unauthorized management operations, including
falsifying the value of an object.

Masquerade
The SNMPv2 administrative model includes an access
control model. Access control necessarily depends on
knowledge of the origin of a message. The masquerade
threat is the danger that management operations not
authorized for some party may be attempted by that party
by assuming the identity of another party that has the
appropriate authorizations.

Two secondary threats are also identified. The security
protocols defined in this memo do provide protection against:

Message Stream Modification
The SNMPv2 protocol is based upon a connectionless
transport service which may operate over any subnetwork
service. The re-ordering, delay or replay of messages
can and does occur through the natural operation of many
such subnetwork services. The message stream
modification threat is the danger that messages may be
maliciously re-ordered, delayed or replayed to an extent
which is greater than can occur through the natural
operation of a subnetwork service, in order to effect
unauthorized management operations.

RFC1446 Security Protocols for SNMPv2 April 1993

Disclosure
The disclosure threat is the danger of eavesdropping on
the exchanges between managed agents and a management
station. Protecting against this threat is mandatory
when the SNMPv2 is used to create new SNMPv2 parties [1]
on which subsequent secure operation might be based.
Protecting against the disclosure threat may also be
required as a matter of local policy.

There are at least two threats that a SNMPv2 security protocol
need not protect against. The security protocols defined in
this memo do not provide protection against:

Denial of Service
A SNMPv2 security protocol need not attempt to address
the broad range of attacks by which service to authorized
parties is denied. Indeed, such denial-of-service
attacks are in many cases indistinguishable from the type
of network failures with which any viable network
management protocol must cope as a matter of course.

Traffic Analysis
In addition, a SNMPv2 security protocol need not attempt
to address traffic analysis attacks. Indeed, many
traffic patterns are predictable - agents may be managed
on a regular basis by a relatively small number of
management stations - and therefore there is no
significant advantage afforded by protecting against
traffic analysis.

1.3. Goals and Constraints

Based on the foregoing account of threats in the SNMP network
management environment, the goals of a SNMPv2 security
protocol are enumerated below.

(1) The protocol should provide for verification that each
received SNMPv2 message has not been modified during its
transmission through the network in such a way that an
unauthorized management operation might result.

(2) The protocol should provide for verification of the
identity of the originator of each received SNMPv2
message.

RFC1446 Security Protocols for SNMPv2 April 1993

(3) The protocol should provide that the apparent time of
generation for each received SNMPv2 message is recent.

(4) The protocol should provide, when necessary, that the
contents of each received SNMPv2 message are protected
from disclosure.

In addition to the principal goal of supporting secure network
management, the design of any SNMPv2 security protocol is also
influenced by the following constraints:

(1) When the requirements of effective management in times of
network stress are inconsistent with those of security,
the former are preferred.

(2) Neither the security protocol nor its underlying security
mechanisms should depend upon the ready availability of
other network services (e.g., Network Time Protocol (NTP)
or secret/key management protocols).

(3) A security mechanism should entail no changes to the
basic SNMP network management philosophy.

1.4. Security Services

The security services necessary to support the goals of a
SNMPv2 security protocol are as follows.

Data Integrity
is the provision of the property that data has not been
altered or destroyed in an unauthorized manner, nor have
data sequences been altered to an extent greater than can
occur non-maliciously.

Data Origin Authentication
is the provision of the property that the claimed origin
of received data is corroborated.

Data Confidentiality
is the provision of the property that information is not
made available or disclosed to unauthorized individuals,
entities, or processes.

RFC1446 Security Protocols for SNMPv2 April 1993

The protocols specified in this memo require both data
integrity and data origin authentication to be used at all
times. For these protocols, it is not possible to realize
data integrity without data origin authentication, nor is it
possible to realize data origin authentication without data
integrity.

Further, there is no provision for data confidentiality
without both data integrity and data origin authentication.

1.5. Mechanisms

The security protocols defined in this memo employ several
types of mechanisms in order to realize the goals and security
services described above:

o In support of data integrity, a message digest algorithm
is required. A digest is calculated over an appropriate
portion of a SNMPv2 message and included as part of the
message sent to the recipient.

o In support of data origin authentication and data
integrity, the portion of a SNMPv2 message that is
digested is first prefixed with a secret value shared by
the originator of that message and its intended
recipient.

o To protect against the threat of message delay or replay,
(to an extent greater than can occur through normal
operation), a timestamp value is included in each message
generated. A recipient evaluates the timestamp to
determine if the message is recent. This protection
against the threat of message delay or replay does not
imply nor provide any protection against unauthorized
deletion or suppression of messages. Other mechanisms
defined independently of the security protocol can also
be used to detect message replay (e.g., the request-id
[2]), or for set operations, the re-ordering, replay,
deletion, or suppression of messages (e.g., the MIB
variable snmpSetSerialNo [14]).

o In support of data confidentiality, a symmetric
encryption algorithm is required. An appropriate portion
of the message is encrypted prior to being transmitted to

RFC1446 Security Protocols for SNMPv2 April 1993

its recipient.

The security protocols in this memo are defined independently
of the particular choice of a message digest and encryption
algorithm - owing principally to the lack of a suitable metric
by which to evaluate the security of particular algorithm
choices. However, in the interests of completeness and in
order to guarantee interoperability, Sections 1.5.1 and 1.5.2
specify particular choices, which are considered acceptably
secure as of this writing. In the future, this memo may be
updated by the publication of a memo specifying substitute or
alternate choices of algorithms, i.e., a replacement for or
addition to the sections below.

1.5.1. Message Digest Algorithm

In support of data integrity, the use of the MD5 [3] message
digest algorithm is chosen. A 128-bit digest is calculated
over the designated portion of a SNMPv2 message and included
as part of the message sent to the recipient.

An appendix of [3] contains a C Programming Language
implementation of the algorithm. This code was written with
portability being the principal objective. Implementors may
wish to optimize the implementation with respect to the
characteristics of their hardware and software platforms.

The use of this algorithm in conjunction with the Digest
Authentication Protocol (see Section 3) is identified by the
ASN.1 object identifier value v2md5AuthProtocol, defined in
[4]. (Note that this protocol is a modified version of the
md5AuthProtocol protocol defined in RFC1352.)

For any SNMPv2 party for which the authentication protocol is
v2md5AuthProtocol, the size of its private authentication key
is 16 octets.

Within an authenticated management communication generated by
such a party, the size of the authDigest component of that
communication (see Section 3) is 16 octets.

RFC1446 Security Protocols for SNMPv2 April 1993

1.5.2. Symmetric Encryption Algorithm

In support of data confidentiality, the use of the Data
Encryption Standard (DES) in the Cipher Block Chaining mode of
operation is chosen. The designated portion of a SNMPv2
message is encrypted and included as part of the message sent
to the recipient.

Two organizations have published specifications defining the
DES: the National Institute of Standards and Technology (NIST)
[5] and the American National Standards Institute [6]. There
is a companion Modes of Operation specification for each
definition (see [7] and [8], respectively).

The NIST has published three additional documents that
implementors may find useful.

o There is a document with guidelines for implementing and
using the DES, including functional specifications for
the DES and its modes of operation [9].

o There is a specification of a validation test suite for
the DES [10]. The suite is designed to test all aspects
of the DES and is useful for pinpointing specific
problems.

o There is a specification of a maintenance test for the
DES [11]. The test utilizes a minimal amount of data and
processing to test all components of the DES. It
provides a simple yes-or-no indication of correct
operation and is useful to run as part of an
initialization step, e.g., when a computer reboots.

The use of this algorithm in conjunction with the Symmetric
Privacy Protocol (see Section 4) is identified by the ASN.1
object identifier value desPrivProtocol, defined in [4].

For any SNMPv2 party for which the privacy protocol is
desPrivProtocol, the size of the private privacy key is 16
octets, of which the first 8 octets are a DES key and the
second 8 octets are a DES Initialization Vector. The 64-bit
DES key in the first 8 octets of the private key is a 56 bit
quantity used directly by the algorithm plus 8 parity bits -
arranged so that one parity bit is the least significant bit
of each octet. The setting of the parity bits is ignored.

RFC1446 Security Protocols for SNMPv2 April 1993

The length of the octet sequence to be encrypted by the DES
must be an integral multiple of 8. When encrypting, the data
should be padded at the end as necessary; the actual pad value
is insignificant.

If the length of the octet sequence to be decrypted is not an
integral multiple of 8 octets, the processing of the octet
sequence should be halted and an appropriate exception noted.
Upon decrypting, the padding should be ignored.

RFC1446 Security Protocols for SNMPv2 April 1993

2. SNMPv2 Party

Recall from [1] that a SNMPv2 party is a conceptual, virtual
execution context whose operation is restricted (for security
or other purposes) to an administratively defined subset of
all possible operations of a particular SNMPv2 entity. A
SNMPv2 entity is an actual process which performs network
management operations by generating and/or responding to
SNMPv2 protocol messages in the manner specified in [12].
Architecturally, every SNMPv2 entity maintains a local
database that represents all SNMPv2 parties known to it.

RFC1446 Security Protocols for SNMPv2 April 1993

A SNMPv2 party may be represented by an ASN.1 value with the
following syntax:

SnmpParty ::= SEQUENCE {
partyIdentity
OBJECT IDENTIFIER,
partyTDomain
OBJECT IDENTIFIER,
partyTAddress
OCTET STRING,
partyMaxMessageSize
INTEGER,
partyAuthProtocol
OBJECT IDENTIFIER,
partyAuthClock
INTEGER,
partyAuthPrivate
OCTET STRING,
partyAuthPublic
OCTET STRING,
partyAuthLifetime
INTEGER,
partyPrivProtocol
OBJECT IDENTIFIER,
partyPrivPrivate
OCTET STRING,
partyPrivPublic
OCTET STRING
}

For each SnmpParty value that represents a SNMPv2 party, the
generic significance of each of its components is defined in
[1]. For each SNMPv2 party that supports the generation of
messages using the Digest Authentication Protocol, additional,
special significance is attributed to certain components of
that party's representation:

o Its partyAuthProtocol component is called the
authentication protocol and identifies a combination of
the Digest Authentication Protocol with a particular
digest algorithm (such as that defined in Section 1.5.1).
This combined mechanism is used to authenticate the
origin and integrity of all messages generated by the
party.

RFC1446 Security Protocols for SNMPv2 April 1993

o Its partyAuthClock component is called the authentication
clock and represents a notion of the current time that is
specific to the party.

o Its partyAuthPrivate component is called the private
authentication key and represents any secret value needed
to support the Digest Authentication Protocol and
associated digest algorithm.

o Its partyAuthPublic component is called the public
authentication key and represents any public value that
may be needed to support the authentication protocol.
This component is not significant except as suggested in
Section 5.4.

o Its partyAuthLifetime component is called the lifetime
and represents an administrative upper bound on
acceptable delivery delay for protocol messages generated
by the party.

For each SNMPv2 party that supports the receipt of messages
via the Symmetric Privacy Protocol, additional, special
significance is attributed to certain components of that
party's representation:

o Its partyPrivProtocol component is called the privacy
protocol and identifies a combination of the Symmetric
Privacy Protocol with a particular encryption algorithm
(such as that defined in Section 1.5.2). This combined
mechanism is used to protect from disclosure all protocol
messages received by the party.

o Its partyPrivPrivate component is called the private
privacy key and represents any secret value needed to
support the Symmetric Privacy Protocol and associated
encryption algorithm.

o Its partyPrivPublic component is called the public
privacy key and represents any public value that may be
needed to support the privacy protocol. This component
is not significant except as suggested in Section 5.4.

RFC1446 Security Protocols for SNMPv2 April 1993

3. Digest Authentication Protocol

This section describes the Digest Authentication Protocol. It
provides both for verifying the integrity of a received
message (i.e., the message received is the message sent) and
for verifying the origin of a message (i.e., the reliable
identification of the originator). The integrity of the
message is protected by computing a digest over an appropriate
portion of a message. The digest is computed by the
originator of the message, transmitted with the message, and
verified by the recipient of the message.

A secret value known only to the originator and recipient of
the message is prefixed to the message prior to the digest
computation. Thus, the origin of the message is known
implicitly with the verification of the digest.

A requirement on parties using this Digest Authentication
Protocol is that they shall not originate messages for
transmission to any destination party which does not also use
this Digest Authentication Protocol. This restriction
excludes undesirable side effects of communication between a
party which uses these security protocols and a party which
does not.

Recall from [1] that a SNMPv2 management communication is
represented by an ASN.1 value with the following syntax:

SnmpMgmtCom ::= [2] IMPLICIT SEQUENCE {
dstParty
OBJECT IDENTIFIER,
srcParty
OBJECT IDENTIFIER,
context
OBJECT IDENTIFIER,
pdu
PDUs
}

For each SnmpMgmtCom value that represents a SNMPv2 management
communication, the following statements are true:

o Its dstParty component is called the destination and
identifies the SNMPv2 party to which the communication is
directed.

RFC1446 Security Protocols for SNMPv2 April 1993

o Its srcParty component is called the source and
identifies the SNMPv2 party from which the communication
is originated.

o Its context component identifies the SNMPv2 context
containing the management information referenced by the
communication.

o Its pdu component has the form and significance
attributed to it in [12].

Recall from [1] that a SNMPv2 authenticated management
communication is represented by an ASN.1 value with the
following syntax:

SnmpAuthMsg ::= [1] IMPLICIT SEQUENCE {
authInfo
ANY, - defined by authentication protocol
authData
SnmpMgmtCom
}

For each SnmpAuthMsg value that represents a SNMPv2
authenticated management communication, the following
statements are true:

o Its authInfo component is called the authentication
information and represents information required in
support of the authentication protocol used by both the
SNMPv2 party originating the message, and the SNMPv2
party receiving the message. The detailed significance
of the authentication information is specific to the
authentication protocol in use; it has no effect on the
application semantics of the communication other than its
use by the authentication protocol in determining whether
the communication is authentic or not.

o Its authData component is called the authentication data

RFC1446 Security Protocols for SNMPv2 April 1993

and represents a SNMPv2 management communication.

In support of the Digest Authentication Protocol, an authInfo
component is of type AuthInformation:

AuthInformation ::= [2] IMPLICIT SEQUENCE {
authDigest
OCTET STRING,
authDstTimestamp
UInteger32,
authSrcTimestamp
UInteger32
}

For each AuthInformation value that represents authentication
information, the following statements are true:

o Its authDigest component is called the authentication
digest and represents the digest computed over an
appropriate portion of the message, where the message is
temporarily prefixed with a secret value for the purposes
of computing the digest.

o Its authSrcTimestamp component is called the
authentication timestamp and represents the time of the
generation of the message according to the partyAuthClock
of the SNMPv2 party that originated it. Note that the
granularity of the authentication timestamp is 1 second.

o Its authDstTimestamp component is called the
authentication timestamp and represents the time of the
generation of the message according to the partyAuthClock
of the SNMPv2 party that is to receive it. Note that the
granularity of the authentication timestamp is 1 second.

3.1. Generating a Message

This section describes the behavior of a SNMPv2 entity when it
acts as a SNMPv2 party for which the authentication protocol
is administratively specified as the Digest Authentication
Protocol. Insofar as the behavior of a SNMPv2 entity when
transmitting protocol messages is defined generically in [1],
only those aspects of that behavior that are specific to the
Digest Authentication Protocol are described below. In

RFC1446 Security Protocols for SNMPv2 April 1993

particular, this section describes the encapsulation of a
SNMPv2 management communication into a SNMPv2 authenticated
management communication.

According to Section 3.1 of [1], a SnmpAuthMsg value is
constructed during Step 3 of generic processing. In
particular, it states the authInfo component is constructed
according to the authentication protocol identified for the
SNMPv2 party originating the message. When the relevant
authentication protocol is the Digest Authentication Protocol,
the procedure performed by a SNMPv2 entity whenever a
management communication is to be transmitted by a SNMPv2
party is as follows.

(1) The local database is consulted to determine the
authentication clock and private authentication key
(extracted, for example, according to the conventions
defined in Section 1.5.1) of the SNMPv2 party originating
the message. The local database is also consulted to
determine the authentication clock of the receiving
SNMPv2 party.

(2) The authSrcTimestamp component is set to the retrieved
authentication clock value of the message's source. The
authDstTimestamp component is set to the retrieved
authentication clock value of the message's intended
recipient.

(3) The authentication digest is temporarily set to the
private authentication key of the SNMPv2 party
originating the message. The SnmpAuthMsg value is
serialized according to the conventions of [13] and [12].
A digest is computed over the octet sequence representing
that serialized value using, for example, the algorithm
specified in Section 1.5.1. The authDigest component is
set to the computed digest value.

As set forth in [1], the SnmpAuthMsg value is then
encapsulated according to the appropriate privacy protocol
into a SnmpPrivMsg value. This latter value is then
serialized and transmitted to the receiving SNMPv2 party.

RFC1446 Security Protocols for SNMPv2 April 1993

3.2. Receiving a Message

This section describes the behavior of a SNMPv2 entity upon
receipt of a protocol message from a SNMPv2 party for which
the authentication protocol is administratively specified as
the Digest Authentication Protocol. Insofar as the behavior
of a SNMPv2 entity when receiving protocol messages is defined
generically in [1], only those aspects of that behavior that
are specific to the Digest Authentication Protocol are
described below.

According to Section 3.2 of [1], a SnmpAuthMsg value is
evaluated during Step 9 of generic processing. In particular,
it states the SnmpAuthMsg value is evaluated according to the
authentication protocol identified for the SNMPv2 party that
originated the message. When the relevant authentication
protocol is the Digest Authentication Protocol, the procedure
performed by a SNMPv2 entity whenever a management
communication is received by a SNMPv2 party is as follows.

(1) If the ASN.1 type of the authInfo component is not
AuthInformation, the message is evaluated as unauthentic,
and the snmpStatsBadAuths counter [14] is incremented.
Otherwise, the authSrcTimestamp, authDstTimestamp, and
authDigest components are extracted from the SnmpAuthMsg
value.

(2) The local database is consulted to determine the
authentication clock, private authentication key
(extracted, for example, according to the conventions
defined in Section 1.5.1), and lifetime of the SNMPv2
party that originated the message.

(3) If the authSrcTimestamp component plus the lifetime is
less than the authentication clock, the message is
evaluated as unauthentic, and the snmpStatsNotInLifetimes
counter [14] is incremented.

(4) The authDigest component is extracted and temporarily
recorded.

(5) A new SnmpAuthMsg value is constructed such that its
authDigest component is set to the private authentication
key and its other components are set to the value of the
corresponding components in the received SnmpAuthMsg

RFC1446 Security Protocols for SNMPv2 April 1993

value. This new SnmpAuthMsg value is serialized
according to the conventions of [13] and [12]. A digest
is computed over the octet sequence representing that
serialized value using, for example, the algorithm
specified in Section 1.5.1.

NOTE
Because serialization rules are unambiguous but may
not be unique, great care must be taken in
reconstructing the serialized value prior to
computing the digest. Implementations may find it
useful to keep a copy of the original serialized
value and then simply modify the octets which
directly correspond to the placement of the
authDigest component, rather than re-applying the
serialization algorithm to the new SnmpAuthMsg
value.

(6) If the computed digest value is not equal to the digest
value temporarily recorded in step 4 above, the message
is evaluated as unauthentic, and the
snmpStatsWrongDigestValues counter [14] is incremented.

(7) The message is evaluated as authentic.

(8) The local database is consulted for access privileges
permitted by the local access policy to the originating
SNMPv2 party with respect to the receiving SNMPv2 party.
If any level of access is permitted, then:

the authentication clock value locally recorded for the
originating SNMPv2 party is advanced to the
authSrcTimestamp value if this latter exceeds the
recorded value; and,

the authentication clock value locally recorded for the
receiving SNMPv2 party is advanced to the
authDstTimestamp value if this latter exceeds the
recorded value.

(Note that this step is conceptually independent from
Steps 15-17 of Section 3.2 in [1]).

If the SnmpAuthMsg value is evaluated as unauthentic, an
authentication failure is noted and the received message is

RFC1446 Security Protocols for SNMPv2 April 1993

discarded without further processing. Otherwise, processing
of the received message continues as specified in [1].

RFC1446 Security Protocols for SNMPv2 April 1993

4. Symmetric Privacy Protocol

This section describes the Symmetric Privacy Protocol. It
provides for protection from disclosure of a received message.
An appropriate portion of the message is encrypted according
to a secret key known only to the originator and recipient of
the message.

This protocol assumes the underlying mechanism is a symmetric
encryption algorithm. In addition, the message to be
encrypted must be protected according to the conventions of
the Digest Authentication Protocol.

Recall from [1] that a SNMPv2 private management communication
is represented by an ASN.1 value with the following syntax:

SnmpPrivMsg ::= [1] IMPLICIT SEQUENCE {
privDst
OBJECT IDENTIFIER,
privData
[1] IMPLICIT OCTET STRING
}

For each SnmpPrivMsg value that represents a SNMPv2 private
management communication, the following statements are true:

o Its privDst component is called the privacy destination
and identifies the SNMPv2 party to which the
communication is directed.

o Its privData component is called the privacy data and
represents the (possibly encrypted) serialization
(according to the conventions of [13] and [12]) of a
SNMPv2 authenticated management communication.

4.1. Generating a Message

This section describes the behavior of a SNMPv2 entity when it
communicates with a SNMPv2 party for which the privacy
protocol is administratively specified as the Symmetric
Privacy Protocol. Insofar as the behavior of a SNMPv2 entity
when transmitting a protocol message is defined generically in
[1], only those aspects of that behavior that are specific to
the Symmetric Privacy Protocol are described below. In

RFC1446 Security Protocols for SNMPv2 April 1993

particular, this section describes the encapsulation of a
SNMPv2 authenticated management communication into a SNMPv2
private management communication.

According to Section 3.1 of [1], a SnmpPrivMsg value is
constructed during Step 5 of generic processing. In
particular, it states the privData component is constructed
according to the privacy protocol identified for the SNMPv2
party receiving the message. When the relevant privacy
protocol is the Symmetric Privacy Protocol, the procedure
performed by a SNMPv2 entity whenever a management
communication is to be transmitted by a SNMPv2 party is as
follows.

(1) If the SnmpAuthMsg value is not authenticated according
to the conventions of the Digest Authentication Protocol,
the generation of the private management communication
fails according to a local procedure, without further
processing.

(2) The local database is consulted to determine the private
privacy key of the SNMPv2 party receiving the message
(represented, for example, according to the conventions
defined in Section 1.5.2).

(3) The SnmpAuthMsg value is serialized according to the
conventions of [13] and [12].

(4) The octet sequence representing the serialized
SnmpAuthMsg value is encrypted using, for example, the
algorithm specified in Section 1.5.2 and the extracted
private privacy key.

(5) The privData component is set to the encrypted value.

As set forth in [1], the SnmpPrivMsg value is then serialized
and transmitted to the receiving SNMPv2 party.

4.2. Receiving a Message

This section describes the behavior of a SNMPv2 entity when it
acts as a SNMPv2 party for which the privacy protocol is
administratively specified as the Symmetric Privacy Protocol.
Insofar as the behavior of a SNMPv2 entity when receiving a

RFC1446 Security Protocols for SNMPv2 April 1993

protocol message is defined generically in [1], only those
aspects of that behavior that are specific to the Symmetric
Privacy Protocol are described below.

According to Section 3.2 of [1], the privData component of a
received SnmpPrivMsg value is evaluated during Step 4 of
generic processing. In particular, it states the privData
component is evaluated according to the privacy protocol
identified for the SNMPv2 party receiving the message. When
the relevant privacy protocol is the Symmetric Privacy
Protocol, the procedure performed by a SNMPv2 entity whenever
a management communication is received by a SNMPv2 party is as
follows.

(1) The local database is consulted to determine the private
privacy key of the SNMPv2 party receiving the message
(represented, for example, according to the conventions
defined in Section 1.5.2).

(2) The contents octets of the privData component are
decrypted using, for example, the algorithm specified in
Section 1.5.2 and the extracted private privacy key.

Processing of the received message continues as specified in
[1].

RFC1446 Security Protocols for SNMPv2 April 1993

5. Clock and Secret Distribution

The protocols described in Sections 3 and 4 assume the
existence of loosely synchronized clocks and shared secret
values. Three requirements constrain the strategy by which
clock values and secrets are distributed.

o If the value of an authentication clock is decreased, the
private authentication key must be changed concurrently.

When the value of an authentication clock is decreased,
messages that have been sent with a timestamp value
between the value of the authentication clock and its new
value may be replayed. Changing the private
authentication key obviates this threat.

o The private authentication key and private privacy key
must be known only to the parties requiring knowledge of
them.

Protecting the secrets from disclosure is critical to the
security of the protocols. Knowledge of the secrets must
be as restricted as possible within an implementation.
In particular, although the secrets may be known to one
or more persons during the initial configuration of a
device, the secrets should be changed immediately after
configuration such that their actual value is known only
to the software. A management station has the additional
responsibility of recovering the state of all parties
whenever it boots, and it may address this responsibility
by recording the secrets on a long-term storage device.
Access to information on this device must be as
restricted as is practically possible.

o There must exist at least one SNMPv2 entity that assumes
the role of a responsible management station.

This management station is responsible for ensuring that
all authentication clocks are synchronized and for
changing the secret values when necessary. Although more
than one management station may share this
responsibility, their coordination is essential to the
secure management of the network. The mechanism by which
multiple management stations ensure that no more than one
of them attempts to synchronize the clocks or update the

RFC1446 Security Protocols for SNMPv2 April 1993

secrets at any one time is a local implementation issue.

A responsible management station may either support clock
synchronization and secret distribution as separate
functions, or combine them into a single functional unit.

The first section below specifies the procedures by which a
SNMPv2 entity is initially configured. The next two sections
describe one strategy for distributing clock values and one
for determining a synchronized clock value among SNMPv2
parties supporting the Digest Authentication Protocol. For
SNMPv2 parties supporting the Symmetric Privacy Protocol, the
next section describes a strategy for distributing secret
values. The last section specifies the procedures by which a
SNMPv2 entity recovers from a "crash."

5.1. Initial Configuration

This section describes the initial configuration of a SNMPv2
entity that supports the Digest Authentication Protocol or
both the Digest Authentication Protocol and the Symmetric
Privacy Protocol.

When a network device is first installed, its initial, secure
configuration must be done manually, i.e., a person must
physically visit the device and enter the initial secret
values for at least its first secure SNMPv2 party. This
requirement suggests that the person will have knowledge of
the initial secret values.

In general, the security of a system is enhanced as the number
of entities that know a secret is reduced. Requiring a person
to physically visit a device every time a SNMPv2 party is
configured not only exposes the secrets unnecessarily but is
administratively prohibitive. In particular, when MD5 is
used, the initial authentication secret is 128 bits long and
when DES is used an additional 128 bits are needed - 64 bits
each for the key and initialization vector. Clearly, these
values will need to be recorded on a medium in order to be
transported between a responsible management station and a
managed agent. The recommended procedure is to configure a
small set of initial SNMPv2 parties for each SNMPv2 entity,
one pair of which may be used initially to configure all other
SNMPv2 parties.

RFC1446 Security Protocols for SNMPv2 April 1993

In fact, there is a minimal, useful set of SNMPv2 parties that
could be configured between each responsible management
station and managed agent. This minimal set includes one of
each of the following for both the responsible management
station and the managed agent:

o a SNMPv2 party for which the authentication protocol and
privacy protocol are the values noAuth and noPriv,
respectively,

o a SNMPv2 party for which the authentication protocol
identifies the mechanism defined in Section 1.5.1 and its
privacy protocol is the value noPriv, and

o a SNMPv2 party for which the authentication protocol and
privacy protocol identify the mechanisms defined in
Section 1.5.1 and Section 1.5.2, respectively.

The last of these SNMPv2 parties in both the responsible
management station and the managed agent could be used to
create all other SNMPv2 parties.

Configuring one pair of SNMPv2 parties to be used to configure
all other parties has the advantage of exposing only one pair
of secrets - the secrets used to configure the minimal, useful
set identified above. To limit this exposure, the responsible
management station should change these values as its first
operation upon completion of the initial configuration. In
this way, secrets are known only to the peers requiring
knowledge of them in order to communicate.

The Management Information Base (MIB) document [4] supporting
these security protocols specifies 6 initial party identities
and initial values, which, by convention, are assigned to the
parties and their associated parameters.

These 6 initial parties are required to exist as part of the
configuration of implementations when first installed, with
the exception that implementations not providing support for a
privacy protocol only need the 4 initial parties for which the
privacy protocol is noPriv. When installing a managed agent,
these parties need to be configured with their initial
secrets, etc., both in the responsible management station and
in the new agent.

RFC1446 Security Protocols for SNMPv2 April 1993

If the responsible management station is configured first, it
can be used to generate the initial secrets and provide them
to a person, on a suitable medium, for distribution to the
managed agent. The following sequence of steps describes the
initial configuration of a managed agent and its responsible
management station.

(1) Determine the initial values for each of the attributes
of the SNMPv2 party to be configured. Some of these
values may be computed by the responsible management
station, some may be specified in the MIB document, and
some may be administratively determined.

(2) Configure the parties in the responsible management
station, according to the set of initial values. If the
management station is computing some initial values to be
entered into the agent, an appropriate medium must be
present to record the values.

(3) Configure the parties in the managed agent, according to
the set of initial values.

(4) The responsible management station must synchronize the
authentication clock values for each party it shares with
each managed agent. Section 5.3 specifies one strategy
by which this could be accomplished.

(5) The responsible management station should change the
secret values manually configured to ensure the actual
values are known only to the peers requiring knowledge of
them in order to communicate. To do this, the management
station generates new secrets for each party to be
reconfigured and distributes the updates using any
strategy which protects the new values from disclosure;
use of a SNMPv2 set operation acting on the managed
objects defined in [4] is such a strategy. Upon
------分隔线----------------------------
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
最新评论 查看所有评论
发表评论 查看所有评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 密码: 验证码:
推荐内容