resk-llm-ts Offers 11-Layer Security Middleware for TypeScript LLM Endpoints
RESK Security has released resk-llm-ts, an open-source TypeScript library designed to protect large language model endpoints from common AI-specific threats. The package installs as middleware and intercepts every user request before it reaches an LLM provider, running it through 11 independent threat detectors. These detectors cover a range of risks including prompt injection, PII leakage, system prompt extraction, toxic content, and phishing URLs, each of which can be enabled or disabled individually. The library is compatible with popular frameworks such as Express and Hono, requires Node.js 18 or higher, and carries no external dependencies beyond TypeScript 5.x. Released under the GPL-3.0 license, the project is available on npm and GitHub.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in