electron-security-audit

仓库创建 2026年7月2日最近提交 21 天前SkillHot 收录 21 天前
▸ 精选理由

详尽的插件安全检查清单,适合审核与代码审查环节。

这个 Skill 做什么

为 Obsidian 插件提供安全审核标准,覆盖密钥、输入验证与 .gitignore 等。

帮你检查 Obsidian 插件里的安全问题:找出硬编码的 API keys、输入验证漏洞、命令注入风险,并校验 .gitignore 配置。碰到代码审查、准备发布或想补安全护栏时用它。特别之处是覆盖从密钥处理到存储建议(如用 Obsidian 的 saveData())的全流程检查,能抓常见的密钥模式和配置缺失。

▸ 展开 SKILL.md 英文原文

Security auditing for the {{project.name}} plugin. Covers secret detection, input validation, command injection prevention, API key handling, and .gitignore enforcement. Use when reviewing code for security vulnerabilities or setting up security guardrails.

垂直行业安全审计Obsidian插件通用
0
Stars
0
Forks
35
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/stacks/obsidian-dev/skills/electron-security-audit/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/dustinkeeton/wafflestack/main/stacks/obsidian-dev/skills/electron-security-audit/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Security Audit Standards

## Priority Areas

### 1. Secret Prevention
- **No hardcoded secrets** — API keys, tokens, passwords must never appear in source
- **`.gitignore` enforcement** — ensure {{security.skillGitignore}} are gitignored
- **Settings storage** — API keys stored via Obsidian's `saveData()` (encrypted at rest by OS)
- **Audit**: grep for patterns like `sk-`, `key-`, API key formats, base64-encoded strings

### 2. Command Injection
- **child_process** — NEVER use `exec()` or `execSync()` with string commands
- **ALWAYS use `execFile()`** with argument arrays — prevents shell injection
- **Validate all inputs** before passing to external processes ({{security.externalTools}})
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有