Back to skill

Security audit

Hashgen

Security checks for vulnerabilities and agentic risk

Overview

HashGen is a straightforward local hashing utility, with a caution that text passed to it may be shown in terminal output or shell history.

Install only if you are comfortable with a local shell-based hashing helper. Do not pass passwords, API keys, tokens, or other secrets as command-line text, especially with `hashgen all`, because the input or digests may appear in terminal output, logs, shell history, or process listings.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The all command prints the raw input text back to stdout (echo "Input: \"$text\""). If users hash secrets such as passwords, tokens, or API keys, the script defeats the purpose of discreet handling by exposing the plaintext in terminal history, logs, CI output, or shared session captures. In a hashing utility, users may reasonably expect only digests to be displayed.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The verify command prints both the computed and expected hash values during verification. While it does not print the plaintext directly, it still discloses sensitive verification material to stdout, which may be captured in logs or terminals; moreover, the command is designed to accept potentially secret text input as an argument, which is already exposed via shell history/process listings. In the context of an integrity/hash tool, this behavior increases accidental secret leakage risk rather than serving a security need.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.