Back to skill

Security audit

发布前侵权审核 Release Infringement Audit

Security checks for vulnerabilities and agentic risk

Overview

This skill is a coherent pre-release audit tool that scans a project locally for license, asset, trademark, and secret-leak risks, with optional npm registry lookup that is disclosed and opt-in.

Before installing, be aware that this skill will read the project you point it at, including local configuration files that may contain secrets, so use it only on repositories you intend to audit. Keep the default offline mode unless you are comfortable sending dependency names and versions to the npm registry with --online.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

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

python
"dist", "build", ".dsh", "paperclip-data", ".pycache"}
TEXT_EXTS = {".js", ".ts", ".jsx", ".tsx", ".mjs", ".cjs", ".py", ".sh",
             ".md", ".txt", ".json", ".yml", ".yaml", ".html", ".css",
             ".svg", ".rb", ".go", ".java", ".toml", ".ini", ".cfg", ".env"}
# B 类(代码溯源)只认源码文件:文档/测试夹具里「提到」的许可证示例不是许可证头
SOURCE_EXTS = {".js", ".mjs", ".cjs", ".ts", ".tsx", ".jsx", ".py", ".sh",
               ".rb", ".go", ".java", ".c", ".h", ".cpp", ".hpp", ".rs",

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill advertises and documents shell execution, file access, optional network access, and report writing, but it does not declare any explicit tool scope such as permissions or allowed-tools. That creates an authorization gap where an agent or runtime may grant broader capabilities than reviewers expect, increasing the risk of arbitrary command execution, reading sensitive files from the audited project, writing files, or making network requests when invoked in permissive environments.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The document says all verdicts are anchored to this file and independent verification must use 'the original text of this file,' while the file content is written in Chinese. That effectively imposes a specific language for authoritative operation without indicating any user choice, opt-in, or justified locale constraint.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

This markdown file states a secrets-handling policy of 'revoke first, then clean' and discusses detection of key patterns, which implies the skill may inspect credentials and recommend or initiate disruptive remediation. The description does not include a user-facing warning about privacy impact from scanning secrets or the operational impact of revoking exposed keys.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file’s natural-language description and user-facing usage/documentation are written entirely in Chinese, indicating the skill is intended to operate in a fixed language/locale. Under the policy, forcing a specific language without offering user choice or documenting opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/selftest.py (reported line 251)May include surrounding context.

python
(d / "package.json").write_text(
                    json.dumps({"name": name, "version": "1.0.0", "license": lic}),
                    encoding="utf-8")
        proc = subprocess.run(
            [sys.executable, str(AUDIT), str(tmp), "--format", "json"],
            capture_output=True, text=True, timeout=120)
        if proc.returncode not in (0, 1, 2):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/selftest.py (reported line 287)May include surrounding context.

python
(d / "package.json").write_text(
                    json.dumps({"name": name, "version": "1.0.0", "license": lic}),
                    encoding="utf-8")
        proc = subprocess.run(
            [sys.executable, str(AUDIT), str(tmp), "--format", "json"],
            capture_output=True, text=True, timeout=120)
        if proc.returncode not in (0, 1, 2):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/selftest.py (reported line 313)May include surrounding context.

python
(d / "package.json").write_text(
                    json.dumps({"name": name, "version": "1.0.0", "license": lic}),
                    encoding="utf-8")
        proc = subprocess.run(
            [sys.executable, str(AUDIT), str(tmp), "--format", "json"],
            capture_output=True, text=True, timeout=120)
        if proc.returncode not in (0, 1, 2):

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/selftest.py (reported line 334)May include surrounding context.

python
(d / "package.json").write_text(
                    json.dumps({"name": name, "version": "1.0.0", "license": lic}),
                    encoding="utf-8")
        proc = subprocess.run(
            [sys.executable, str(AUDIT), str(tmp), "--format", "json"],
            capture_output=True, text=True, timeout=120)
        if proc.returncode not in (0, 1, 2):