Back to skill

Security audit

Mintsoft

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed Mintsoft API wrapper, but users should treat its credentials and cached API key as sensitive business secrets.

Install this only if you intend to give an agent access to Mintsoft warehouse and order data. Prefer MINTSOFT_API_KEY over username/password login, keep any token cache in a private user directory, and install httpx in a pinned or isolated Python environment when possible.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:32
Finding

Unpinned Runtime Dependency Installation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/mintsoft_api.py:88
Finding

Cached API Key Is Written Before Restrictive Permissions Are Applied

Content
View full analysis
None: """Persist the API key to disk with restrictive permissions.""" CONFIG_DIR.mkdir(parents=True, exist_ok=True) payload = {"api_key": api_key, "issued_at": int(time.time())} TOKEN_PATH.write_text(json.dumps(payload)) try: os.chmod(TOKEN_PATH, 0o600) except OSError: # Best-effort on filesystems that don't support chmod. pass ``` ### Technical Analysis The API key is written with `Path.write_text()` before the file is restricted to mode `0600`. Initial permissions are therefore determined by the process umask. With a permissive umask, the file may initially be readable by other local users. This creates a race window between file creation and `os.chmod()`. If `chmod` fails, the exception is silently ignored and the token can remain stored with broader permissions. The containing configuration directory is also created without explicitly enforcing mode `0700`, so its effective permissions depend on the umask or on the permissions of a pre-existing directory. The cache path can be changed through `MINTSOFT_CONFIG_DIR`. The implementation does not verify ownership, reject symbolic links, or securely create and atomically replace the token file. In a hostile or shared local environment, these omissions increase the possibility of disclosure or unsafe file replacement. The cache itself is documented and functionally justified; it is not a startup hook, scheduled task, service, or other system-persistence mechanism. The defect concerns how the secret file is created and protected. ### Attack Path 1. An attacker has local access under another account or control over an insecure shared cache directory. 2. The victim runs the `auth` command, causing the Mintsoft API to ...[truncated 1419 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
89% confidence
Finding

The skill explicitly requires environment access, shell execution, file writes, and network access, but it does not declare any tool scope restrictions such as allowed-tools or permissions. That creates an overbroad execution surface where an agent may use more capabilities than minimally necessary, including handling secrets and writing token caches, which increases the risk of unintended data exposure or misuse.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill’s stated purpose is a single API-key wrapper, but it also supports username/password authentication and locally caches the returned API key. This expands the credential-handling surface beyond the declared scope, increasing the risk of accidental secret exposure, misuse by agents, and persistence of reusable credentials on disk.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

Reading Mintsoft username/password from environment variables and converting them into a cached API key on disk introduces unnecessary credential collection and persistence for a tool described as an API-key wrapper. In an agent context, this makes the tool more dangerous because agents may be granted broader access to secrets and filesystem state than users expect.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 4)May include surrounding context.

md
import httpx

API_BASE = "https://api.mintsoft.co.uk/api"
TIMEOUT = 30
MAX_RETRIES = 3
PAGE_SIZE = 100

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 22)May include surrounding context.

md
import httpx

API_BASE = "https://api.mintsoft.co.uk/api"
TIMEOUT = 30
MAX_RETRIES = 3
PAGE_SIZE = 100

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 160)May include surrounding context.

md
import httpx

API_BASE = "https://api.mintsoft.co.uk/api"
TIMEOUT = 30
MAX_RETRIES = 3
PAGE_SIZE = 100

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/mintsoft_api.py (reported line 37)May include surrounding context.

python
import httpx

API_BASE = "https://api.mintsoft.co.uk/api"
TIMEOUT = 30
MAX_RETRIES = 3
PAGE_SIZE = 100

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/mintsoft_api.py (reported line 511)May include surrounding context.

python
import httpx

API_BASE = "https://api.mintsoft.co.uk/api"
TIMEOUT = 30
MAX_RETRIES = 3
PAGE_SIZE = 100

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This code file performs a network authentication request using user credentials in cmd_auth, but the command itself does not include a confirmation prompt or explicit warning that the supplied username and password will be sent to a remote service. Although the module docstring documents the auth flow, there is no immediate user-facing disclosure at the point of execution for this sensitive network operation.

Content

No source excerpt is available for this finding.