PAN-OS AAA and local credentials
Rules for how admins prove who they are: strong local passwords, and logins through a central authentication profile. They come from the panos-aaa policy template.
Every example on this page was checked with rConfig Pro's policy engine on Each of the 4 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-aaa.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 |
|---|---|---|
| Password complexity with a minimum length of 12 | evaluate_block |
8.3.0 |
| Admin login through an authentication profile | evaluate_block |
8.3.0 |
Password complexity with a minimum length of 12
Short local passwords are easy to guess. This rule checks the password-complexity block for enabled yes; and a minimum-length from 12 to 16. Both must be there.
// Password complexity is enabled with a minimum length of 12 or more (mgt-config password-complexity)#[evaluate_block]scope: ^password-complexity \{all: - regex: '/(^|[{;])\s*enabled yes;/m' - regex: '/(^|[{;])\s*minimum-length (1[2-6]);/m'mgt-config { password-complexity { enabled yes; minimum-length 14; minimum-uppercase-letters 1; minimum-lowercase-letters 1; minimum-numeric-letters 1; minimum-special-characters 1; password-history-count 12; }}Why: Complexity is on and the minimum length is 14.
mgt-config { password-complexity { enabled yes; minimum-length 8; minimum-uppercase-letters 1; minimum-lowercase-letters 1; minimum-numeric-letters 1; minimum-special-characters 1; password-history-count 12; }}Why: The minimum length is 8, below 12.
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 | IA-5 |
| ISO/IEC 27001:2022 Annex A | A.5.17 |
Tested with: sample excerpts from PAN-OS 11.1.4 (synthetic). Minimum rConfig 8.3.0 (evaluate_block). Editions: Pro, Vector, Enterprise.
Admin login through an authentication profile
An authentication profile sends admin logins to a central server such as TACACS+ or RADIUS, so accounts are managed in one place. This rule checks the deviceconfig block for an authentication-profile line with a profile name.
// Administrators authenticate through an authentication profile (deviceconfig system authentication-profile)#[evaluate_block]scope: ^deviceconfig \{$all: - regex: '/(^|[{;])\s*authentication-profile [^{\s;]+;/m'deviceconfig { system { hostname dub-fw01; permitted-ip { 192.0.2.0/24; 198.51.100.0/24; } authentication-profile AUTH-TACACS; }}Why: Admins log in through the AUTH-TACACS profile.
deviceconfig { system { hostname dub-hq-fw02; service { disable-telnet no; disable-http no; } }}Why: There is no authentication-profile line under deviceconfig.
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 | AC-2 |
| NIST CSF 1.1 | PR.AC-1 |
| HIPAA (45 CFR) | 164.312(a)(1) |
| ISO/IEC 27001:2022 Annex A | A.8.5 |
Tested with: sample excerpts from PAN-OS 11.1.4 (synthetic). Minimum rConfig 8.3.0 (evaluate_block). Editions: Pro, Vector, Enterprise.
Related reference
- Palo Alto PAN-OS policy templates: every rule in
panos-aaa.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.