foxguard

仓库创建 2026年6月24日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

实用且示例丰富,可直接用于写安全敏感代码或清理自动化扫描告警。

这个 Skill 做什么

提供针对命令执行、SQL、文件 I/O 等面的安全编码规范与示例。

在写或修安全敏感的代码时提供具体的安全编码模式和示例,覆盖命令执行、SQL 构造、文件 I/O、网络请求、随机数与加密等场景。只要碰到用户输入、shell 调用、拼接 SQL 或处理密钥时就启用。特点是给出语言级的安全写法和替代方案,能让自动化扫描器更容易识别合规代码并减少安全错误。

▸ 展开 SKILL.md 英文原文

Apply foxguard's secure-coding patterns when writing or fixing security-sensitive code. Use proactively when handling user input, shelling out, building SQL, doing file I/O, fetching URLs, generating randomness, or touching crypto. Use when this capability is needed.

开发编程安全编码注入防护审计友好通用
0
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/tomevault-io/skills-registry/main/0sec-labs--foxguard--foxguard/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/tomevault-io/skills-registry/main/0sec-labs--foxguard--foxguard/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
Use this guidance when writing or fixing code that touches any of these surfaces. Match the language patterns to what foxguard's rules look for so the auto-scan stays clean.

## Command execution

- Never pass concatenated strings to a shell. Use argument lists.
  - Python: `subprocess.run(["git", "log", branch], check=True)` — never `subprocess.run(f"git log {branch}", shell=True)`.
  - Node: `execFile("git", ["log", branch])` — never `exec(`git log ${branch}`)`.
  - Go: `exec.Command("git", "log", branch)` — never `exec.Command("sh", "-c", "git log "+branch)`.
- If a shell is genuinely required, validate the input against a strict allowlist regex first.

## SQL

- Use parameterized queries
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有