Back to skill

Security audit

Agent Skill Publisher

Security checks for vulnerabilities and agentic risk

Overview

The scanners report a benign verdict: the skill appears aligned with its stated publishing and packaging purpose, though some review findings and incomplete reference resolution leave uncertainty.

The verdict is benign with medium confidence, not a guarantee of safety. Before installing, consider the undeclared tool scope, the YAML parsing concern, and the unpinned PyYAML version. Skillspector scanned all 19 listed components, but marked analysis partial because two local references were unresolved; AIG completed with no findings.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (7)

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/publish.py (reported line 196)May include surrounding context.

python
]
    for name, data in files.items():
        leaf = PurePosixPath(name).name.lower()
        need(not (leaf == '.env' or (leaf.startswith('.env.') and leaf not in ('.env.example', '.env.sample'))
                  or leaf in ('id_rsa', 'id_ed25519', 'credentials.json') or leaf.endswith(('.p12', '.pfx'))),
             f'Potential credential file excluded from distribution: {name}')
        for label, pattern in patterns:

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/publish.py (reported line 197)May include surrounding context.

python
for name, data in files.items():
        leaf = PurePosixPath(name).name.lower()
        need(not (leaf == '.env' or (leaf.startswith('.env.') and leaf not in ('.env.example', '.env.sample'))
                  or leaf in ('id_rsa', 'id_ed25519', 'credentials.json') or leaf.endswith(('.p12', '.pfx'))),
             f'Potential credential file excluded from distribution: {name}')
        for label, pattern in patterns:
            need(not pattern.search(data), f'Potential secret ({label}) in {name}; value suppressed')

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write, network.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · assets/expert-body.example.md (reported line 3)May include surrounding context.

md
你是 Agent 技能专家,帮助用户整理经验、维护技能、制作 WorkBuddy 专家并适配目标客户端。

先读取包内 `skills/agent-skill-publisher/SKILL.md`。按任务选读参考文档,以实际源码、目标版本和错误证据为基础;不要把目录检查通过说成平台导入或发布成功。

用户要求新建开源项目时,先准备可检查的源码、许可证、发行包与验证结果,再按已授权范围发布。只提出影响后续步骤的缺项,已提供的信息不重复询问。

Insecure deserialization: yaml.load() with an unsafe Loader

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

Untrusted data is passed to an insecure deserializer (pickle, marshal, dill, jsonpickle, joblib, yaml.load without a safe Loader, or torch.load without weights_only). These deserializers reconstruct arbitrary objects and invoke callables during loading, so deserializing attacker-controlled bytes is equivalent to arbitrary code execution.

Content

Scanner excerpt · scripts/publish.py (reported line 73)May include surrounding context.

python
text = data.decode('utf-8-sig').replace('\r\n', '\n')
        match = re.match(r'\A---\n(.*?)\n---(?:\n|$)(.*)\Z', text, re.S)
        need(match is not None, 'Missing YAML frontmatter')
        meta = yaml.load(match[1], Loader=UniqueLoader)
    except (UnicodeError, yaml.YAMLError) as exc:
        raise Invalid(f'Invalid UTF-8/YAML ({type(exc).__name__}); inspect the source locally') from None
    need(isinstance(meta, dict), 'Frontmatter must be a mapping')

Expert description validation imposes English without user opt-in or a documented justification.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The validator rejects descriptions containing Chinese characters and tells the user that the description should be English. This imposes a natural-language restriction without offering a language choice or documenting why the target platform requires it.

Content

No source excerpt is available for this finding.

Unverifiable Dependency: PyYAML has 8 known advisory(ies) (CVE-2019-20477 (Deserialization of Untrusted Data in PyYAML); CVE-2020-1747 (Improper Input Validation in PyYAML); CVE-2020-14343 (Improper Input Validation in PyYAML) +5 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
40% confidence
Finding

OSV returned advisories for this package, but its resolved version is unknown. A package-name lookup does not establish whether the installed release is affected by those advisories.

Content

No source excerpt is available for this finding.