Back to skill

Security audit

Feishu Bitable Import

Security checks for vulnerabilities and agentic risk

Overview

This Feishu import skill mostly does what it says, but it needs Review because full sync can delete all records in a target table without safeguards and setup asks for an extra document-read permission.

Install only after narrowing Feishu permissions to the target Bitable resources, removing the unused document-read scope, and avoiding full mode unless you have a current backup and are certain the app_token/table_id are correct. Use an isolated Python environment with pinned dependencies, and treat any imported file contents as being transmitted to Feishu.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (3)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:71
Finding

Unpinned Third-Party Runtime Dependencies

Content
View full analysis
Remediation
View remediation
openpyxl== python-dotenv== requests== ``` 2. Generate and commit a lock file that also constrains transitive dependencies. 3. Record package hashes and install with: ```bash pip install --require-hashes -r requirements.txt ``` 4. Use an isolated virtual environment rather than installing into a shared or privileged Python environment. 5. Add automated dependency vulnerability scanning and controlled update reviews. 6. Avoid running package installation or synchronization as an administrator or root user. ]]>

T05 · Unauthorized Access and Privilege Escalation

Note
Location
references/get-id-guide.md:39
Finding

Unnecessary Feishu Document-Read Permission

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/sync.py:245
Finding

Destructive Full Synchronization Without Recovery Safeguards

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (11)

Missing User Warnings

High
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill explicitly advertises a 'full overwrite' synchronization mode but does not provide a prominent warning that this can delete or replace existing records. In a business data sync context, accidental use could cause large-scale data loss or corruption in a production Feishu Bitable, especially if triggered by an operator who assumes import is additive.

Content

No source excerpt is available for this finding.

Missing User Warnings

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

This section states that full mode clears old data and re-imports everything, but it does so as a normal workflow option without an explicit safety gate or user warning. Because the skill operates on enterprise tables used for reporting and collaboration, misuse or misunderstanding could wipe important operational data quickly and at scale.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The manifest description lists triggers such as "飞书数据导入", "创建飞书表格", and "数据导入飞书", which are broad natural phrases that may overlap with ordinary requests rather than a narrowly scoped command. The file does not provide exclusion conditions or negative examples to clarify when the skill should not activate.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The type inference matrix specifies phone number detection using only "中国大陆手机号格式", which imposes a locale-specific rule. The file does not indicate that the skill is China-only, nor does it offer a user-configurable locale or alternative formats.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

This code creates a remote Feishu table using data derived from the input file, and later imports the dataset through the sync client. Although the script prints success/progress messages, it does not disclose before execution that user-provided file contents will be sent to Feishu, which is a privacy-relevant network operation.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
79% confidence
Finding

The top-level documentation claims three modes including '仅新增' (append/new-only). However, in the sync logic, only 'incremental' with a primary key performs existence checks; all other modes, including 'append', simply create records without enforcing any append-specific distinction, making the documented mode semantics misleading.

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/sync.py (reported line 44)May include surrounding context.

python
"app_id": self.app_id,
            "app_secret": self.app_secret
        }
        resp = requests.post(url, json=data, timeout=10).json()
        if resp.get("code") != 0:
            raise Exception(f"获取token失败: {resp}")
        self.access_token = resp["tenant_access_token"]

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The argument help text advertises 'append仅新增' as a supported synchronization mode. In practice, the code only branches specially for 'full' and for 'incremental' with a primary key; 'append' falls through to the default branch shared with any other non-incremental case, so the documented intent of a dedicated mode is not actually reflected in code behavior.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

The docstring and command-line help strings are written in Chinese only, which effectively forces one locale/language for interaction. Under the policy, language constraints should either provide user choice or be clearly documented as intentionally region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code file contains natural-language user-facing documentation in a single language and does not indicate that users may choose another locale. Under the policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The argparse descriptions, help text, and printed status messages are all fixed to Chinese, which imposes a specific language on users without opt-in. This matches the language/locale policy concern for natural-language content in code files.

Content

No source excerpt is available for this finding.