T05 · Unauthorized Access and Privilege Escalation
- Location
references/cli-reference.md:13- Finding
Security-Sensitive Configuration May Be Collected Without Redaction Controls
- Content
View full analysis
Vulnerability Details
File Location:
references/cli-reference.md:13-26andreferences/cli-reference.md:115-121
Vulnerability Type: Insufficient minimization and protection of sensitive audit output
Risk Level: MediumComplete Code Snippet
From
references/cli-reference.md:13-26:markdown | Function | CLI Command | |----------|-------------| | AAA configuration status | `show running-config \| section aaa` | | Authentication methods for login | `show running-config \| include aaa authentication` | | Authorization configuration | `show running-config \| include aaa authorization` | | Accounting configuration | `show running-config \| include aaa accounting` | | VTY line access settings | `show running-config \| section line vty` | | Console line settings | `show running-config \| section line con` | | Auxiliary port status | `show running-config \| section line aux` | | SSH version and settings | `show ip ssh` | | SSH active sessions | `show ssh` | | User accounts and privilege levels | `show running-config \| include username` | | Enable secret hash type | `show running-config \| include enable` | | SNMP community strings | `show snmp community` | | SNMP group and security model | `show snmp group` |From
references/cli-reference.md:115-121:markdown | Login user accounts | `show configuration system login` | | Root authentication settings | `show configuration system root-authentication` | | SSH service configuration | `show configuration system services ssh` | | SSH rate limit settings | `show configuration system services ssh rate-limit` | | Telnet service status | `show configuration system services telnet` | | RADIUS server configuration | `show configuration system radius-server` | | TACACS+ server configuration | `show configuration system tacplus-server` |Technical Analysis
The prescribed commands are read-only and relevant to a CIS comp ...[truncated 2402 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace broad configuration retrieval with narrowly scoped commands or device APIs that return compliance status without raw secret-bearing fields.
- Redact SNMP community strings, password hashes, authentication keys, tokens, and other credentials before output enters agent context or persistent logs.
- Collect usernames and infrastructure addresses only when required, and pseudonymize them in the final report where practical.
- Explicitly prohibit raw credentials, hashes, keys, and community strings from appearing in generated compliance reports.
- Use a dedicated least-privilege audit role that can inspect control state but cannot retrieve secret material where the platform supports field-level restrictions.
- Encrypt retained evidence at rest and in transit, restrict access to authorized auditors, and maintain access logs.
- Define a short evidence-retention period and securely delete raw command output after findings have been validated.
- Add operator guidance requiring review and sanitization of command output before it is attached to tickets, reports, or external compliance systems.
- Where broad output cannot be avoided, process it locally through an approved redaction filter before providing it to the agent.
