switchbot
Pass
Audited by Gen Agent Trust Hub on Apr 27, 2026
Risk Level: SAFE
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill makes network requests exclusively to
api.switch-bot.com, which is the official endpoint for the SwitchBot Cloud API service. These requests are used for device discovery and control as described in the skill's purpose. - [CREDENTIALS_UNSAFE]: The skill instructs the user to store API credentials in a local configuration file (
~/.config/switchbot/credentials.json) and correctly recommends restrictive file permissions (chmod 600) to protect the data. This follows standard security best practices for local secret management. - [COMMAND_EXECUTION]: The Python script uses
sys.argvto parse command-line arguments for device IDs and commands. These inputs are passed directly tourllib.requestfor API calls or used in conditional logic, with no shell execution (os.systemorsubprocess.run) of untrusted input detected.
Audit Metadata