← 返回 Skills 市场
atlas-secint

Insecure Defaults Detection

作者 atlas-secint · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
2338
总下载
0
收藏
8
当前安装
1
版本数
在 OpenClaw 中安装
/install insecure-defaults
功能描述
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.
使用说明 (SKILL.md)

Insecure Defaults Detection

Finds fail-open vulnerabilities where apps run insecurely with missing configuration. Distinguishes exploitable defaults from fail-secure patterns that crash safely.

  • Fail-open (CRITICAL): SECRET = env.get('KEY') or 'default' → App runs with weak secret
  • Fail-secure (SAFE): SECRET = env['KEY'] → App crashes if missing

When to Use

  • Security audits of production applications (auth, crypto, API security)
  • Configuration review of deployment files, IaC templates, Docker configs
  • Code review of environment variable handling and secrets management
  • Pre-deployment checks for hardcoded credentials or weak defaults

When NOT to Use

Do not use this skill for:

  • Test fixtures explicitly scoped to test environments (files in test/, spec/, __tests__/)
  • Example/template files (.example, .template, .sample suffixes)
  • Development-only tools (local Docker Compose for dev, debug scripts)
  • Documentation examples in README.md or docs/ directories
  • Build-time configuration that gets replaced during deployment
  • Crash-on-missing behavior where app won't start without proper config (fail-secure)

When in doubt: trace the code path to determine if the app runs with the default or crashes.

Rationalizations to Reject

  • "It's just a development default" → If it reaches production code, it's a finding
  • "The production config overrides it" → Verify prod config exists; code-level vulnerability remains if not
  • "This would never run without proper config" → Prove it with code trace; many apps fail silently
  • "It's behind authentication" → Defense in depth; compromised session still exploits weak defaults
  • "We'll fix it before release" → Document now; "later" rarely comes

Workflow

Follow this workflow for every potential finding:

1. SEARCH: Perform Project Discovery and Find Insecure Defaults

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:

  • Fallback secrets: getenv.*\) or ['"], process\.env\.[A-Z_]+ \|\| ['"], ENV\.fetch.*default:
  • Hardcoded credentials: password.*=.*['"][^'"]{8,}['"], api[_-]?key.*=.*['"][^'"]+['"]
  • Weak defaults: DEBUG.*=.*true, AUTH.*=.*false, CORS.*=.*\*
  • Crypto algorithms: MD5|SHA1|DES|RC4|ECB in security contexts

Tailor search approach based on discovery results.

Focus on production-reachable code, not test fixtures or example files.

2. VERIFY: Actual Behavior

For each match, trace the code path to understand runtime behavior.

Questions to answer:

  • When is this code executed? (Startup vs. runtime)
  • What happens if a configuration variable is missing?
  • Is there validation that enforces secure configuration?

3. CONFIRM: Production Impact

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

4. REPORT: with Evidence

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

Quick Verification Checklist

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.

安全使用建议
This is an instruction-only auditing checklist that will read repository files and run search/trace operations (grep/Bash). It does not request credentials or install code. Before installing: (1) review the SKILL.md/examples to ensure its checks align with your environment and won't generate noise; (2) be aware the agent will be able to view any secrets present in the codebase while performing the audit; and (3) only enable autonomous invocation if you trust the agent's access level to your projects.
功能分析
Type: OpenClaw Skill Name: insecure-defaults Version: 1.0.0 The skill is classified as suspicious due to its reliance on the `Bash` tool, which grants broad shell access, and its purpose of searching for sensitive patterns and configurations within a codebase. While the `SKILL.md` instructions clearly define a legitimate security auditing objective (detecting insecure defaults) and do not contain explicit malicious intent or prompt injection attempts to deviate from this purpose, the inherent power of `Bash` and the nature of security analysis (accessing potentially sensitive files) represent a significant high-risk capability. This aligns with the threshold for 'suspicious' where risky capabilities exist without clear malicious intent.
能力评估
Purpose & Capability
Name/description match the actual instructions: the skill is an auditing checklist and search/verification workflow for insecure defaults. It does not ask for unrelated credentials, binaries, or system-level access.
Instruction Scope
SKILL.md instructs the agent to discover project language/frameworks, search repository paths (config/, auth/, database/, env files), grep for patterns, and trace code paths. This is appropriate for a security audit, but the instructions assume the agent can read project files and run shell/grep commands (allowed-tools include Read and Bash) — which means the agent will see any secrets present in the repository. There are no instructions to exfiltrate data or contact external endpoints.
Install Mechanism
Instruction-only skill with no install spec and no code files. No downloads or packages are installed, so there is minimal install risk.
Credentials
The skill requires no environment variables, credentials, or config paths. The SKILL.md refers to inspecting repo files and (optionally) production configs, which is consistent with its purpose; it does not request unrelated secrets.
Persistence & Privilege
always is false and the skill is user-invocable. It does not request persistent system presence or modification of other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install insecure-defaults
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /insecure-defaults 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of insecure-defaults. - Detects fail-open insecure defaults including hardcoded secrets, weak authentication, and permissive security configurations in production-reachable code. - Helps with audits, code reviews, and configuration management by focusing on environment variable handling and insecure defaults. - Clearly distinguishes between fail-open (critical) and fail-secure (safe) patterns. - Provides search guidance and verification workflow, including example patterns and report template. - Includes a thorough checklist of common insecure defaults and guidance on when findings are relevant.
元数据
Slug insecure-defaults
版本 1.0.0
许可证
累计安装 8
当前安装数 8
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2338 次。

如何安装 Insecure Defaults Detection?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install insecure-defaults」即可一键安装,无需额外配置。

Insecure Defaults Detection 是免费的吗?

是的,Insecure Defaults Detection 完全免费(开源免费),可自由下载、安装和使用。

Insecure Defaults Detection 支持哪些平台?

Insecure Defaults Detection 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Insecure Defaults Detection?

由 atlas-secint(@atlas-secint)开发并维护,当前版本 v1.0.0。

💬 留言讨论