MLX Local AI

Security checks across malware telemetry and agentic risk

Overview

This local AI skill is mostly purpose-aligned, but it should be reviewed because it trusts remote model code and starts an embedding server file that is not included in the package.

Install only if you are comfortable running local shell scripts and Python packages from external sources. Before starting it, review or remove --trust-remote-code, confirm what ~/embedding_server.py is, and understand that the services will keep running in the background until stopped.

VirusTotal

VirusTotal findings are pending for this skill version.

View on VirusTotal

Risk analysis

Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.

#
ASI05: Unexpected Code Execution
High
What this means

Starting the local chat server may execute remote model code, not just load model weights.

Why it was flagged

The service starts MLX-LM with --trust-remote-code, which can allow code associated with the model repository to run locally with the user's privileges. The SKILL.md quick-start does not call out this trust boundary.

Skill content
nohup python -m mlx_lm.server \
            --model mlx-community/Qwen3.5-4B-OptiQ-4bit \
            --trust-remote-code
Recommendation

Only install from a publisher you trust, pin model revisions where possible, remove --trust-remote-code unless it is strictly required, and disclose this behavior in the user-facing instructions.

#
ASI04: Agentic Supply Chain Vulnerabilities
Medium
What this means

The embedding service may fail to start, or it may run a pre-existing/unreviewed ~/embedding_server.py file instead of reviewed package code.

Why it was flagged

The start script executes a home-directory embedding_server.py, but the supplied file manifest does not include scripts/embedding_server.py. install.sh also warns that embedding_server.py may be missing, so the runnable embedding service is not fully represented in the reviewed package.

Skill content
nohup python ~/embedding_server.py > "$LOG_DIR/embedding.log" 2>&1 &
Recommendation

Include the embedding server implementation in the package, execute it from the skill directory or virtual environment with a clear path, and avoid running arbitrary home-directory files.

#
ASI04: Agentic Supply Chain Vulnerabilities
Low
What this means

Different installs may receive different package or model versions, and compromise or changes in those sources could affect the local environment.

Why it was flagged

The installer pulls unpinned Python dependencies and uses an external Hugging Face mirror. This is expected for a local ML/LLM setup, but it means the installed code and model artifacts depend on live external supply-chain sources.

Skill content
pip install mlx mlx-lm
...
pip install sentence-transformers
...
pip install flask requests numpy
...
HF_MIRROR="https://hf-mirror.com"
Recommendation

Pin package versions and model revisions, provide hashes or a lockfile where practical, and tell users which external sources are contacted.

#
ASI10: Rogue Agents
Low
What this means

Local AI services may keep using memory/CPU and listening on local ports until stopped.

Why it was flagged

The skill intentionally starts background services that continue running after the command returns. This is consistent with a local AI service manager, but it is persistent runtime behavior.

Skill content
nohup python ~/embedding_server.py > "$LOG_DIR/embedding.log" 2>&1 &
...
nohup python -m mlx_lm.server ... --port 8080 > "$LOG_DIR/chat.log" 2>&1 &
Recommendation

Use the documented stop command when finished, and check the status/logs if resource use is unexpected.

#
ASI02: Tool Misuse and Exploitation
Low
What this means

Stopping the service could accidentally stop another local process with a similar command name.

Why it was flagged

The stop command terminates processes by pattern rather than by recorded PID. This is common in simple service scripts but can affect unrelated processes with matching command lines.

Skill content
pkill -f "mlx_lm.server"
...
pkill -f "embedding_server.py"
Recommendation

Track service PIDs in a pidfile and stop only the processes started by this skill.