Why it matters
Listed so that AI use in code is inventoried and reviewed; it is not a vulnerability by itself.
How to fix it
Confirm the provider is approved for the data this code sends to it, and record it in your AI inventory. Suppress the finding once reviewed.
Example
The rule's own test fixtures, verbatim: the test suite requires the rule to report the first and not the second.
package fixture
import "github.com/anthropics/anthropic-sdk-go"
var client = anthropic.NewClient()package fixture
import "net/http"
var client = &http.Client{}What TrustIvan reads
Runs on repository scans of Go source once static analysis is turned on (SAST_RULES and the separately built analyzer image); it is off by default.
Weakness classes and references
Related checks
- Template HTML non literal (Go)
GoSeverity: Medium
trustivan-go-template-html-non-literal - Llm output to sink from request input (Go)
GoSeverity: High
trustivan-go-taint-llm-output-to-sink - CSRF insecure cookie (Go)
GoSeverity: Medium
trustivan-go-csrf-insecure-cookie - Llm prompt injection system from request input (Go)
GoSeverity: Medium
trustivan-go-taint-llm-prompt-injection-system - JWT hardcoded secret (Go)
GoSeverity: High
trustivan-go-jwt-hardcoded-secret - CORS wildcard credentials (Go)
GoSeverity: High
trustivan-go-cors-wildcard-credentials
Terms: SAST (static application security testing), Taint analysis, CWE (Common Weakness Enumeration), OWASP Top 10
All static analysis (SAST) checks · The whole catalogue · How this works in TrustIvan · Documentation