Back to skill

Security audit

飞书 SKILL

Security checks for vulnerabilities and agentic risk

Overview

This is a Feishu API documentation skill with disclosed examples and no hidden execution, persistence, or local credential access.

Install only if you want local Feishu API reference material. When using its examples, replace placeholders carefully, keep app secrets and tokens in secure storage or environment variables, and only call contact or messaging APIs within your authorized Feishu tenant scope.

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

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/TEMPLATE.md (reported line 215)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/authen-v1-user_info.md (reported line 42)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/authen-v1-user_info.md (reported line 196)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-departments-batch.md (reported line 47)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-departments-department_id-children.md (reported line 52)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-departments-department_id.md (reported line 50)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-departments-parent.md (reported line 54)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-scopes.md (reported line 42)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-users-basic_batch.md (reported line 38)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-users-batch.md (reported line 55)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-users-batch_get_id.md (reported line 49)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-users-find_by_department.md (reported line 58)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-users-user_id.md (reported line 54)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/contact-v3-users.md (reported line 55)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/im-v1-messages-message_id-reply.md (reported line 59)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/im-v1-messages-message_id-reply.md (reported line 111)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/im-v1-messages.md (reported line 60)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/im-v1-messages.md (reported line 113)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · open-apis/passport-v1-sessions-query.md (reported line 38)May include surrounding context.

md
| 名称 | 类型 | 必填 | 描述 |
|------|------|------|------|
| `Authorization` | string | 是 | `tenant_access_token`<br>值格式:"Bearer `access_token`"<br>示例值:"Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>**了解更多**:[如何选择与获取 access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use) |
| `Content-Type` | string | 是 | 固定值:"application/json; charset=utf-8" |

### 请求参数

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The document is presented entirely as a required template in Chinese and instructs users to strictly follow its structure, but it does not offer any language or locale choice. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is explicitly justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The documentation instructs users to place an app_secret directly in request bodies and code samples without any warning about secure storage, redaction, or avoiding hardcoding secrets. This can lead developers to copy the pattern into production code, logs, version control, or shared docs, exposing credentials that can be used to mint tenant access tokens.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · open-apis/auth-v3-tenant_access_token-internal.md (reported line 50)May include surrounding context.

请求示例

cURL 请求示例

bash
curl -X POST 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% 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 · open-apis/auth-v3-tenant_access_token-internal.md (reported line 77)May include surrounding context.

md
"app_secret": "dskLLdkasdjlasdKK"
    }
    
    response = requests.post(url, headers=headers, json=data)
    print(json.dumps(response.json(), indent=2, ensure_ascii=False))

if __name__ == "__main__":

External Transmission

Medium
Category
Data Exfiltration
Confidence
70% 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 · open-apis/contact-v3-users-basic_batch.md (reported line 133)May include surrounding context.

md
"app_secret": "dskLLdkasdjlasdKK"
    }
    
    response = requests.post(url, headers=headers, json=data)
    print(json.dumps(response.json(), indent=2, ensure_ascii=False))

if __name__ == "__main__":

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The document explicitly states that the API does not validate contact authorization scope and will directly return user names for supplied user IDs, but it does not present a strong privacy/security warning about the resulting cross-scope data exposure risk. In an agent skill or API integration context, this can normalize use of an endpoint that bypasses expected data-access boundaries and may enable unauthorized enumeration of employee identities.

Content

No source excerpt is available for this finding.