Model theft

From thejefflarson/soundcheck · View interactive version

Model theft is an AI agent skill from the GitHub repository thejefflarson/soundcheck. Detects inference endpoints without authentication or throttling, allowing model weight reconstruction. Use when writing inference API endpoints, deploying LLM-serving infrastructure, implementing model access controls, or configuring rate limiting and authentication for model endpoints.

How to use this skill

Skill file

Model Theft (OWASP LLM10:2025)

What this checks

Prevents unauthorized replication of proprietary models through API abuse. Unauthenticated

or unthrottled inference endpoints let attackers systematically query a model to

reconstruct its weights or distill a clone — stealing the commercial and IP value

of the deployment.

Vulnerable patterns

Fix immediately

Flag the vulnerable code and explain the risk. Then suggest a fix that establishes

these properties:

  1. Every inference endpoint requires authentication — API key, bearer token,

or mTLS. Unauthenticated endpoints are free training data for anyone who wants

to clone the model.

  1. Rate limits are keyed on the authenticated principal, not the IP. IP-only

throttles are defeated by rotating proxies and residential IP pools; a

per-user or per-key quota follows the attacker even as IPs churn.

  1. Extraction-signal fields are stripped from responses. Log-probabilities,

full embedding vectors, and per-token probabilities are the primary signals

distillation attacks use to reconstruct a model. If a caller does not strictly

need them, do not return them.

  1. Query patterns are monitored for extraction signatures — high-volume,

low-entropy, systematic grid-search probes. Alerts fire on anomalies; the

handler records user identity, timestamp, and prompt (or a content

fingerprint) for after-the-fact investigation.

Translate each principle to the serving framework, auth provider, and rate-limiter

of the audited file. Use the framework's documented authentication and throttling

middleware — do not roll your own.

Verification

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.