Secure Network Best Practices Library · Manage, monitor and recover

SNMP security best practices

SNMP is how monitoring systems read the health of switches, routers, firewalls and printers. Its older versions protect that access with a single word sent in clear text, often still set to the factory default. This guide covers how to find where SNMP is on, remove the weak versions, configure version 3 properly, and limit who may ask.

Prefer to have it done for you? IT Perfection provides network monitoring services for companies in Irvine, Orange County and Los Angeles County.

Ali Hassani, CISSP and Certified CISO, IT PerfectionWritten by Ali Hassani, CISSP and C|CISO · 25+ years designing, securing and supporting business networks · Updated November 2026

Two engineers reviewing a laptop near servers
FindEvery device answering SNMP is listed, with version and community.

Secure Network Best Practices Library › Manage, monitor and recover › SNMP security

What it isSNMP, the Simple Network Management Protocol, lets a monitoring server query devices for status and receive alerts, called traps, from them. Version 3 adds user authentication and encryption; versions 1 and 2c rely on a clear-text community string.
Where it livesOn every network device that is monitored, and on the monitoring server
Works onAll business network equipment. Commands shown for Cisco IOS
Cost and timeNo licence needed
Risk if missingInformation leak, or worseA known community string reveals the device configuration; a write community can change it

Why it matters

Protect monitoring without exposing device management

Monitoring needs SNMP, or something like it. The monitoring server asks each device for interface counters, temperatures, power supplies and errors, and turns the answers into graphs and alerts.

The problem is how that access is protected. In versions 1 and 2c, the only protection is a community string, in effect a password, sent unencrypted in every request. Devices commonly ship with the read community set to public and the write community to private. A read community exposes the layout of the network. A write community lets whoever knows it change the configuration.

The fix is not to stop monitoring. It is to use version 3, restrict which servers may ask, grant read-only access, and remove what is left of the old versions.

A public case

On April 18, 2023, the UK National Cyber Security Centre, with the NSA, CISA and the FBI, published an advisory about activity in 2021 by a group it names APT28. The advisory states that the compromised Cisco routers were configured to accept SNMP version 2 requests, that SNMP version 2 does not support encryption so community strings are sent unencrypted, that weak community strings, including the default “public”, allowed the group to gain access to router information, and that the group exploited CVE-2017-6742, a vulnerability first announced by Cisco on June 29, 2017, for which patched software was made available.

Source: CISA advisory AA23-108, APT28 Exploits Known Vulnerability to Carry Out Reconnaissance and Deploy Malware on Cisco Routers, April 18, 2023. IT Perfection had no part in this case.

Versions

The three versions

VersionProtectionVerdict
SNMPv1Clear-text community stringRemove
SNMPv2cClear-text community stringRemove; if a device supports nothing else, restrict it tightly and plan its replacement
SNMPv3 noAuthNoPrivA user name onlyDo not use
SNMPv3 authNoPrivThe sender is verified; content is readableMinimum
SNMPv3 authPrivThe sender is verified and content is encryptedUse this

Within version 3, choose the stronger algorithms the device offers: SHA-2 for authentication and AES for encryption. Use different secrets for authentication and for privacy, stored in the password manager.

The standard

Six areas of SNMP security

AreaStandardWhy
Version controlVersion 3 authPriv only; versions 1 and 2c disabledNothing in clear text.
Manager restrictionsOnly the monitoring server addresses may query, enforced on the device and by firewall rules; never from the internetA stolen secret is not enough.
Least privilegeRead-only; a view limited to what monitoring needs; no write accessMonitoring cannot change devices.
Credential handlingUnique users and long secrets; stored in the password manager; changed when staff with knowledge leaveNo defaults.
Trap and alert designTraps for authentication failures, link changes and configuration changes sent to the monitoring serverFailed attempts are seen.
Lifecycle reviewSNMP settings checked when devices are added, replaced or monitoring tools changeOld accounts do not linger.

The NSA guide recommends removing SNMP read-write community strings and, where SNMP is used, version 3 with authentication and privacy (sections 7.8 and 7.11.3). See also network device management hardening.

Before you start

Minimum SNMP security evidence

  • A scan of your internal ranges for devices answering on UDP 161. Printers, cameras and uninterruptible power supplies answer too.
  • The SNMP lines from every device configuration. Versions, communities, allowed sources.
  • What the monitoring system supports. Version 3 with which algorithms.
  • The addresses of the monitoring servers. For the restrictions.
  • A list of devices that only support version 1 or 2c. For isolation or replacement.
  • An outside scan of UDP 161 on your public addresses. It must not answer.

Step by step

Harden SNMP in seven steps

  1. Inventory SNMP usage

    Every device that answers, and every system that asks.

  2. Remove weak defaults

    Delete public and private at once, on every device, whether or not SNMP is otherwise in use.

  3. Configure version 3 authPriv

    A view, a group that requires privacy, a user with strong algorithms.

  4. Restrict manager access

    An access list on the device, plus firewall rules so only the monitoring server reaches UDP 161 on the management network.

  5. Apply least-privilege views

    Read-only. No write user unless a specific tool requires it, and then only from that tool.

  6. Switch the monitoring system and remove version 2c

    Add the version 3 credentials in the monitoring tool, confirm data is arriving, then delete the remaining communities.

  7. Monitor failures and review

    Alert on SNMP authentication failures. Re-check after device or tool changes.

! 1. Remove the old community strings
no snmp-server community public
no snmp-server community private
!
! 2. Only the monitoring server may ask
ip access-list standard SNMP-MANAGERS
 permit 10.10.50.30
!
! 3. A read-only view, a group that requires encryption, and a user
snmp-server view MONITOR-VIEW iso included
snmp-server group MONITOR-RO v3 priv read MONITOR-VIEW access SNMP-MANAGERS
snmp-server user nms-monitor MONITOR-RO v3 auth sha <AUTH-SECRET> priv aes 256 <PRIV-SECRET>
!
! 4. Traps to the same server, also version 3
snmp-server host 10.10.50.30 version 3 priv nms-monitor
snmp-server enable traps snmp authentication linkdown linkup
snmp-server enable traps config

Example values. Replace names, ports, addresses and VLAN numbers with your own. Commands and menu names change between software versions; confirm them against the current documentation of the vendor before you apply them.

Turn SNMP off where it is not used. Many devices have it enabled from the factory with default communities, including printers and power equipment. If nothing monitors the device by SNMP, disable the service.

Recommended values

The settings at a glance

SettingRecommended valueWhy
Version3, authPrivAuthenticated and encrypted.
AlgorithmsSHA-2 and AES where supportedStrongest the device offers.
Versions 1 and 2cDisabled; communities deletedNo clear-text secrets.
AccessRead-onlyMonitoring only.
Allowed sourcesMonitoring server addresses onlyLimits who can ask.
InterfaceManagement network only; never the internet sideNot reachable by strangers.
TrapsVersion 3, to the monitoring server; authentication failure trap onAttempts are visible.
SecretsUnique, long, in the password managerNo defaults or reuse.
Unused SNMPService offNothing to attack.

Check that it works

Confirm SNMP is hardened, and common risks

! Illustration
User name: nms-monitor
Authentication Protocol: SHA
Privacy Protocol: AES256
Group-name: MONITOR-RO
  • A query with the community public gets no answer. From the monitoring server and from a staff computer.
  • A version 3 query from the monitoring server works; the same query from another computer does not. Proves the source restriction.
  • The monitoring system shows current data for every device. Nothing was lost in the change.
  • UDP 161 does not answer from the internet. Outside scan.
  • A deliberate failed query produced an alert. Authentication failure trap.
RiskWhat happensFix
Default community stringsAnyone inside can read device detailsDelete them.
SNMPv1 or v2c exposureSecrets cross the network in clear textVersion 3 authPriv.
Broad source accessAny computer can queryRestrict to the monitoring server.
Excessive accessA write community can change configurationRead-only views.
Unmonitored failuresGuessing goes unnoticedAuthentication failure traps.
Stale monitoring accountsOld tools and users still validReview on change.

Sources read Nov 22, 2026: CISA advisory AA23-108; NSA, Network Infrastructure Security Guide.

Have us do it

Prefer to hand this off?

SNMP clean-up is part of our network monitoring services. We find every device that answers, remove default and clear-text communities, configure version 3 with restricted sources, move your monitoring over and confirm that nothing answers from outside. You receive a written scope and a written quote before any work starts.

Ali Hassani, CISSP and Certified CISO, IT Perfection

Who does the work

Written by Ali Hassani, CISSP, C|CISO

Ali Hassani has 25+ years of hands-on experience in IT operations, cybersecurity, Microsoft infrastructure, network security and Azure, and works with businesses in Irvine, Orange County and Los Angeles County. Design, implementation and troubleshooting work is planned and reviewed by Ali personally.

This guide is for education and planning. It does not replace a professional audit, compliance assessment or vendor engineering review. Updated November 2026.

ISC2 CISSP badgeEC-Council Certified CISO (C|CISO) badgeCisco CCNP Routing and Switching badgeMCSE: Server Infrastructure badgeMicrosoft MCSE badgeMCSA: Security badgeCisco CCNA Cybersecurity badgeMCITP badge

FAQ

SNMP security: common questions

Is SNMP a security risk?

Versions 1 and 2c are, because they protect access with a clear-text community string that is often left at a default. Version 3 with authentication and encryption, restricted to the monitoring server, is acceptable.

What is the difference between SNMPv2c and SNMPv3?

Version 2c uses a community string sent unencrypted. Version 3 uses named users, verifies the sender and can encrypt the content.

What does authPriv mean?

It is the SNMP version 3 security level with both authentication and privacy: the device verifies who is asking, and the exchange is encrypted.

Should SNMP be open to the internet?

No. SNMP should be reachable only from the monitoring server on the internal or management network.

Do I need SNMP write access?

Almost never for monitoring. Use read-only access. If a tool requires write access, limit it to that tool and that purpose.

Can IT Perfection do this for us?

Yes. It is part of our network monitoring services for companies in Irvine, Orange County and Los Angeles County. Call 949-777-5567 or use the contact page to request a quote.

Need this done for your business?

IT Perfection plans, installs and supports this for companies in Irvine and Orange County

The guides explain the steps. If you would rather have it done, planned and documented by an experienced engineer, these are the services that cover it. Design, implementation and troubleshooting work is planned and reviewed by Ali Hassani personally.

Network design and installation

Firewall, switches, VLANs and Wi-Fi planned, installed and documented.

View service

Firewall installation

New or replacement firewalls with clean rules and VPN with MFA.

View service

Network troubleshooting

Slow network, drops, Wi-Fi, VPN, DNS and DHCP problems traced and fixed.

View service