Back to skill

Security audit

Pywayne Lark Bot

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward Lark/Feishu bot usage guide whose messaging, upload/download, and listener behavior matches its stated purpose.

Install only if you intend to let the agent operate a Lark/Feishu bot. Use least-privilege app credentials, restrict the bot to intended chats, review files before upload, and store downloaded attachments in temporary or controlled directories with cleanup after processing.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Cloud Storage Exfiltration

Medium
Category
Data Exfiltration
Confidence
55% confidence
Finding

Data is uploaded to cloud storage (S3 / GCS / Azure Blob). This may be a legitimate backup or exfiltration to an external bucket. Manual review is recommended.

Content

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

python
# 上传文件
file_key = bot.upload_file("/path/to/file.pdf", file_type="pdf")

# 发送音频
bot.send_audio_to_user(user_open_id, file_key)

Cloud Storage Exfiltration

Medium
Category
Data Exfiltration
Confidence
55% confidence
Finding

Data is uploaded to cloud storage (S3 / GCS / Azure Blob). This may be a legitimate backup or exfiltration to an external bucket. Manual review is recommended.

Content

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

python
# 上传文件
file_key = bot.upload_file("/path/to/file.pdf", file_type="pdf")

# 发送音频
bot.send_audio_to_user(user_open_id, file_key)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill explicitly documents downloading images, files, and message resources to caller-specified local paths, but it does not warn that this writes potentially sensitive remote content onto local storage where it may persist beyond the intended task. In an agent setting, that omission can lead to unreviewed retention of confidential data, accidental re-use, or unsafe handling of untrusted files.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The listener section states that incoming images and files are downloaded to a temporary directory for processing, but it does not foreground the privacy and security implications of automatically materializing user-supplied content on local storage. This is risky because inbound files may contain sensitive information or malicious payloads, and users of the skill may not realize local persistence is occurring during message handling.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.