Env credential access
- Finding
- Environment variable access combined with network send.
- Content
const token = process.env.TELEGRAM_BOT_TOKEN ?? ''
Security checks across static analysis, malware telemetry, and agentic risk
This home-automation skill is mostly aligned with its purpose, but it grants broad no-confirmation control over home devices and has under-scoped Telegram, credential, and memory behavior.
Install only if you trust this skill to control your Home Assistant environment. Before enabling it, require explicit confirmations for device changes, remove or override the hard-coded Telegram chat ID, use a read-only database credential where possible, and decide whether home observations should be stored in memory.
const token = process.env.TELEGRAM_BOT_TOKEN ?? ''
VirusTotal engine telemetry is currently stale for this artifact.
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
The agent could change lights, climate, media, scenes, or presence state without asking each time.
The skill authorizes the agent to perform home device-control actions without explicit user approval, including broad scene activation and presence-state overrides that can affect the physical home and security-related automations.
You MAY execute these directly without asking the user: ... Scenes: activate any scene ... Presence sensors: override presence state
Require explicit confirmation or a user-defined allowlist for all device mutations, especially scenes, presence overrides, climate changes, and anything that could affect safety or security.
Installing users may not realize the plugin can use a Telegram bot credential to send messages on their behalf.
The plugin reads a Telegram bot token and uses it to act through the Telegram API, while the registry metadata declares no required env vars or primary credential.
const token = process.env.TELEGRAM_BOT_TOKEN ?? '' ... fetch(`https://api.telegram.org/bot${token}/sendMessage`, {Declare TELEGRAM_BOT_TOKEN and TELEGRAM_NOTIFY_CHAT_ID in the skill metadata, document the exact Telegram permissions, and keep notification sending disabled unless explicitly configured.
Home-event messages could be sent to the wrong Telegram chat or fail in a way that hides a misconfiguration.
If no Telegram chat ID is set, the plugin sends notification content to a hard-coded chat ID, making the outbound destination unclear and potentially unintended.
const chatId = process.env.TELEGRAM_NOTIFY_CHAT_ID ?? '35261635' ... body: JSON.stringify({ chat_id: chatId, text: `🏠 ${message}`Remove the hard-coded chat ID default, require an explicit user-provided destination, and show the configured chat before enabling notifications.
Sensitive home activity patterns could be kept and reused across future conversations.
The skill instructs persistent storage of home observations and preferences, which may reveal occupancy, behavior, and device-use patterns, without stating retention, deletion, or user-consent bounds.
Store significant observations (anomalies, patterns, user preferences) in Hindsight using `memory_store` with bank `home-assistant`
Ask before storing home observations, minimize what is saved, add retention/deletion guidance, and avoid storing occupancy or security-sensitive details by default.
Home entity names and activity counts may appear in the agent's context even when the user only loosely mentions a home-related keyword.
The plugin can automatically insert home database entity context into prompts when home-related keywords are detected; this is purpose-aligned but exposes private home metadata to the model context.
api.on('before_prompt_build' ... HA_KEYWORDS ... prependContext: ['<home-context>', 'TimescaleDB has historical data for these top entities:'Make context injection opt-in or clearly configurable, and keep injected context limited to the minimum needed for the current request.