# Sql Injection Guide

> SQL 注入防护指南（被 read_skill 按需读取）

- **Type:** Skill
- **Install:** `agentstack add skill-lumorax-taifeng-sql-injection-guide`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [LumoraX](https://agentstack.voostack.com/s/lumorax)
- **Installs:** 0
- **Category:** [Databases](https://agentstack.voostack.com/c/databases)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [LumoraX](https://github.com/LumoraX)
- **Source:** https://github.com/LumoraX/taifeng/tree/main/examples/read_skill_lazy/skills/sql-injection-guide

## Install

```sh
agentstack add skill-lumorax-taifeng-sql-injection-guide
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# SQL 注入防护指南

核心原则：**永不拼接用户输入到 SQL 字符串**。

1. 参数化查询 / 预编译语句（`cursor.execute("... WHERE id=%s", (uid,))`）是首选。
2. ORM 的参数绑定默认安全；避免 raw SQL 拼接。
3. 最小权限数据库账号 + 输入白名单校验作为纵深防御。
4. 绝不用字符串格式化（f-string / % / +）拼 SQL。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [LumoraX](https://github.com/LumoraX)
- **Source:** [LumoraX/taifeng](https://github.com/LumoraX/taifeng)
- **License:** Apache-2.0

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lumorax-taifeng-sql-injection-guide
- Seller: https://agentstack.voostack.com/s/lumorax
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
