T03 · Remote Payload Retrieval and Execution
- Location
README.md:12- Finding
Mutable Remote Script Download Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill appears to do what it claims, but it handles Hacker News credentials and session cookies and includes a risky unpinned script-download path.
Review before installing. Use this only with an account you are comfortable posting from through an agent, avoid putting the password on the command line, protect or delete the cookie file after use, and prefer the packaged ClawHub install over the README's raw GitHub curl command unless the downloaded script is pinned and verified.
README.md:12Mutable Remote Script Download Without Integrity Verification
scripts/hn.py:14Session Cookies Persisted Without Explicit Owner-Only Permissions
scripts/hn.py:143Password Accepted Through a Command-Line Argument
The README instructs users to place Hacker News credentials in environment variables but provides no warning about their sensitivity, storage lifetime, or leakage risks. In agent and CI environments, environment variables are commonly exposed to subprocesses, logs, crash reports, shell history, or debugging output, which can lead to account compromise if the credentials are reused or insufficiently protected.
The skill declares no explicit tool scope or permission boundaries even though it clearly requires access to environment secrets and network capabilities to authenticate and post to Hacker News. Without declared restrictions, an agent runtime may over-grant access or make the skill callable in broader contexts than intended, increasing the risk of credential misuse, unintended posting, or abuse of stored session cookies.
The script persists authenticated Hacker News session cookies to a predictable local file in the user's home directory and reloads them automatically on future runs. If that file is readable by other local users, copied into backups, or left on shared systems, an attacker could reuse the session and act as the victim account without knowing the password.
cmd_login reads HN_USERNAME and HN_PASSWORD from environment variables, which are sensitive inputs that may be exposed through shell history, process environments, or misconfigured tooling. The code mentions the variables in an error message but does not provide any safety warning or disclosure about the risks of supplying credentials this way.