PAN-OS SNMP
SNMPv2c sends its community string in clear text, and anyone who has it can read the firewall’s settings. This page has one rule, from the panos-snmp policy template.
Every example on this page was checked with rConfig Pro's policy engine on Each of the 2 configs below was run through rConfig Pro’s evaluator with the rule above it, and gave the result shown. The configs are sanitised excerpts of the sample configs that come with the template.
All the rules come from panos-snmp.policy in the policy templates (v1.5.0). Import the whole file with Import Templates (see importing a policy template), or copy one rule into your own definition. The Palo Alto PAN-OS templates page lists the file’s known limitations. Run the rules against show config running (brace format).
| Rule | Method | Since |
|---|---|---|
| No SNMPv2c community | must_not_match_regex |
8.0.2 |
No SNMPv2c community
This rule fails if any snmp-community-string line is in the config. Use SNMPv3 instead.
// No SNMPv2c community is configured (fails on snmp-community-string)#[must_not_match_regex]/(^|[{;])\s*snmp-community-string /msnmp-setting { snmp-system { location "Dublin HQ, comms room 1"; contact noc@example.com; }}Why: There is no community string.
snmp-setting { access-setting { version { v2c { snmp-community-string hq-ro; } } }}Why: A v2c community string is set.
Expected result in rConfig, with this rule as the only rule in a definition:
| Config | Rule result | Overall result |
|---|---|---|
| Passing config | pass | PASS |
| Failing config | fail | FAIL |
Framework mapping. The rule provides evidence towards these controls. It does not certify anything.
| Framework | Reference |
|---|---|
| NIST SP 800-53 | SC-12 |
| HIPAA (45 CFR) | 164.312(e)(1) |
| ISO/IEC 27001:2022 Annex A | A.8.5 |
Tested with: sample excerpts from PAN-OS 11.1.4 (synthetic). Minimum rConfig 8.0.2 (must_not_match_regex). Editions: Pro, Vector, Enterprise.
Related reference
- Palo Alto PAN-OS policy templates: every rule in
panos-snmp.policy, its references and known limitations. - Policy Definitions: the definition file format and every method.
- Policy Assignments: run a definition against your devices.
- Policy Compliance Results: read the pass and fail results.