Skip to content
Guides & References

PAN-OS SNMP

Worked examples for the PAN-OS SNMP template: no SNMPv2c community string anywhere in the config.

Policy LibraryUpdated
Platform
palo-alto-panos
Minimum version
rConfig 8.0.2
Editions
Pro, Vector, Enterprise
On this page

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.

Definition
// No SNMPv2c community is configured (fails on snmp-community-string)
#[must_not_match_regex]
/(^|[{;])\s*snmp-community-string /m
passPassing config: Hardened PA-3220 sample (PAN-OS 11.1.4, synthetic)
snmp-setting {
snmp-system {
location "Dublin HQ, comms room 1";
contact noc@example.com;
}
}

Why: There is no community string.

failFailing config: Unhardened PA-3220 sample (PAN-OS 11.1.4, synthetic)
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:

ConfigRule resultOverall result
Passing configpassPASS
Failing configfailFAIL

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.


Type to search.