T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:19- Finding
Unverified Remote Installer Is Executed Directly by a Shell
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent Ollama fleet setup guide, but it asks users to create persistent root services and open a network port broadly.
Review this skill before installing. It is not evidence of malware, but you should avoid running the curl-to-shell command blindly, pin and verify packages where possible, create a dedicated non-root service account, enable only the router or node role you need, restrict port 11435 to trusted hosts or a VPN, and make sure you know how to disable the systemd services.
SKILL.md:19Unverified Remote Installer Is Executed Directly by a Shell
SKILL.md:27Persistent Root Services Execute Unpinned Third-Party Package Binaries
SKILL.md:179Firewall Rule Exposes the Fleet Service Without Source Restrictions
Piping a remotely fetched script directly into sh executes unreviewed code from the network with no integrity verification, making compromise of the upstream server, transport, or install script immediately dangerous. Because this is part of the primary installation path, it increases the chance users will run arbitrary code without inspection.
# Install Ollama on Ubuntu
curl -fsSL https://ollama.ai/install.sh | sh
# Verify Ollama is running on Ubuntu
ollama --version
The '| sh' construct chains a network fetch directly into shell execution, eliminating review and substantially raising the impact of any upstream compromise or malicious modification. This pattern is especially risky because it is concise, common, and likely to be copied blindly by users.
# Install Ollama on Ubuntu
curl -fsSL https://ollama.ai/install.sh | sh
# Verify Ollama is running on Ubuntu
ollama --version
Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
# Ubuntu Ollama fleet status
curl -s http://localhost:11435/fleet/status | python3 -m json.tool
# Ubuntu Ollama health — 15 automated checks
curl -s http://localhost:11435/dashboard/api/health | python3 -m json.tool
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
curl -s http://localhost:11435/fleet/status | python3 -m json.tool
# Ubuntu Ollama health — 15 automated checks
curl -s http://localhost:11435/dashboard/api/health | python3 -m json.tool
# Ubuntu Ollama models loaded
curl -s http://localhost:11435/api/ps | python3 -m json.tool
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
curl -s http://localhost:11435/dashboard/api/health | python3 -m json.tool
# Ubuntu Ollama models loaded
curl -s http://localhost:11435/api/ps | python3 -m json.tool
# Ubuntu Ollama logs
journalctl -u herd-router -f
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
EOF
# Ubuntu Ollama node service
sudo tee /etc/systemd/system/herd-node.service << 'EOF'
[Unit]
Description=Ubuntu Ollama Node
After=network.target ollama.service
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
EOF
# Ubuntu Ollama node service
sudo tee /etc/systemd/system/herd-node.service << 'EOF'
[Unit]
Description=Ubuntu Ollama Node
After=network.target ollama.service
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
WantedBy=multi-user.target EOF
sudo systemctl enable --now herd-router sudo systemctl enable --now herd-node
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
WantedBy=multi-user.target EOF
sudo systemctl enable --now herd-router sudo systemctl enable --now herd-node
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
print(chunk.choices[0].delta.content or "", end="")
### curl (Ollama format)
```bash
# Ubuntu Ollama inference
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
curl http://localhost:11435/api/generate-image \
-d '{"model": "z-image-turbo", "prompt": "Ubuntu penguin in space", "width": 1024, "height": 1024}'
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
# Ubuntu prerequisites
sudo apt update && sudo apt install python3-pip curl -y
# Install Ubuntu Ollama fleet router
pip install ollama-herd