Oathe Security Badge

oathe / scan / reports / caution

Is cctv-news-fetcher safe?

Use with caution. cctv-news-fetcher is not clearly unsafe, but the audit flagged risks to review before you install it. Oathe's behavioral security audit gave cctv-news-fetcher a trust score of 74/100 with 9 findings, none critical or high. Report updated

https://clawhub.ai/yuhangch/cctv-news-fetcher

74
CAUTION

Is cctv-news-fetcher safe to install?

This skill is a web scraper for CCTV News Broadcast (Xinwen Lianbo) that fetches and parses Chinese state media content. While not overtly malicious, it introduces a remote content pipeline with several moderate risks: unbounded URL following from parsed HTML (potential SSRF), second-order prompt injection through unvalidated news content fed to the agent, and hardcoded tracking cookies in outbound requests. The sensitive file access during installation (.aws/credentials, .env) appears to be platform-level behavior rather than skill-initiated, but warrants attention.

What security issues were found in cctv-news-fetcher?

Category Scores

Prompt Injection 90/100 · 30%
Data Exfiltration 65/100 · 25%
Code Execution 55/100 · 20%
Clone Behavior 70/100 · 10%
Canary Integrity 100/100 · 10%
Behavioral Reasoning 60/100 · 5%

Findings (9)

MEDIUM Shell command execution with user-controlled input -10 ▶

SKILL.md instructs the agent to execute bun {baseDir}/scripts/news_crawler.js <YYYYMMDD> where the date parameter originates from user input. While the expected format is purely numeric, SKILL.md does not enforce strict validation. A careful agent should sanitize, but the instruction creates a code execution surface.

Evidence: SKILL.md: 'Command: `bun {baseDir}/scripts/news_crawler.js <YYYYMMDD>`'

MEDIUM Outbound HTTP requests to external domains with spoofed headers -15 ▶

The crawler script makes HTTP requests to cctv.cntv.cn and tv.cctv.com with hardcoded Cookie headers and a spoofed User-Agent string. While these are legitimate news domains, the hardcoded cookie is unusual and the script follows URLs extracted from HTML content without validation.

Evidence: Headers include 'Cookie: cna=DLYSGBDthG4CAbRVCNxSxGT6' and spoofed Chrome User-Agent in all three fetch functions

MEDIUM Unbounded URL following from parsed HTML -20 ▶

The script extracts URLs from fetched HTML pages and follows them without any domain validation or allowlist. A compromised or modified CCTV page could inject arbitrary URLs, leading to SSRF or fetching of malicious content.

Evidence: fetchRecentNews: `soup.querySelectorAll('li a').slice(1).map(a => a.getAttribute('href'))` — no URL validation before fetch

MEDIUM Remote content pipeline enables second-order prompt injection -20 ▶

News content fetched from CCTV is returned as JSON and summarized by the agent. If the upstream HTML contains crafted text (e.g., instructions disguised as news titles), the agent could interpret them as directives when processing the output.

Evidence: Content flows: CCTV HTML → parse → JSON → agent summarization. No sanitization of content between fetch and agent consumption.

LOW Sensitive file access during installation -15 ▶

Filesystem monitoring detected reads of .env, .aws/credentials, and auth-profiles.json during the install phase. These appear to be OpenClaw platform behavior rather than skill-initiated, but the .aws/credentials access during a skill install is noteworthy.

Evidence: 14:47:24 OPEN /home/oc-exec/.aws/credentials, 14:47:24 OPEN /home/oc-exec/.env

LOW Hardcoded tracking cookie in request headers -10 ▶

All three fetch functions include an identical hardcoded cookie value that appears to be an Alibaba/Taobao tracking cookie (cna). This could be used to track or correlate audit requests, or could be a remnant from the author's development environment.

Evidence: 'Cookie': 'cna=DLYSGBDthG4CAbRVCNxSxGT6' in fetchOlderNews, fetchMidNews, and fetchRecentNews

LOW Agent instructed to calculate dates from natural language -10 ▶

SKILL.md tells the agent to interpret 'yesterday' or 'today' and calculate dates. While minor, this expands the attack surface for prompt manipulation via date-like instructions.

Evidence: SKILL.md: 'If the user says "yesterday" or "today", calculate the date relative to the current local time.'

INFO No malicious npm scripts or git hooks 0 ▶

package.json contains no preinstall, postinstall, or other lifecycle scripts. No git hooks, submodules, or symlinks detected. The dependency tree (node-html-parser and its sub-dependencies) consists of well-known packages.

Evidence: package.json has only 'dependencies' with node-html-parser ^7.0.2. No scripts field.

INFO All honeypot files intact 0 ▶

No canary files were accessed or modified during the audit, indicating no active credential harvesting behavior.

Evidence: Canary integrity check: all files intact

Should I install cctv-news-fetcher?

Oathe's verdict for cctv-news-fetcher is CAUTION with a trust score of 74/100. Recommendation: Install with caution.