Skip to content

SNMPv3 without authentication or encryption

Description

Pysnmp was detected using SNMPv3 without authentication or encryption protections enabled. This can lead to sensitive information being transmitted in cleartext, which can be intercepted and exploited by attackers.

Examples

Insecure Code

python
UsmUserData('username', None, None)

Secure Code

python
UsmUserData('username', 'authKey', 'privKey', authProtocol=usmHMACSHAAuthProtocol, privProtocol=usmAesCfb128Protocol)

Remediation

Use both authentication and privacy features in SNMPv3 by setting the `authProtocol` to `usmHMACSHAAuthProtocol` and providing a strong `authKey`, and setting the `privProtocol` to `usmAesCfb128Protocol` and specifying a strong `privKey`.

Rule Details

FieldValue
IDCODE-0161
CategoryCrypto
SeverityMEDIUM
CWECWE-319
ConfidenceHIGH
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityMODERATE
TagsSNMPv3, authentication, encryption
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures