Detects fail-open insecure defaults (hardcoded secrets, weak auth, permissive security) that allow apps to run insecurely in production. Use when auditing security, reviewing config management, or analyzing environment variable handling.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install insecure-defaults或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install insecure-defaults⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/insecure-defaults/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: insecure-defaults description: "Detects fail-open insecure defaults (hardcoded secrets, weak auth, permissive security) that allow apps to run insecurely in production. Use when auditing security, reviewing config management, or analyzing environment variable handling." allowed-tools: - Read - Grep - Glob - Bash ---
Finds fail-open vulnerabilities where apps run insecurely with missing configuration. Distinguishes exploitable defaults from fail-secure patterns that crash safely.
SECRET = env.get('KEY') or 'default' → App runs with weak secretSECRET = env['KEY'] → App crashes if missingDo not use this skill for:
test/, spec/, __tests__/).example, .template, .sample suffixes)When in doubt: trace the code path to determine if the app runs with the default or crashes.
Follow this workflow for every potential finding:
Determine language, framework, and project conventions. Use this information to further discover things like secret storage locations, secret usage patterns, credentialed third-party integrations, cryptography, and any other relevant configuration. Further use information to analyze insecure default configurations.
Example Search for patterns in /config/, /auth/, **/database/, and env files:
getenv.\) or ['"], process\.env\.[A-Z_]+ \|\| ['"], ENV\.fetch.default:password.=.['"][^'"]{8,}['"], api[_-]?key.=.['"][^'"]+['"]DEBUG.=.true, AUTH.=.false, CORS.=.\*MD5|SHA1|DES|RC4|ECB in security contextsTailor search approach based on discovery results.
Focus on production-reachable code, not test fixtures or example files.
For each match, trace the code path to understand runtime behavior.
Questions to answer:
Determine if this issue reaches production:
If production config provides the variable → Lower severity (but still a code-level vulnerability) If production config missing or uses default → CRITICAL
Example report:
Finding: Hardcoded JWT Secret Fallback
Location: src/auth/jwt.ts:15
Pattern: const secret = process.env.JWT_SECRET || 'default';
Verification: App starts without JWT_SECRET; secret used in jwt.sign() at line 42
Production Impact: Dockerfile missing JWT_SECRET
Exploitation: Attacker forges JWTs using 'default', gains unauthorized access
Fallback Secrets: SECRET = env.get(X) or Y → Verify: App starts without env var? Secret used in crypto/auth? → Skip: Test fixtures, example files
Default Credentials: Hardcoded username/password pairs → Verify: Active in deployed config? No runtime override? → Skip: Disabled accounts, documentation examples
Fail-Open Security: AUTH_REQUIRED = env.get(X, 'false') → Verify: Default is insecure (false/disabled/permissive)? → Safe: App crashes or default is secure (true/enabled/restricted)
Weak Crypto: MD5/SHA1/DES/RC4/ECB in security contexts → Verify: Used for passwords, encryption, or tokens? → Skip: Checksums, non-security hashing
Permissive Access: CORS *, permissions 0777, public-by-default → Verify: Default allows unauthorized access? → Skip: Explicitly configured permissiveness with justification
Debug Features: Stack traces, introspection, verbose errors → Verify: Enabled by default? Exposed in responses? → Skip: Logging-only, not user-facing
For detailed examples and counter-examples, see examples.md.
安装 Insecure Defaults Detection 后,可以对 AI 说这些话来触发它
Help me get started with Insecure Defaults Detection
Explains what Insecure Defaults Detection does, walks through the setup, and runs a quick demo based on your current project
Use Insecure Defaults Detection to detects fail-open insecure defaults (hardcoded secrets, weak auth, ...
Invokes Insecure Defaults Detection with the right parameters and returns the result directly in the conversation
What can I do with Insecure Defaults Detection in my finance & investment workflow?
Lists the top use cases for Insecure Defaults Detection, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/insecure-defaults/ 目录(个人级,所有项目可用),或 .claude/skills/insecure-defaults/(项目级)。重启 AI 客户端后,用 /insecure-defaults 主动调用,或让 AI 根据上下文自动发现并使用。
Insecure Defaults Detection 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Insecure Defaults Detection 可免费安装使用。请查阅仓库了解许可证信息。
Detects fail-open insecure defaults (hardcoded secrets, weak auth, permissive security) that allow apps to run insecurely in production. Use when auditing security, reviewing config management, or analyzing environment variable handling.
Automate my finance & investment tasks using Insecure Defaults Detection
Identifies repetitive steps in your workflow and sets up Insecure Defaults Detection to handle them automatically
Insecure Defaults Detection 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。