The skill contains hardcoded credentials, executes unverified remote code, lacks necessary security constraints for network and file access, and enables sensitive data exfiltration via configurable API endpoints.
Findings (8)
Semantic Manipulation
Criticaltargets Reasoning
The provided code contains hardcoded credentials, which contradicts secure development practices for an SDK intended to handle API keys.
The static analysis summary explicitly identifies '[critical] python-hardcoded-credentials — Hardcoded credentials detected.'
Description contains a long keyword list that may be designed to trigger the skill for unrelated queries.
Behavioural Control
Criticaltargets Action
Hardcoded credentials detected. Passwords, API keys, and secrets should not be hardcoded in source code. Use environment variables or a secrets manager instead.
api_key="your_access_token_here"
The skill provides instructions to execute arbitrary MCP servers via `npx -y`, which downloads and runs unverified code from the npm registry with the agent's permissions.
tools = await ai.mcp.get_stdio_tools("npx", "-y", "@anthropic/mcp-server-filesystem", ...)The `ai.get_provider` function allows configuring a custom `base_url` and `api_key`, which could be used to route sensitive model traffic or credentials to an attacker-controlled endpoint.
provider = ai.get_provider("openai", base_url="http://localhost:1234/v1", api_key="your_access_token_here")Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.
Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.
Hygiene
Infotargets Packaging & Manifest
Skill does not specify a license field. Specifying a license helps users understand usage terms.