taint

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package taint traces MCP-reachable values to dangerous sinks across files. It tracks names within functions and seeds resolved callees. Unresolved calls remain in the path at reduced confidence.

Index

Constants

View Source
const TaintWorkLimit = 25_000_000

TaintWorkLimit is how many syntax nodes the taint walk visits before it stops between symbols. The largest trees in the regression set need about 7.5 million; the limit leaves room above that. Counting work, not time, makes the cut point the same on any machine.

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer struct{}

Analyzer traces tool/prompt/resource handler arguments, environment variables, file contents and HTTP response bodies to the sinks listed in catalog.go

func (*Analyzer) Analyze

func (*Analyzer) AppliesTo

func (*Analyzer) AppliesTo(kind model.TargetKind) bool

func (*Analyzer) Describe

func (*Analyzer) Describe() analyzer.Description

func (*Analyzer) Name

func (*Analyzer) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL