VA

vastai-security-basics

Security guidelines for protecting Vast.ai credentials and infrastructure access.

Install

mkdir -p .claude/skills/vastai-security-basics && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/3076" && unzip -o skill.zip -d .claude/skills/vastai-security-basics && rm skill.zip

Installs to .claude/skills/vastai-security-basics

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Apply Vast.ai security best practices for API keys and instance access.
71 charsno explicit “when” trigger
Intermediate

Key capabilities

  • →Prevent API keys from being committed to git
  • →Load API keys from environment variables
  • →Generate dedicated SSH key pairs for Vast.ai
  • →Securely wipe data before destroying instances
  • →Use SSH tunnels for services on instances
  • →Encrypt training data before upload

How it works

The skill provides instructions and code examples for managing API keys as environment variables, generating and uploading dedicated SSH keys, and implementing secure data cleanup procedures for Vast.ai instances.

Inputs & outputs

You give it
Vast.ai API keys, SSH access to GPU instances, and data on rented hardware
You get back
Securely managed API keys, hardened SSH access, and protected data on Vast.ai instances

When to use vastai-security-basics

  • →Secure Vast.ai API keys
  • →Harden SSH access for GPU instances
  • →Audit security configurations

About this skill

Vast.ai Renter Security Boundary

Overview

A Vast.ai renter controls credentials and workload configuration but does not own the physical host. Apply least privilege, prefer verified datacenters for sensitive data, encrypt critical material, and assume destroyed local storage is not a substitute for external recovery.

Prerequisites

  • Data classification and decision on whether shared marketplace hardware is permitted
  • Scoped API-key and dedicated SSH-key owners
  • Approved image provenance, secret injection, network exposure, and checkpoint controls

Instructions

Step 1: Constrain the control plane

Create named scoped keys with only needed permission categories and endpoint constraints. Separate human, CI, monitoring, and deployment identities.

Step 2: Establish SSH trust

Register a dedicated public key before creation, protect the private key, resolve the current connection endpoint, and validate host identity according to policy.

Step 3: Verify workload provenance

Use an immutable image digest, scan it, document its entrypoint, and keep registry, model, and storage credentials out of image layers and startup text.

Step 4: Limit host and network exposure

Prefer verified datacenters for sensitive workloads, expose only required ports, and avoid placing secrets or regulated plaintext on untrusted hosts.

Step 5: Protect recoverability

Encrypt critical data, scope storage credentials to a run prefix, and checkpoint externally before stop, expiry, host failure, or destroy.

Step 6: Rotate and close

Revoke temporary keys, remove obsolete SSH keys and environment variables, verify resource destruction, and retain a redacted audit receipt.

Authentication

API keys are password-equivalent and do not expire by default. Environment injection is appropriate for CI, but logs, shell traces, generated curl commands, and debug bundles must remain secret-free.

Tool Discipline

Use Read and Grep to inspect manifests, configuration, provider output, and existing tests before proposing a mutation. Use Write or Edit only for the approved plan, implementation, test, or redacted receipt; do not create, update, destroy, or fund Vast.ai resources without explicit operator approval.

Output

  • Threat and data-placement decision
  • Credential, SSH, image, host, network, and storage controls
  • Positive/negative access tests plus teardown receipt

Return workload class, selected host trust tier, key IDs/scopes, image digest, exposed ports, checkpoint destination, and cleanup outcome.

Examples

A sensitive training canary uses a verified datacenter, immutable image digest, constrained instance key, dedicated SSH key, encrypted dataset, prefix-scoped checkpoint credential, and confirmed credential revocation after teardown.

Error Handling

FailureResponse
Workload is not allowed on shared hardwareStop before provisioning and choose an approved environment.
Image identity is mutablePin a digest and repeat security review.
Secret appears in a trace or imageRevoke it, scrub artifacts, rebuild the image, and investigate exposure.
External checkpoint is missingDo not destroy until recovery evidence exists, unless incident containment requires it.

Resources

Prerequisites

Vast.ai account with API keyUnderstanding of SSH key management

Limitations

  • →API key can be leaked if committed to git
  • →SSH key can be rejected if not uploaded or wrong key is used
  • →Data can be left on destroyed instance if cleanup is forgotten

How it compares

This skill offers specific security patterns for Vast.ai's shared hardware environment, including secure cleanup and key management, which differs from generic cloud security advice.

Compared to similar skills

vastai-security-basics side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vastai-security-basics (this skill)32moReviewIntermediate
reverse-engineering-tools735moNo flagsAdvanced
game-hacking-techniques424moNo flagsAdvanced
solidity-security154moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore →

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

You might also like

reverse-engineering-tools

gmh5225

Guide for reverse engineering tools and techniques used in game security research. Use this skill when working with debuggers, disassemblers, memory analysis tools, binary analysis, or decompilers for game security research.

73204

game-hacking-techniques

gmh5225

Guide for game hacking techniques and cheat development. Use this skill when researching memory manipulation, code injection, ESP/aimbot development, overlay rendering, or game exploitation methodologies.

42128

solidity-security

wshobson

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

15115

1password

openclaw

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.

2799

senior-security

davila7

Comprehensive security engineering skill for application security, penetration testing, security architecture, and compliance auditing. Includes security assessment tools, threat modeling, crypto implementation, and security automation. Use when designing security architecture, conducting penetration tests, implementing cryptography, or performing security audits.

3191

ghidra

mitsuhiko

Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI.

16105

Search skills

Search the agent skills registry