other
- Location
SKILL.md:118- Finding
Arbitrary Retrieval of Potentially Sensitive Nomad Variables
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:118-127
Vulnerability Type: Sensitive Data Access
Risk Level: MediumComplete Code Snippet:
markdown ### Variables List variables: ```bash nomad var listGet variable:
bash nomad var get <path>text ### Technical Analysis The skill permits users or agents to enumerate Nomad variable paths with `nomad var list` and retrieve the contents of any ACL-accessible variable with `nomad var get <path>`. Nomad variables may contain credentials, access tokens, application configuration secrets, or other sensitive data. Although these commands do not modify cluster state, arbitrary value retrieval extends beyond basic cluster-health monitoring. The documentation provides no path allowlist, output redaction, explicit confirmation requirement, or warning against retrieving secret-bearing variables. Consequently, sensitive values may be written to terminal output and incorporated into the agent's conversation context or logs. ### Attack Path 1. Load or invoke the Nomad skill in an environment containing a configured `NOMAD_ADDR` and an ACL token with variable-read permission. 2. Run `nomad var list` to enumerate accessible variable paths. 3. Identify a path likely to contain credentials or other sensitive configuration. 4. Run `nomad var get <path>`. 5. The Nomad CLI returns the variable contents, exposing them in command output and potentially in the agent transcript or execution logs. ### Impact Assessment Exploitation does not itself grant permissions beyond those already associated with the configured Nomad token. However, it can disclose every Nomad variable readable by that token. Depending on the contents, this may expose application credentials, API tokens, or configuration secrets that enable access to other services. The practical scope is bounded by Nomad ACL policy, namespace and region settings, and the pri ...[truncated 28 chars]- Remediation
View remediation
Remediation Suggestions
- Remove arbitrary variable retrieval from this monitoring-focused skill unless it is essential to its documented purpose.
- If retrieval is required, demand explicit user confirmation before reading a variable's value.
- Restrict access to an allowlist of approved, non-secret variable paths.
- Display variable metadata by default and require a separate, deliberate operation to reveal values.
- Redact sensitive fields before returning output to the agent or storing it in transcripts and logs.
- Use a dedicated least-privilege Nomad ACL token that denies variable-read capabilities by default.
- Separate secret-management operations into a dedicated skill with stricter authorization, auditing, and output-handling controls.
- Clearly document that Nomad variables may contain secrets and must not be retrieved or displayed without authorization.
