Back to skill

Security audit

daily-news

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward news-trends fetcher with some quality and dependency hygiene issues, but no hidden harmful behavior was found.

Install this only in an isolated virtual environment, pin and audit the Python dependencies before use, and expect the skill to make outbound requests to Baidu and Google Trends. Treat the displayed Beijing time with caution until the timezone bug is fixed.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T08 · Insecure Dependencies

Warning
Location
requirements.txt:1
Finding

Unpinned Third-Party Python Dependencies

Content
View full analysis

Vulnerability Details

File Location: requirements.txt:1-3
Additional Location: SKILL.md:67
Vulnerability Type: Unpinned and unhashed third-party dependencies
Risk Level: Medium

Vulnerable Code

requirements.txt:1-3:

text
beautifulsoup4
requests
feedparser

The installation instruction in SKILL.md:67 repeats the same unconstrained dependency resolution:

bash
pip install beautifulsoup4 requests feedparser

Technical Analysis

The project declares third-party Python packages without exact version constraints or cryptographic hashes. Consequently, each installation resolves whatever compatible package versions are available from the configured Python package index at that time.

This makes installations non-reproducible and exposes the project to supply-chain risk. If a package release, transitive dependency, maintainer account, or configured package index is compromised, pip may retrieve attacker-controlled content without any repository change being required. Depending on the package and build mechanism, malicious code could execute while building or installing the dependency, when the package is imported, or when the news script invokes affected functionality.

The audit found no evidence that the currently declared package names are intentionally malicious or typosquatted. The risk arises from unconstrained, mutable dependency resolution and lack of artifact integrity verification.

Attack Path

  1. A user follows SKILL.md and executes the documented pip installation command, or installs from requirements.txt.
  2. Pip queries the configured package index and resolves the latest versions permitted by the environment because no versions are pinned.
  3. An attacker compromises a declared package, one of its transitive dependencies, a maintainer publishing account, or the package index used by the environment.
  4. Pip downloads the compromised distribution because the project provides neither an exact version ...[truncated 881 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin every direct dependency to an explicitly reviewed version:
text
beautifulsoup4==<reviewed-version>
requests==<reviewed-version>
feedparser==<reviewed-version>
  1. Generate a fully resolved lock file that includes transitive dependencies. Tools such as pip-compile can be used to create deterministic dependency sets.

  2. Add cryptographic hashes for every accepted distribution:

bash
pip-compile --generate-hashes requirements.in
pip install --require-hashes -r requirements.txt
  1. Review packages and transitive dependencies before approving upgrades. Apply upgrades through controlled change review rather than resolving mutable latest versions during deployment.

  2. Prefer binary wheels from a trusted, authenticated package repository and restrict untrusted indexes or additional index URLs.

  3. Run dependency installation and the news script as an unprivileged, isolated user or inside a constrained virtual environment or container.

  4. Update SKILL.md so its installation instructions use the locked, hash-verified requirements file rather than installing unconstrained package names directly.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (11)

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 1)May include surrounding context.

md
---
name: daily-news
version: 1.1.0
description: "Aggregate and deliver daily news digests from multiple sources"

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The title, usage instructions, and sample output are all written in Chinese, and the sample output explicitly uses Beijing time. There is no indication that users may choose another language or locale, nor a documented reason that the skill must be Chinese-only, which may violate language/locale policy requirements.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The invocation guidance says the skill should be used whenever a user asks to view today's hot searches, news, headlines, or mentions terms like '新闻' or '头条'. These phrases are common conversational language and the document does not provide exclusions or negative examples, so the trigger scope is ambiguous and could cause unintended invocation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The returned string explicitly states "现在是北京时间" ("it is now Beijing time"), but the timestamp comes from datetime.datetime.now() at L060, which uses the host's local timezone. The nearby comments at L089-L090 even acknowledge the server time might not be Beijing time, so the final output can actively misrepresent the actual time shown.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The returned greeting is fixed in Chinese and explicitly states "北京时间", while earlier comments note the server time may not actually be Beijing time. This imposes a specific language/locale on all users without offering choice or documenting a justified region-specific constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The package description is written entirely in Chinese and describes the skill as a Chinese-language news aggregation tool, without indicating that users can choose another language or locale. This can constitute a language/locale policy issue because it implicitly constrains interaction to a specific language without documented opt-in or justification.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
95% confidence
Finding

The dependency beautifulsoup4 is listed without a pinned version, which makes builds non-reproducible and increases supply-chain risk because different installations may resolve to different releases over time. While this file alone does not prove exploitation, unpinned dependencies are a real security weakness because vulnerable or malicious upstream releases could be pulled in unexpectedly.

Content

Scanner excerpt · requirements.txt (reported line 1)May include surrounding context.

text
beautifulsoup4
requests
feedparser

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
98% confidence
Finding

The requests package is unpinned, so deployments may install different versions depending on timing and environment. This is more dangerous here because requests has multiple known advisories; without version pinning, there is no assurance that a safe release will be installed, creating avoidable supply-chain and known-vulnerability exposure.

Content

Scanner excerpt · requirements.txt (reported line 2)May include surrounding context.

text
beautifulsoup4
requests
feedparser

Unverifiable Dependency: requests has 16 known advisory(ies) (CVE-2014-1830 (Exposure of Sensitive Information to an Unauthorized Actor in Requests); CVE-2024-47081 (Requests vulnerable to .netrc credentials leak via malicious URLs); CVE-2024-35195 (Requests `Session` object does not verify requests after making first request wi) +13 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
96% confidence
Finding

The manifest includes requests without a version pin, and the package has numerous known advisories across releases. Because no specific version is declared, it is impossible to verify whether the installed dependency is safe, which materially increases the chance of deploying a vulnerable build.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
98% confidence
Finding

The feedparser dependency is not version-pinned, allowing installation of varying releases across environments. This is especially concerning because feedparser has a history of security advisories, so leaving it unpinned means a vulnerable version could be installed without visibility or control.

Content

Scanner excerpt · requirements.txt (reported line 3)May include surrounding context.

text
beautifulsoup4
requests
feedparser

Unverifiable Dependency: feedparser has 10 known advisory(ies) (CVE-2011-1157 (feedparser Cross-site Scripting vulnerability); CVE-2009-5065 (feedparser Cross-site Scripting vulnerability); CVE-2011-1158 (feedparser Cross-site Scripting vulnerability) +7 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
95% confidence
Finding

The manifest includes feedparser without pinning a version, despite multiple known advisories affecting various releases. This prevents meaningful verification of dependency safety and can result in accidental installation of a vulnerable version in production or during future rebuilds.

Content

No source excerpt is available for this finding.