Primitives for modeling sources of untrusted (tainted) data

Coverity Documentation

Version
latest

To model untrusted data sources, you can use the TaintSource() primitive, described in Go security primitives. TaintSource() primitive models a method that returns a string-like or a simple collection object that the analysis treats as tainted data.

Most taint types can be trusted or distrusted using the cov-analyze command's trust or distrust command-line options; for example, --trust-http and --distrust-http. These options are described in the Coverity Command Reference.