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.
from openai import OpenAI
client = OpenAI()import requests
def fetch(url):
return requests.get(url, timeout=5).json()What TrustIvan reads
Runs on repository scans of Python 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
- CORS wildcard credentials (Python)
PythonSeverity: High
trustivan-python-cors-wildcard-credentials - Llm output to sink from request input (Python)
PythonSeverity: High
trustivan-python-taint-llm-output-to-sink - Weak RSA key (Python)
PythonSeverity: Medium
trustivan-python-weak-rsa-key - Llm prompt injection system from request input (Python)
PythonSeverity: Medium
trustivan-python-taint-llm-prompt-injection-system - JWT hardcoded secret (Python)
PythonSeverity: High
trustivan-python-jwt-hardcoded-secret - Llm tool shell execution (Python)
PythonSeverity: Medium
trustivan-python-llm-tool-shell-execution
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