CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.10.1 (changelog, source)
Search

Module Anthropic

Provides classes modeling security-relevant aspects of the @anthropic-ai/sdk package. See https://github.com/anthropics/anthropic-sdk-typescript

Structurally typed sinks (system, beta.agents) have been moved to Models as Data: javascript/ql/lib/ext/anthropic.model.yml

This file retains only role-filtered message sinks that require inspecting a sibling role property, which MaD cannot express.

Import path

import semmle.javascript.frameworks.Anthropic

Modules

Anthropic

Provides classes modeling prompt-injection sources of the @anthropic-ai/sdk package.