Back to skill

Security audit

请求随机笑话

Security checks for vulnerabilities and agentic risk

Overview

This skill is a small joke-fetching helper that contacts fixed public API endpoints and does not show hidden persistence, credential access, file mutation, or destructive behavior.

Before installing, be aware that using the skill will contact api.pearktrue.cn to fetch content. This is proportionate for a random-joke skill, but users in restricted or privacy-sensitive environments should only use it if that external API access is acceptable.

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
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- `SKILL.md`: Skill documentation

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
92% confidence
Finding

The skill documentation describes a Python script that makes outbound requests to public APIs, but the skill declares no explicit tool scope or permissions for network access. This creates a least-privilege and transparency problem: an agent or reviewer cannot tell from the manifest that using the skill will contact external services, potentially sending user-triggered data or operating in environments where network use should be restricted.

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 · request_random_jokes.py (reported line 7)May include surrounding context.

python
# API映射表
API_MAP = {
    "xiaohua": "https://api.pearktrue.cn/api/jdyl/xiaohua.php",
    "duanzi": "https://api.pearktrue.cn/api/random/duanzi/",
    "dujitang": "https://api.pearktrue.cn/api/dujitang"
}

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 · request_random_jokes.py (reported line 8)May include surrounding context.

python
# API映射表
API_MAP = {
    "xiaohua": "https://api.pearktrue.cn/api/jdyl/xiaohua.php",
    "duanzi": "https://api.pearktrue.cn/api/random/duanzi/",
    "dujitang": "https://api.pearktrue.cn/api/dujitang"
}

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 · request_random_jokes.py (reported line 9)May include surrounding context.

python
# API映射表
API_MAP = {
    "xiaohua": "https://api.pearktrue.cn/api/jdyl/xiaohua.php",
    "duanzi": "https://api.pearktrue.cn/api/random/duanzi/",
    "dujitang": "https://api.pearktrue.cn/api/dujitang"
}