T09 · Insecure Skill Coding Practices
- Location
scripts/dividends.py:115- Finding
API Credential Can Be Redirected to an Arbitrary Network Endpoint
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This dividend-analysis skill is mostly coherent, but an undocumented endpoint override can redirect the user's AISA API key and requests to another server.
Review before installing. Use it only in an environment where AISA_BASE_URL cannot be set by untrusted shell startup files, wrappers, CI variables, or other users, and consider pinning the openai dependency. Expect ticker prompts and the AISA_API_KEY-backed request to leave the machine for the AISA service.
scripts/dividends.py:115API Credential Can Be Redirected to an Arbitrary Network Endpoint
scripts/dividends.py:2Security-Sensitive Runtime Dependency Is Not Reproducibly Pinned
Without declared permissions the skill's intent is opaque and cannot be validated.
The manifest description and the markdown instructions are presented only in Chinese, which effectively forces a specific language for users of the skill. The policy requires either a user language choice/opt-in or a clearly documented justification for the locale restriction, neither of which appears here.
The manifest sets the skill language to "zh", which indicates a fixed language/locale choice. In this file there is no accompanying opt-in, alternative language option, or justification that the skill is intentionally region-specific.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
print("❌ Error: AISA_API_KEY environment variable is not set.", file=sys.stderr)
print(" Set it with: export AISA_API_KEY=your_key_here", file=sys.stderr)
sys.exit(1)
base_url = os.environ.get("AISA_BASE_URL", "https://api.aisa.one/v1")
return OpenAI(api_key=api_key, base_url=base_url)