Back to skill

Security audit

多平台AI信息源

Security checks for vulnerabilities and agentic risk

Overview

The skill mostly does what it advertises, but its subscription feature creates persistent scheduled tasks and can expose or mishandle the user's API key.

Install only if you are comfortable giving this skill a RedFox API key and letting it create local reports. Avoid using the subscription feature until the crontab shell construction and macOS plaintext API-key persistence are fixed. Do not use the investigation templates for personal background checks or reputational profiling unless you have a lawful, consented, and clearly bounded reason.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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 (2)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/feed_core.py:1730
Finding

Command Injection in Linux Subscription Installation

Content
View full analysis
/dev/null | grep -v "{PLIST_LABEL}"; ' f'echo "{cron_line} # {PLIST_LABEL}") | crontab -', shell=True, check=True, capture_output=True, ) ``` ### Technical Analysis The subscription command incorporates arguments derived from user-controlled options, including `--keywords`, into `cron_line`. Each argument is processed with `shlex.quote()`, but the resulting string is subsequently embedded inside an outer double-quoted `echo` argument and executed with `shell=True`. The quoting generated by `shlex.quote()` is not safe in this context. For example, a value containing command substitution is converted into a single-quoted shell fragment, but those single-quote characters occur inside the outer double-quoted string. Within double quotes, single quotes are ordinary characters and do not suppress shell expansion. Consequently, constructs such as `$(command)` or backtick command substitution can still be evaluated by the shell while the crontab is being installed. This is a classic command-injection vulnerability caused by constructing a compound shell command from user-controlled data and passing it to a shell interpreter. ### Attack Path 1. An attacker supplies, publishes, or persuades an Agent to process a malicious keyword value containing shell command substitution. 2. The user or Agent invokes the Skill with `--subscribe`, for example with a crafted `--keywords` argument. 3. `_subscription_args()` places that keyword in the scheduled command argument list. 4. `_shell_quote()` applies `shlex.quote()`, but the quoted result is interpolated into the outer double-quoted `echo` command. 5. `subprocess.run(... ...[truncated 875 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/feed_core.py:1683
Finding

API Key Stored in Plaintext LaunchAgent Configuration

Content
View full analysis
EnvironmentVariables {ENV_KEY} {api_key} """ ``` ```python plist_path.write_text(plist_content, encoding="utf-8") ``` ### Technical Analysis When a macOS user enables the documented subscription feature, the Skill reads `REDFOX_API_KEY` from the command line, environment, shell configuration, or configuration file and embeds it directly into a persistent LaunchAgent plist. The plist is written without explicitly setting restrictive permissions. This duplicates the credential in plaintext under `~/Library/LaunchAgents/com.qoder.multi-ai-feed.plist`, increasing the number of locations from which it may be exposed. The key can consequently be included in backups, diagnostic archives, filesystem indexing, support bundles, or files accessible to other local processes. The API key is also interpolated into XML without XML escaping. Although the documented key format is constrained, robust secret handling should not assume that credential values can never contain XML-sensitive characters. The scheduled-report feature legitimately requires authentication, but persisting the raw key in the service definition exceeds the minimum exposure necessary to provide that functionality. ### Attack Path 1. The user configures `REDFOX_API_KEY` through one of the supported credential sources. 2. The user invokes the Skill with `--subscribe` on macOS. 3. `install_subscription()` calls `get_api_key()` and obtains the credential. 4. The function embeds the credential in the LaunchAgent’s `EnvironmentVariables` dictionary. 5. The resulting plist is written persistently to the user’s LaunchAgents directory. 6. A local process, another user with sufficient filesyst ...[truncated 715 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (75)

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The skill description materially understates or misstates behavior in security-relevant ways: it claims cross-engine verification that apparently is not actually performed, suggests strict user-confirmation gating for unavailable dates that is not enforced in core logic, and omits that subscription setup can modify system schedulers and persist API keys in launchd/crontab contexts. This mismatch can mislead users and orchestrators into granting trust or approval under false assumptions, especially where network, persistence, and local system modification are involved.

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| `scripts/feed_core.py` | 平台配置表与全部共享逻辑(鉴权、日期、取数、归一化、聚类、统计、情报、渲染、订阅) |

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
| `scripts/feed_core.py` | 平台配置表与全部共享逻辑(鉴权、日期、取数、归一化、聚类、统计、情报、渲染、订阅) |

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

The documented '人物背景调查' mode enables background investigation of individuals, including reputation checks, controversy searches, and lawsuit discovery, which is outside the stated AI feed/reporting purpose. This is dangerous because it can facilitate targeted profiling, privacy-invasive research, and collection of sensitive personal or reputational data without a clearly justified business purpose or explicit safeguards.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The configuration explicitly enables '人物背景调查' (person background investigation), which is unrelated to generating AI hot-topic reports across social platforms. In the context of this skill, that capability increases the risk of privacy-invasive lookups, profiling, or misuse of the skill for doxxing or non-consensual background checks under the cover of a benign content aggregation function.

Content

No source excerpt is available for this finding.

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · scripts/feed_core.py (reported line 407)May include surrounding context.

python
def print_api_key_help():
    error(f"未检测到 {ENV_KEY},请先配置 API Key:")
    if sys.platform == "win32":
        print(f"  Windows PowerShell: [Environment]::SetEnvironmentVariable('{ENV_KEY}', 'ak_你的密钥', 'User')")
    else:
        print(f"  macOS/Linux (zsh):  echo 'export {ENV_KEY}=ak_你的密钥' >> ~/.zshrc && source ~/.zshrc")
        print(f"  macOS/Linux (bash): echo 'export {ENV_KEY}=ak_你的密钥' >> ~/.bashrc && source ~/.bashrc")
    print(f"  命令行参数:         --api-key ak_你的密钥")
    print(f"  配置文件:           echo '{{\"api_key\":\"ak_你的密钥\"}}' > {CONFIG_FILE}")
    print(f"  免费注册获取 Key:   {API_KEY_DOC}")
    print()


# ─── 日期与可用性预检 ──────────────────────────────────────────────────────────────
def latest_available_date(update_hour):
    """每日 update_hour

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The skill installs, lists, and removes LaunchAgents/crontab jobs, giving it persistent host-management capability far beyond producing an AI feed report. In the context of an agent skill, persistence is especially dangerous because it can continue running after the original user interaction and can be abused to repeatedly access network resources and local secrets.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
96% confidence
Finding

This shell=True crontab rewrite performs sensitive system administration using dynamically constructed command text. Even with a locally derived path, the pattern is fragile and dangerous because future changes, unexpected path characters, or environment manipulation could lead to shell metacharacter abuse or accidental corruption of user cron entries.

Content

Scanner excerpt · scripts/feed_core.py (reported line 1770)May include surrounding context.

python
script_path = os.path.abspath(Path(__file__).resolve().parent / "multi_ai_feed.py")
    try:
        subprocess.run(
            f'crontab -l 2>/dev/null | grep -v "{script_path}" | crontab -',
            shell=True, check=True, capture_output=True,
        )

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/feed_core.py (reported line 1801)May include surrounding context.

python
script_path = os.path.abspath(Path(__file__).resolve().parent / "multi_ai_feed.py")
    try:
        out = subprocess.run("crontab -l 2>/dev/null", shell=True, capture_output=True).stdout.decode()
    except Exception:
        out = ""
    lines = [l for l in out.splitlines() if script_path in l]

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The phrase 'Just describe what you need in plain language — no commands to memorize' provides no clear trigger boundaries and suggests free-form activation. Because this is a markdown file and the later examples are illustrative rather than explicitly exhaustive, the description lacks constraints or negative examples that would prevent unintended invocation from ordinary requests.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · README.en.md (reported line 109)May include surrounding context.

md
| Scenario | Role | Example Query | Benefit |
| -------- | ---- | ------------- | ------- |
| Daily cross-platform AI trend tracking | AI researcher / operator | "Generate today's multi-platform AI daily report" | Grasp all five platforms' AI hits and topic distribution at once, without checking each separately |
| Judging whether a trend is genuine | Industry intelligence analyst | "Is the AI Agent topic being discussed everywhere" | Distinguish global trends from platform-local spikes via coverage counts |
| Matching topics to platforms | Content creator | "Which platform is hottest for AI art right now" | Identify the high-momentum platform for that direction and prioritize publishing there |
| Niche direction mining | Content operator | "Find all-platform hits about ComfyUI and Stable Diffusion" | Focus on a specific track with custom keywords to support topic decisions |

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill tells users to issue unrestricted natural-language requests to drive multi-platform queries and subscriptions, but it does not define clear activation boundaries, parameter constraints, or confirmation requirements beyond one date-related case. In an agent setting, broad invocation language increases the chance of unintended tool use, over-collection, or accidental triggering of costly/background actions such as subscriptions or multi-platform scans.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
91% confidence
Finding

The skill advertises and appears to rely on sensitive capabilities including environment access, file read/write, network access, and shell execution, yet it declares no explicit tool scope or permissions boundary. In an agent environment, this creates an over-privileged integration surface where the host may permit broader actions than users or policy reviewers expect, increasing the chance of unintended file access, command execution, or secret exposure.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger text includes broad, common phrases for AI news and hot topics that could cause the skill to activate in situations the user did not intend. Because this skill can perform network requests, generate files, and install subscriptions, accidental invocation expands from a UX issue into a security concern by increasing the chance of unreviewed external calls or local side effects.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The file states the reply '只能' use the prescribed template and all example/output text is fixed in Chinese, with no opt-in or alternative locale. This creates a language policy concern because the skill forces one language regardless of the user's preferred language.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The HTML document hard-codes lang="zh-CN", which imposes a specific locale on all rendered reports. This is a natural-language/locale policy concern because the file does not offer user opt-in, fallback behavior, or documentation that the skill is intentionally region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The subtitle text is entirely in Chinese and is presented as a fixed user-facing string. Because the template does not indicate that users can choose another language or that the skill is explicitly limited to a Chinese-language audience, this appears to enforce a locale without opt-in.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The document explicitly operationalizes '人物背景调查' and '信誉排查' using queries for controversy, lawsuits, and negative information, but provides no guardrails about privacy, legality, consent, data minimization, or acceptable use. In the context of an agent skill that automates intelligence gathering and structured reporting across platforms, this can facilitate intrusive profiling or misuse of personal data beyond legitimate research purposes.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The reference document materially expands the skill from AI hot-content aggregation into broad intelligence gathering workflows, including competitor analysis, public-opinion monitoring, background checks, and fact verification. This scope expansion is dangerous because users or downstream agents may rely on the reference file as authorization to perform sensitive investigations unrelated to the declared purpose, increasing privacy, surveillance, and misuse risk.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The competitor-intelligence mode instructs users to gather product, revenue, market-share, and user-feedback intelligence on named competitors, which exceeds the declared purpose of producing multi-platform AI content reports. This is dangerous because it encourages business intelligence collection under a misleading skill scope, potentially leading to misuse for targeted commercial surveillance or unauthorized research tasks.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The '舆情事件调查' section broadens the skill into general event tracking and crisis monitoring, far beyond aggregating AI-platform hot content. This creates risk because the skill could be used to monitor individuals, organizations, or sensitive incidents under the guise of a benign content-reporting tool, enabling unauthorized reputational or political surveillance.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The entire file consists of fixed Chinese headings, labels, and report templates, which implies the skill will produce outputs in Chinese by default. Under the policy, a skill should not force a specific language unless it offers user opt-in or clearly documents a justified region-specific constraint, neither of which appears here.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file defines broad investigation templates for competitor intelligence, public-opinion events, personal background checks, and fact verification, which significantly exceeds the advertised scope of a multi-platform AI trending/news aggregation skill. This scope expansion can enable repurposing the skill for generic intelligence gathering on companies and individuals, increasing privacy, misuse, and policy-bypass risk beyond what a user or reviewer would expect from the declared functionality.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The referenced configuration advertises a general-purpose intelligence investigation tool with capabilities such as competitor analysis, sentiment monitoring, background investigation, and cross-source verification, which materially exceed the stated purpose of an AI-content feed aggregator. This kind of scope expansion creates function creep: a user invoking a feed skill could be routed into broader investigative workflows and data collection that were not transparently disclosed or justified by the skill’s declared use case.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The config specifies sending investigation records to a remote API and using a user-supplied API key in headers, but the skill metadata does not clearly warn users that their queries or investigation outputs may be transmitted off-platform. This creates a data-handling and credential-transparency issue: sensitive search terms, investigative targets, or generated reports could be stored remotely without informed consent or clear minimization controls.

Content

No source excerpt is available for this finding.