Back to skill

Security audit

Baidu Wenku AIPPT

Security checks for vulnerabilities and agentic risk

Overview

This skill does what it claims: it uses Baidu's PPT API to generate presentations from user-provided topics, with no hidden persistence or unrelated local data access found.

Install only if you are comfortable sending your PPT topic and any optional web content to Baidu's API using your BAIDU_API_KEY. Avoid submitting secrets, private business plans, regulated data, or other sensitive content unless your Baidu account and policies allow that use.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (13)

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The skill markets template selection as smart/content-driven, but the documented fallback to random selection and use of external API/theme retrieval without declared permissions undermines transparency. This can mislead users about how their content is processed and what remote services are involved, increasing privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The skill markets template selection as smart/content-driven, but the documented fallback to random selection and use of external API/theme retrieval without declared permissions undermines transparency. This can mislead users about how their content is processed and what remote services are involved, increasing privacy and trust risks.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The skill markets template selection as smart/content-driven, but the documented fallback to random selection and use of external API/theme retrieval without declared permissions undermines transparency. This can mislead users about how their content is processed and what remote services are involved, increasing privacy and trust risks.

Content

No source excerpt is available for this finding.

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill declares code execution prerequisites and an API key, and its workflow instructs the agent to run Python scripts that necessarily use shell, environment variables, and network access, but it does not declare any explicit tool scope or permissions. This weakens least-privilege controls and can lead to broader-than-expected execution capability for a skill that sends user data to an external service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The workflow asks for a user-provided PPT topic and sends it to Baidu AI services, but the skill description does not warn users that their prompt/content will leave the local environment. This is a privacy and consent issue, especially if users include sensitive business, educational, or personal material in the topic or slide request.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/generate_ppt.py (reported line 59)May include surrounding context.

python
outline = ""
    chat_id = ""
    query_id = ""
    with requests.post(URL_PREFIX + "generate_outline", headers=headers, json=params, stream=True) as response:
        for line in response.iter_lines():
            line = line.decode('utf-8')
            if line and line.startswith("data:"):

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This code sends the user's query to a remote Baidu service in generate_outline, and later sends the query, generated outline, title, and optional web_content to another remote endpoint. While the script prints template-selection status and missing-key errors, it does not clearly disclose to the user that their provided content will be transmitted to an external service.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
80% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · scripts/generate_ppt.py (reported line 111)May include surrounding context.

python
"web_content": web_content,
        "enable_save_bos": True,
    }
    with requests.post(URL_PREFIX + "generate_ppt_by_outline", headers=headers, json=params, stream=True) as response:
        if response.status_code != 200:
            print(f"request failed, status code is {response.status_code}, error message is {response.text}")
            return []

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code uses Chinese-only category names and later exposes them in command-line help and status output, which imposes a specific language/locale on users. The file does not provide any opt-in, alternate locale, or documented justification for restricting interaction to Chinese.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/random_ppt_theme.py (reported line 267)May include surrounding context.

python
]
        
        start_time = int(time.time())
        process = subprocess.Popen(
            cmd,
            stdout=subprocess.PIPE,
            stderr=subprocess.PIPE,

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The argument help text and auto-suggested category output are presented only in Chinese, which is a natural-language policy concern when no language choice is offered. Users who do not read Chinese cannot meaningfully understand or control the skill's behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
77% confidence
Finding

The skill presents template categories and output examples in Chinese and appears oriented around Chinese-language styles, but it does not state that the skill is China/Chinese-specific or give users a language/locale choice. This can amount to an implicit locale constraint without opt-in or justification.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

The code accesses BAIDU_API_KEY from the environment and uses it as a bearer token in HTTP requests. Although this is functionally necessary, there is no comment, docstring, or user-facing notice explaining that the script depends on and transmits this credential to an external service.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.