Back to skill

Security audit

GI API Design FastAPI

Security checks for vulnerabilities and agentic risk

Overview

This is a straightforward FastAPI API-design guidance skill with no hidden execution, persistence, credential use, or unrelated authority.

Installers should understand that this skill may guide an agent to create or modify FastAPI route code when asked. Review generated endpoints for authentication, authorization, validation, and rate limiting, especially for update or delete APIs.

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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (2)

Tool Parameter Abuse

High
Category
Tool Misuse
Content
| POST | 创建 | POST /users |
| PUT | 全量更新 | PUT /users/{id} |
| PATCH | 部分更新 | PATCH /users/{id} |
| DELETE | 删除 | DELETE /users/{id} |

### 3. 统一响应格式
Confidence
80% confidence
Finding
Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Natural-Language Policy Violations

Medium
Confidence
93% confidence
Finding
The skill title and usage instructions are written entirely in Chinese, including trigger examples and guidance, with no indication that users may interact in another language. The policy specifically flags language or locale constraints when they are imposed without user opt-in or a documented justification.

Static analysis

No suspicious patterns detected.