Back to skill

Security audit

skill-release-plus

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports concrete publishing, packaging, and credential-handling weaknesses, along with remote deletion capabilities beyond the stated publishing purpose.

Consider the suspicious verdict before installing, especially if you publish from an account or machine with valuable credentials or files. Review whether you need this skill’s remote deletion features, and consider isolating it and using narrowly scoped, short-lived publishing credentials. Skillspector completed analysis of all listed components but marked coverage partial because some local references could not be resolved, so the evidence is incomplete.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/_adapter_github_release.py
Finding

Repository-controlled symlinks redirect archive extraction outside the temporary clone

Content
View full analysis

Impact

A matching symlink can cause a packaged file to overwrite another file writable by the publishing user. For example, a tracked /README.md symlink targeting a file in another local project redirects extraction of the normal README.md onto that unrelated file. Replacement contents come from the corresponding packaged file; arbitrary attacker-chosen replacement bytes are not established.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (43)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The authentication, metadata reading, availability checks, and package uploads support the declared publishing purpose. However, unlist() and delete() add remote removal capabilities not disclosed by the description; deletion is materially different from publishing a release. These helpers are not automatically invoked in this chunk, but they implement actionable authenticated operations. The absence of the full multi-hub orchestration in this single adapter is not itself a mismatch.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

md
## What's new in 1.1.1

- **Safety-net exclusion (hardcoded)**: credentials and key material
  (`*.pem` / `*.key` / `id_rsa*` / `credentials.json` / `.env.*` /
  `service-account*.json` etc.) are **never packaged**, regardless of
  user `exclude.json` — user config can exclude more, but cannot re-include
  safety-net files. Everything the safety net blocked is reported after

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 83)May include surrounding context.

python
"id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
        ".netrc", ".npmrc", ".pypirc",
        ".git-credentials", ".gitcredentials",
        "credentials.json", "secrets.json",
        "service-account.json", "htpasswd", ".htpasswd", ".pgpass",
    },
    "exts": {

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · config/exclude.json (reported line 40)May include surrounding context.

json
"Thumbs.db",
        ".coverage",
        "coverage.xml",
        ".env",
        ".env.local",
        "sign.key",
        ".sign-key",

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 42)May include surrounding context.

python
GLOBAL_CONFIG_DIR = Path.home() / ".config" / "skill-release-plus"
GLOBAL_ENV_FILE = GLOBAL_CONFIG_DIR / ".env"
PROJECT_ENV_FILE = Path.cwd() / ".env"

# Valid target names (user-hook:<path> is dynamic so not listed here)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 55)May include surrounding context.

python
"files": [
        ".DS_Store", "._.DS_Store", "Thumbs.db",
        ".coverage", "coverage.xml",
        ".env", ".env.local",
        "__skill_meta__.json",
    ],
    "exts": [

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · config/exclude.json (reported line 41)May include surrounding context.

json
".coverage",
        "coverage.xml",
        ".env",
        ".env.local",
        "sign.key",
        ".sign-key",
        "LICENSE",

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 55)May include surrounding context.

python
"files": [
        ".DS_Store", "._.DS_Store", "Thumbs.db",
        ".coverage", "coverage.xml",
        ".env", ".env.local",
        "__skill_meta__.json",
    ],
    "exts": [

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/_adapter_github_release.py (reported line 119)May include surrounding context.

python
# ── git helpers ──────────────────────────────────────────────────────

    def _git(self, cwd: str, *args, env_extra: dict = None) -> subprocess.CompletedProcess:
        env = os.environ.copy()
        if env_extra:
            env.update(env_extra)
        cmd = ["git", *args]

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/_adapter_skillhub_cn.py (reported line 15)May include surrounding context.

python
Slug regex: ^[a-z0-9][a-z0-9-]*[a-z0-9]$
  Rate limit: 3 publish/minute/token (rule "publish.token.minute")
  Owner unpublish: POST /api/v1/community/skills/{slug}/unlist
  Owner delete: DELETE /api/v1/community/skills/{slug} (after unlist)
  Owner relist: POST /api/v1/community/skills/{slug}/relist
  Self skills list: GET /api/v1/users/{handle}/skills
  Auth me: GET /api/v1/auth/me

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/_adapter_user_hook.py (reported line 79)May include surrounding context.

python
"skill_dir": os.path.abspath(skill_dir),
            "display_name": extra.get("display_name") or slug,
        }
        env = os.environ.copy()
        env["SRP_HOOK_SLUG"] = slug
        env["SRP_HOOK_VERSION"] = version
        env["SRP_HOOK_CHANGELOG"] = changelog or ""

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 3)May include surrounding context.

python
#!/usr/bin/env python3
"""
_lib_config.py — Shared config loader with .env support + onboarding.

Resolution priority (high -> low):
  1. CLI args

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 68)May include surrounding context.

python
}


# ── .env loading ──────────────────────────────────────────────────────────

def _parse_env_file(path: Path) -> dict:
    """Parse a simple KEY=VALUE .env file. Ignores blank lines and #-comments.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 105)May include surrounding context.

python
"""
    cli_overrides = cli_overrides or {}

    # Layer 4: global ~/.config/skill-release-plus/.env
    cfg = dict(DEFAULTS)
    cfg.update(_parse_env_file(GLOBAL_ENV_FILE))

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 43)May include surrounding context.

python
GLOBAL_CONFIG_DIR = Path.home() / ".config" / "skill-release-plus"
GLOBAL_ENV_FILE = GLOBAL_CONFIG_DIR / ".env"
PROJECT_ENV_FILE = Path.cwd() / ".env"

# Valid target names (user-hook:<path> is dynamic so not listed here)
#

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 71)May include surrounding context.

python
# ── .env loading ──────────────────────────────────────────────────────────

def _parse_env_file(path: Path) -> dict:
    """Parse a simple KEY=VALUE .env file. Ignores blank lines and #-comments.
    Strips surrounding double quotes from values."""
    out: dict = {}
    if not path.is_file():

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 224)May include surrounding context.

python
if not token:
        return None

    # Save to global .env
    save = input(f"  Save to {GLOBAL_ENV_FILE} for future use? [Y/n] ").strip().lower()
    if save in ("", "y", "yes"):
        _save_global_env({env_key: token})

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 109)May include surrounding context.

python
cfg = dict(DEFAULTS)
    cfg.update(_parse_env_file(GLOBAL_ENV_FILE))

    # Layer 3: project ./.env
    cfg.update(_parse_env_file(PROJECT_ENV_FILE))

    # Layer 2: process env vars (only SRP_* prefix)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 233)May include surrounding context.

python
def _save_global_env(kv: dict) -> None:
    """Append (or overwrite) keys to global .env with chmod 600."""
    GLOBAL_CONFIG_DIR.mkdir(parents=True, exist_ok=True)
    # chmod 700 on parent
    try:

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
70% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/_lib_config.py (reported line 113)May include surrounding context.

python
cfg.update(_parse_env_file(PROJECT_ENV_FILE))

    # Layer 2: process env vars (only SRP_* prefix)
    for k, v in os.environ.items():
        if k.startswith("SRP_") and v:
            cfg[k] = v

Credential Access

High
Category
Privilege Escalation
Confidence
80% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 81)May include surrounding context.

python
_SAFETY_NET = {
    "files": {
        "id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
        ".netrc", ".npmrc", ".pypirc",
        ".git-credentials", ".gitcredentials",
        "credentials.json", "secrets.json",
        "service-account.json", "htpasswd", ".htpasswd", ".pgpass",

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 81)May include surrounding context.

python
_SAFETY_NET = {
    "files": {
        "id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
        ".netrc", ".npmrc", ".pypirc",
        ".git-credentials", ".gitcredentials",
        "credentials.json", "secrets.json",
        "service-account.json", "htpasswd", ".htpasswd", ".pgpass",

Credential Access

High
Category
Privilege Escalation
Confidence
90% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 82)May include surrounding context.

python
"files": {
        "id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
        ".netrc", ".npmrc", ".pypirc",
        ".git-credentials", ".gitcredentials",
        "credentials.json", "secrets.json",
        "service-account.json", "htpasswd", ".htpasswd", ".pgpass",
    },

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 83)May include surrounding context.

python
"id_rsa", "id_dsa", "id_ecdsa", "id_ed25519",
        ".netrc", ".npmrc", ".pypirc",
        ".git-credentials", ".gitcredentials",
        "credentials.json", "secrets.json",
        "service-account.json", "htpasswd", ".htpasswd", ".pgpass",
    },
    "exts": {

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · scripts/_lib_package.py (reported line 92)May include surrounding context.

python
"patterns": [
        "id_rsa*", "id_dsa*", "id_ecdsa*", "id_ed25519*",
        "service-account*.json",
        ".env.*",           # .env.staging / .env.production 等(.env/.env.local 在用户层)
        "*credentials*.json",
        "*secret*.json",
    ],