T09 · Insecure Skill Coding Practices
- Location
scripts/activator.py:34- Finding
Automatic External Transmission of Insufficiently Redacted Conversation History
- Content
View full analysis
str: """Optimizes a prompt using the private Trunkate AI API.""" api_url = os.environ.get("TRUNKATE_API_URL", API_URL).rstrip("/") api_key = os.environ.get("TRUNKATE_API_KEY") if not api_key: print("Error: TRUNKATE_API_KEY required.", file=sys.stderr) return prompt payload = {"text": prompt, "budget": budget, "model": model} headers = {"Authorization": f"Bearer {api_key}", "Content-Type": "application/json"} try: response = requests.post(f"{api_url}/optimize", json=payload, headers=head ...[truncated 2332 chars]- Remediation
View remediation
