other
- Location
SKILL.md:179- Finding
Credential-Related Environment Variable Reconnaissance
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 179
Vulnerability Type: Environment reconnaissance
Risk Level: MediumVulnerable Code:
bash env | grep -E "API|KEY|TOKEN|SECRET" | sed "s/=.*/=***/" # Linux/macOSTechnical Analysis
The configuration-verification command enumerates the complete process environment through
envand then filters variables whose names contain credential-related terms. Although the finalsedoperation masks displayed values, every environment variable—including potentially sensitive values—is first passed through the pipeline.Enumerating the complete environment is unnecessary for validating Jira configuration. The command also discloses the names and availability of unrelated API keys, tokens, and secrets, providing useful reconnaissance to an Agent, malicious pipeline component, or compromised local utility.
Attack Path
- A user loads the Skill and follows its environment-verification instructions.
- The Agent executes the documented command.
- The complete environment, including secret values, is passed from
envintogrep. - Credential-related variable names are identified and shown, while their raw values remain exposed to processes participating in the pipeline.
- A malicious or compromised pipeline component can capture those values or use the discovered variable names to target subsequent credential-access attempts.
Impact Assessment
Successful exploitation may disclose environment-resident credentials to a compromised command-line component or reveal which credentials are available in the Agent process. The potential scope is limited to variables accessible to the invoking process, but it may include unrelated service tokens, API keys, or deployment secrets. This command does not itself grant elevated operating-system privileges or establish persistence.
- Remediation
View remediation
Remediation Suggestions
- Remove the broad
envenumeration command. - Validate only explicitly required Jira variables using a fixed allowlist.
- Test whether each required variable is set without printing its value.
- Avoid exposing credential names unless they are documented configuration requirements.
- Execute validation without external pipeline utilities where possible.
Example of a safer presence check:
bash if [ -n "${JIRA_API_TOKEN:-}" ]; then printf '%s\n' "JIRA_API_TOKEN is configured" else printf '%s\n' "JIRA_API_TOKEN is not configured" fi- Remove the broad
