T09 · Insecure Skill Coding Practices
- Location
scripts/daily-review.js:16- Finding
Private Conversation Data and API Credentials Can Be Sent to an Unrestricted External Host
- Content
View full analysis
{ const data = JSON.stringify({ model: LLM_CONFIG.model, messages: [{ role: 'user', content: prompt }], max_tokens: 100, temperature: 0.1 }); const options = { hostname: LLM_CONFIG.baseUrl, port: 443, path: '/v1/chat/completions', method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${LLM_CONFIG.apiKey}` } }; const req = https.request(options, (res) => { let body = ''; res.on('data', chunk => body += chunk); res.on('end', () => { try { const json = JSON.parse(body); const content = j ...[truncated 2788 chars]- Remediation
View remediation
