Cyberstudy
4.5 In progress

Simple Network Management Protocol Security

16 flashcards

Summary

Simple Network Management Protocol (SNMP) lets monitoring systems read status from network devices and receive alerts. Older versions protect access only with community strings sent in plaintext. SNMPv3 adds user authentication and encryption and should be the only version used.

In plain words

SNMP lets a monitor poll agents on devices (UDP 161), and agents send traps for events (UDP 162). Older versions use community names sent in plaintext, which act like passwords. Use hard-to-guess community names, restrict management to known hosts with ACLs, and prefer SNMPv3, which adds user-based authentication and encryption. Disable older versions.

Detailed explanation

  • Simple Network Management Protocol (SNMP): A protocol for monitoring and managing network devices, using UDP port 161 for queries and 162 for traps.
  • Agent: Software on a managed device that answers queries and sends traps.
  • Manager: The monitoring system that queries agents and receives traps.
  • Trap: An unsolicited alert sent by an agent when an event occurs.
  • Management information base (MIB): The database of values an agent can report.
  • Community string: A shared password in SNMPv1 and v2c, sent in plaintext; defaults such as "public" and "private" must be changed.
  • SNMPv3: Adds user-based authentication, message integrity and encryption.

Guidelines

  • Use SNMPv3: Disable v1 and v2c.
  • Read-only where possible: Limit write access.
  • Restrict sources: Accept SNMP only from management stations.

Important terms

taken from the text above
Simple Network Management Protocol (SNMP)
A protocol for monitoring and managing network devices, using UDP port 161 for queries and 162 for traps.
Agent
Software on a managed device that answers queries and sends traps.
Manager
The monitoring system that queries agents and receives traps.
Trap
An unsolicited alert sent by an agent when an event occurs.
Management information base (MIB)
The database of values an agent can report.
Community string
A shared password in SNMPv1 and v2c, sent in plaintext; defaults such as "public" and "private" must be changed.
SNMPv3
Adds user-based authentication, message integrity and encryption.
Use SNMPv3
Disable v1 and v2c.
Read-only where possible
Limit write access.
Restrict sources
Accept SNMP only from management stations.

Examples & real-world scenarios

  • A switch sending an SNMP trap when a port fails.
  • Replacing the default 'public' community with SNMPv3 users.
  • An ACL allowing SNMP only from the monitoring server.

Scenario

A network scan finds routers still answering to the default SNMP community name. Moving to SNMPv3 with authentication and encryption, and restricting the source IPs, fixes the exposure.

Common mistakes

  • Leaving default community names such as 'public'.
  • Mixing up the ports: 161 is for queries, 162 is for traps.

Practical skills

  • Harden SNMP on a network device.

What I should remember

  • SNMPv3: Authentication and encryption; the only secure version.
  • Community string: Plaintext shared secret in older versions.
  • Trap: Alert sent by a device to the manager.
  • Ports: 161 for queries, 162 for traps.