Back to skill

Security audit

Bittensor Sn85 Vibe Miner

Security checks for vulnerabilities and agentic risk

Overview

This mining guide is mostly purpose-aligned, but it gives users risky deployment steps involving wallet material, root access, public services, and unverified software installs on a rented host.

Review carefully before installing. Use dedicated low-value miner hotkeys only, never copy coldkey or broad wallet directories to a rented instance, pin and verify all downloaded code and binaries, avoid running the miner as root, expose only the required ports with appropriate network controls, and do not overwrite system DNS without a backup and rollback plan.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (4)

T03 · Remote Payload Retrieval and Execution

Error
Location
SKILL.md:112
Finding

Mutable FFmpeg Release Is Installed System-Wide Without Integrity Verification

Content
View full analysis
Remediation
View remediation
ffmpeg-release.tar.xz' | sha256sum --check - ``` 3. Prefer upstream signature verification where signed artifacts are available. 4. Download with failure handling and secure transport settings, such as `curl --fail --location --proto '=https'`. 5. Extract into a newly created application-owned directory rather than a shared `/tmp` path. 6. Install only the required `ffmpeg` and `ffprobe` files under a dedicated versioned directory, such as `/opt/vidaio/ffmpeg//bin`. 7. Run the miner under a dedicated unprivileged account and reference the binaries through an explicit absolute path. 8. Do not copy every file from an externally supplied `bin` directory into `/usr/local/bin`. ]]>

T08 · Insecure Dependencies

Warning
Location
SKILL.md:94
Finding

Unpinned Repository Code and Python Dependencies Are Installed Without Reproducible Verification

Content
View full analysis
Remediation
View remediation
``` 2. Verify signed commits or signed release tags when supported. 3. Generate and review a complete dependency lock file. 4. Install Python packages with hashes, for example through a requirements file using `pip install --require-hashes`. 5. Record hashes and trusted origins for automatically downloaded NCNN model files. 6. Disable automatic model downloads in production where possible; provision verified models during a controlled build stage. 7. Build the environment as an unprivileged service account rather than under `/root`. 8. Re-audit and explicitly update pinned versions instead of tracking mutable branches. ]]>

T05 · Unauthorized Access and Privilege Escalation

Error
Location
SKILL.md:105
Finding

Entire Bittensor Wallet Directory Is Copied to a Third-Party Root Host

Content
View full analysis
-r ~/.bittensor/wallets/moltypython root@:/root/.bittensor/wallets/ ``` ### Technical Analysis The command recursively transfers the complete named Bittensor wallet directory to a rented Vast.ai instance and stores it in the root account. The declared miner operation requires only dedicated operational hotkeys. Recursively copying the wallet directory may also transfer coldkey data, unrelated hotkeys, metadata, or other wallet material that is unnecessary for mining. SSH/SCP provides transport encryption, so the primary issue is not plaintext network exposure. The issue is excessive credential scope and placement of sensitive wallet data on a third-party host with a broad root security boundary. ### Attack Path 1. The user creates a wallet containing the coldkey and the two miner hotkeys described by the Skill. 2. The user follows the recursive `scp` command. 3. All files under the wallet directory are copied to the rented instance, including any material not needed by the miner. 4. The cloud provider, a compromised host image, an exposed root SSH service, a malicious dependency, or another root-level process accesses the copied files. 5. If keys are usable or their passwords are subsequently exposed, the attacker impersonates hotkeys or accesses wallet capabilities represented by the transferred material. ### Impact Assessment At minimum, compromise may expose miner identities and allow hotkey impersonation, unauthorized subnet operations, or disruption of mining activity. If transferable coldkey material is included and can be unlocked, the impact may extend to wallet ownership and financial assets. The scope is greater than necessary because the entire wallet directory is copied to a ...[truncated 41 chars]
Remediation
View remediation

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:241
Finding

Global DNS Configuration Is Overwritten with Public Resolvers

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (9)

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

Scanner excerpt · SKILL.md (reported line 244)May include surrounding context.

4. DNS Fix (Docker resolver issue)

bash
echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" | sudo tee /etc/resolv.conf

Monitoring

Session Persistence

Medium
Category
Rogue Agent
Confidence
78% confidence
Finding

The skill instructs the creation and ongoing use of persistent wallet identities and hotkeys on a remote mining setup, which creates long-lived authentication material that may remain accessible on disk and across restarts. In this context, session or key persistence is risky because the same credentials are later copied to a rented host, increasing exposure if the machine is compromised or reused.

Content

Scanner excerpt · SKILL.md (reported line 31)May include surrounding context.

bash
# Bittensor wallet with at least 0.4τ for registration
btcli wallet create --wallet.name moltypython
btcli wallet new_hotkey --wallet.name moltypython --hotkey mining
btcli wallet new_hotkey --wallet.name moltypython --hotkey mining2

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill explicitly instructs the user to expose backend miner services publicly through Caddy and to remove authentication so remote validators can reach them, but it does not clearly warn that this makes the services internet-accessible. Publicly exposing Flask-backed services handling video workloads increases attack surface for unauthorized access, denial of service, and exploitation of any latent service vulnerabilities.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 73)May include surrounding context.

bash
# Edit /etc/caddy/Caddyfile
sudo tee /etc/caddy/Caddyfile << 'EOF'
:8384 {
    reverse_proxy localhost:19000
}

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 83)May include surrounding context.

bash
# Edit /etc/caddy/Caddyfile
sudo tee /etc/caddy/Caddyfile << 'EOF'
:8384 {
    reverse_proxy localhost:19000
}

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · SKILL.md (reported line 117)May include surrounding context.

bash
# Edit /etc/caddy/Caddyfile
sudo tee /etc/caddy/Caddyfile << 'EOF'
:8384 {
    reverse_proxy localhost:19000
}

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill tells the user to copy local Bittensor wallet material onto a rented remote host without a prominent warning about private key compromise risk. Moving hotkeys or wallet data to a third-party GPU rental instance materially increases the chance of credential theft through host compromise, malicious images, reused snapshots, or accidental exposure by the operator.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
91% confidence
Finding

The command overwrites /etc/resolv.conf via sudo using piped input, which can disrupt system name resolution and redirects a critical network configuration file without validation or backup. In the context of a rented host, this can break connectivity, interfere with platform-managed DNS settings, or be repurposed to steer name resolution in unsafe ways.

Content

Scanner excerpt · SKILL.md (reported line 244)May include surrounding context.

4. DNS Fix (Docker resolver issue)

bash
echo -e "nameserver 8.8.8.8\nnameserver 1.1.1.1" | sudo tee /etc/resolv.conf

Monitoring

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The script makes an undisclosed external network request to ifconfig.me to determine the host's public IP. Even though the request appears operationally convenient, it leaks host metadata to a third party, creates an external dependency, and may violate expectations in restricted or privacy-sensitive environments.

Content

No source excerpt is available for this finding.