Back to skill

Security audit

Batch Image Processing

Security checks for vulnerabilities and agentic risk

Overview

The skill performs the disclosed image processing within the chosen workspace, preserves originals, and shows no malicious behavior.

Use a dedicated Python environment and review installer and dependency versions. Process only intended workspace files. Exports and receipts remain locally until removed; output metadata is stripped, and a strict byte limit may reduce image dimensions.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
Findings (7)

MCP server referenced without pinned version: 'npx clawhub'.

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding

The installation command uses npx clawhub@latest, which downloads and executes a mutable package version rather than a reviewed, pinned release. A compromised future release could execute code with the installing user's permissions and access workspace files or credentials. This is a supply-chain exposure in an installation instruction, not evidence of an MCP server or malicious behavior in this skill.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx clawhub'.

Medium
Category
MCP Rug Pull
Confidence
93% confidence
Finding

The documented installation command uses npx clawhub@latest, allowing a changing package version to execute with the invoking user's permissions. Although this is an installation CLI rather than an MCP server, a compromised future release could access workspace files or modify installed skills; the README provides no evidence of malicious intent.

Content

No source excerpt is available for this finding.

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

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.

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 · tests/smoke.py (reported line 8)May include surrounding context.

python
def setUp(self):
  root=Path(os.environ.get('MOCHI_TEST_WORK',str(Path.cwd()/'.mochi-package-tests')));self.w=root/('sample space '+str(uuid.uuid4()));self.w.mkdir(parents=True);shutil.copytree(BASE/'samples',self.w/'samples');self.job=json.loads((self.w/'samples/request.json').read_text(encoding='utf8'))
 def call(self):
  (self.w/'input.json').write_text(json.dumps(self.job),encoding='utf8');return subprocess.run([sys.executable,str(BASE/'scripts/run.py'),'--workspace',str(self.w),'--input','input.json'],capture_output=True,text=True,encoding='utf8')
 def test_sample_cli_creates_verifiable_files(self):
  p=self.call();self.assertEqual(p.returncode,0,p.stderr);r=json.loads(p.stdout)
  for f in r['files']:

Tainted flow: 'self.w' from os.environ.get (line 6, 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 · tests/smoke.py (reported line 8)May include surrounding context.

python
def setUp(self):
  root=Path(os.environ.get('MOCHI_TEST_WORK',str(Path.cwd()/'.mochi-package-tests')));self.w=root/('sample space '+str(uuid.uuid4()));self.w.mkdir(parents=True);shutil.copytree(BASE/'samples',self.w/'samples');self.job=json.loads((self.w/'samples/request.json').read_text(encoding='utf8'))
 def call(self):
  (self.w/'input.json').write_text(json.dumps(self.job),encoding='utf8');return subprocess.run([sys.executable,str(BASE/'scripts/run.py'),'--workspace',str(self.w),'--input','input.json'],capture_output=True,text=True,encoding='utf8')
 def test_sample_cli_creates_verifiable_files(self):
  p=self.call();self.assertEqual(p.returncode,0,p.stderr);r=json.loads(p.stdout)
  for f in r['files']:

Scope Creep

Low
Category
Excessive Agency
Confidence
70% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

Scanner excerpt · LICENSE (reported line 7)May include surrounding context.

text
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Unverifiable Dependency: Pillow has 194 known advisory(ies) (CVE-2026-112390 (Pillow: Infinite loop in MIC n_frames when the embedded TIFF); CVE-2026-96638 (Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / ab); CVE-2026-112391 (Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tr) +191 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.