Back to skill

Security audit

NullGreen

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because its verifier reportedly runs untrusted submissions with the verifier account’s host privileges, creating security and persistence concerns.

Consider the verdict’s recommendation not to install. The scans completed with full reported component coverage, and they identify serious execution-isolation and validation concerns; the results do not establish malicious intent.

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

Error
Location
verifier.py
Finding

Untrusted submissions execute with the verifier account's host privileges

Content
View full analysis

Impact

A submission can read or modify files accessible to the verifier account outside the temporary directory, transmit accessible data over the network, or spawn processes. These actions execute before output comparison, so rejecting the submission does not prevent them.

Vulnerability Patterns
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (7)

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/pre_publish_gate.py (reported line 86)May include surrounding context.

python
"""Load the mutation registry without importing pytest or running tests."""
    path = os.path.join(ROOT, "tests", "test_external_gate_mutation.py")
    spec = importlib.util.spec_from_file_location("_zh_mutants", path)
    mod = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(mod)
    return mod

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · scripts/pre_publish_gate.py (reported line 87)May include surrounding context.

python
path = os.path.join(ROOT, "tests", "test_external_gate_mutation.py")
    spec = importlib.util.spec_from_file_location("_zh_mutants", path)
    mod = importlib.util.module_from_spec(spec)
    spec.loader.exec_module(mod)
    return mod

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

python
fd, out_path = tempfile.mkstemp(prefix="zhevh_clean_", suffix=".json")
    os.close(fd)
    try:
        p = subprocess.run(
            [
                sys.executable,
                os.path.abspath(__file__),

Tainted flow: 'env' from os.environ (line 574, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · scripts/pre_publish_gate.py (reported line 579)May include surrounding context.

python
fd, out_path = tempfile.mkstemp(prefix="zhevh_clean_", suffix=".json")
    os.close(fd)
    try:
        p = subprocess.run(
            [
                sys.executable,
                os.path.abspath(__file__),

The supposedly parent-authenticated recursion guard accepts any nonempty environment value, allowing callers to bypass the clean-environment check.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The recursion guard checks only whether ZHEHV_CLEAN_ENV_CHILD is nonempty, not whether a trusted parent actually launched the process. A caller can supply that variable with --skip-clean-env, causing the missing check to be accepted and potentially obtaining a passing publish verdict without the promised clean-environment validation.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
99% confidence
Finding

The subprocess imports and executes submission-controlled Python with the host user's privileges and no operating-system sandbox. A temporary working directory, environment scrubbing, and a timeout do not prevent reading host files, modifying the gate, accessing the network, or launching surviving child processes; this is especially dangerous in a verifier intended to process untrusted artifacts.

Content

Scanner excerpt · verifier.py (reported line 73)May include surrounding context.

python
)
            workdir = tempfile.mkdtemp(prefix="zhevh_run_")
            try:
                p = subprocess.run(
                    [sys.executable, "-c", probe, path, task["input"]],
                    capture_output=True, text=True, timeout=20,
                    env=_runner_env(), cwd=workdir,

Tainted flow: '_runner_env()' from os.environ (line 33, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · verifier.py (reported line 73)May include surrounding context.

python
)
            workdir = tempfile.mkdtemp(prefix="zhevh_run_")
            try:
                p = subprocess.run(
                    [sys.executable, "-c", probe, path, task["input"]],
                    capture_output=True, text=True, timeout=20,
                    env=_runner_env(), cwd=workdir,