{
  "schemaVersion": "1.0",
  "item": {
    "slug": "insecure-defaults",
    "name": "Insecure Defaults Detection",
    "source": "tencent",
    "type": "skill",
    "category": "安全合规",
    "sourceUrl": "https://clawhub.ai/atlas-secint/insecure-defaults",
    "canonicalUrl": "https://clawhub.ai/atlas-secint/insecure-defaults",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/insecure-defaults",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=insecure-defaults",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "examples.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/insecure-defaults"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/insecure-defaults",
    "agentPageUrl": "https://openagent3.xyz/skills/insecure-defaults/agent",
    "manifestUrl": "https://openagent3.xyz/skills/insecure-defaults/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/insecure-defaults/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Insecure Defaults Detection",
        "body": "Finds fail-open vulnerabilities where apps run insecurely with missing configuration. Distinguishes exploitable defaults from fail-secure patterns that crash safely.\n\nFail-open (CRITICAL): SECRET = env.get('KEY') or 'default' → App runs with weak secret\nFail-secure (SAFE): SECRET = env['KEY'] → App crashes if missing"
      },
      {
        "title": "When to Use",
        "body": "Security audits of production applications (auth, crypto, API security)\nConfiguration review of deployment files, IaC templates, Docker configs\nCode review of environment variable handling and secrets management\nPre-deployment checks for hardcoded credentials or weak defaults"
      },
      {
        "title": "When NOT to Use",
        "body": "Do not use this skill for:\n\nTest fixtures explicitly scoped to test environments (files in test/, spec/, __tests__/)\nExample/template files (.example, .template, .sample suffixes)\nDevelopment-only tools (local Docker Compose for dev, debug scripts)\nDocumentation examples in README.md or docs/ directories\nBuild-time configuration that gets replaced during deployment\nCrash-on-missing behavior where app won't start without proper config (fail-secure)\n\nWhen in doubt: trace the code path to determine if the app runs with the default or crashes."
      },
      {
        "title": "Rationalizations to Reject",
        "body": "\"It's just a development default\" → If it reaches production code, it's a finding\n\"The production config overrides it\" → Verify prod config exists; code-level vulnerability remains if not\n\"This would never run without proper config\" → Prove it with code trace; many apps fail silently\n\"It's behind authentication\" → Defense in depth; compromised session still exploits weak defaults\n\"We'll fix it before release\" → Document now; \"later\" rarely comes"
      },
      {
        "title": "Workflow",
        "body": "Follow this workflow for every potential finding:"
      },
      {
        "title": "1. SEARCH: Perform Project Discovery and Find Insecure Defaults",
        "body": "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.\n\nExample\nSearch for patterns in **/config/, **/auth/, **/database/, and env files:\n\nFallback secrets: getenv.*\\) or ['\"], process\\.env\\.[A-Z_]+ \\|\\| ['\"], ENV\\.fetch.*default:\nHardcoded credentials: password.*=.*['\"][^'\"]{8,}['\"], api[_-]?key.*=.*['\"][^'\"]+['\"]\nWeak defaults: DEBUG.*=.*true, AUTH.*=.*false, CORS.*=.*\\*\nCrypto algorithms: MD5|SHA1|DES|RC4|ECB in security contexts\n\nTailor search approach based on discovery results.\n\nFocus on production-reachable code, not test fixtures or example files."
      },
      {
        "title": "2. VERIFY: Actual Behavior",
        "body": "For each match, trace the code path to understand runtime behavior.\n\nQuestions to answer:\n\nWhen is this code executed? (Startup vs. runtime)\nWhat happens if a configuration variable is missing?\nIs there validation that enforces secure configuration?"
      },
      {
        "title": "3. CONFIRM: Production Impact",
        "body": "Determine if this issue reaches production:\n\nIf production config provides the variable → Lower severity (but still a code-level vulnerability)\nIf production config missing or uses default → CRITICAL"
      },
      {
        "title": "4. REPORT: with Evidence",
        "body": "Example report:\n\nFinding: Hardcoded JWT Secret Fallback\nLocation: src/auth/jwt.ts:15\nPattern: const secret = process.env.JWT_SECRET || 'default';\n\nVerification: App starts without JWT_SECRET; secret used in jwt.sign() at line 42\nProduction Impact: Dockerfile missing JWT_SECRET\nExploitation: Attacker forges JWTs using 'default', gains unauthorized access"
      },
      {
        "title": "Quick Verification Checklist",
        "body": "Fallback Secrets: SECRET = env.get(X) or Y\n→ Verify: App starts without env var? Secret used in crypto/auth?\n→ Skip: Test fixtures, example files\n\nDefault Credentials: Hardcoded username/password pairs\n→ Verify: Active in deployed config? No runtime override?\n→ Skip: Disabled accounts, documentation examples\n\nFail-Open Security: AUTH_REQUIRED = env.get(X, 'false')\n→ Verify: Default is insecure (false/disabled/permissive)?\n→ Safe: App crashes or default is secure (true/enabled/restricted)\n\nWeak Crypto: MD5/SHA1/DES/RC4/ECB in security contexts\n→ Verify: Used for passwords, encryption, or tokens?\n→ Skip: Checksums, non-security hashing\n\nPermissive Access: CORS *, permissions 0777, public-by-default\n→ Verify: Default allows unauthorized access?\n→ Skip: Explicitly configured permissiveness with justification\n\nDebug Features: Stack traces, introspection, verbose errors\n→ Verify: Enabled by default? Exposed in responses?\n→ Skip: Logging-only, not user-facing\n\nFor detailed examples and counter-examples, see examples.md."
      }
    ],
    "body": "Insecure Defaults Detection\n\nFinds fail-open vulnerabilities where apps run insecurely with missing configuration. Distinguishes exploitable defaults from fail-secure patterns that crash safely.\n\nFail-open (CRITICAL): SECRET = env.get('KEY') or 'default' → App runs with weak secret\nFail-secure (SAFE): SECRET = env['KEY'] → App crashes if missing\nWhen to Use\nSecurity audits of production applications (auth, crypto, API security)\nConfiguration review of deployment files, IaC templates, Docker configs\nCode review of environment variable handling and secrets management\nPre-deployment checks for hardcoded credentials or weak defaults\nWhen NOT to Use\n\nDo not use this skill for:\n\nTest fixtures explicitly scoped to test environments (files in test/, spec/, __tests__/)\nExample/template files (.example, .template, .sample suffixes)\nDevelopment-only tools (local Docker Compose for dev, debug scripts)\nDocumentation examples in README.md or docs/ directories\nBuild-time configuration that gets replaced during deployment\nCrash-on-missing behavior where app won't start without proper config (fail-secure)\n\nWhen in doubt: trace the code path to determine if the app runs with the default or crashes.\n\nRationalizations to Reject\n\"It's just a development default\" → If it reaches production code, it's a finding\n\"The production config overrides it\" → Verify prod config exists; code-level vulnerability remains if not\n\"This would never run without proper config\" → Prove it with code trace; many apps fail silently\n\"It's behind authentication\" → Defense in depth; compromised session still exploits weak defaults\n\"We'll fix it before release\" → Document now; \"later\" rarely comes\nWorkflow\n\nFollow this workflow for every potential finding:\n\n1. SEARCH: Perform Project Discovery and Find Insecure Defaults\n\nDetermine 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.\n\nExample Search for patterns in **/config/, **/auth/, **/database/, and env files:\n\nFallback secrets: getenv.*\\) or ['\"], process\\.env\\.[A-Z_]+ \\|\\| ['\"], ENV\\.fetch.*default:\nHardcoded credentials: password.*=.*['\"][^'\"]{8,}['\"], api[_-]?key.*=.*['\"][^'\"]+['\"]\nWeak defaults: DEBUG.*=.*true, AUTH.*=.*false, CORS.*=.*\\*\nCrypto algorithms: MD5|SHA1|DES|RC4|ECB in security contexts\n\nTailor search approach based on discovery results.\n\nFocus on production-reachable code, not test fixtures or example files.\n\n2. VERIFY: Actual Behavior\n\nFor each match, trace the code path to understand runtime behavior.\n\nQuestions to answer:\n\nWhen is this code executed? (Startup vs. runtime)\nWhat happens if a configuration variable is missing?\nIs there validation that enforces secure configuration?\n3. CONFIRM: Production Impact\n\nDetermine if this issue reaches production:\n\nIf production config provides the variable → Lower severity (but still a code-level vulnerability) If production config missing or uses default → CRITICAL\n\n4. REPORT: with Evidence\n\nExample report:\n\nFinding: Hardcoded JWT Secret Fallback\nLocation: src/auth/jwt.ts:15\nPattern: const secret = process.env.JWT_SECRET || 'default';\n\nVerification: App starts without JWT_SECRET; secret used in jwt.sign() at line 42\nProduction Impact: Dockerfile missing JWT_SECRET\nExploitation: Attacker forges JWTs using 'default', gains unauthorized access\n\nQuick Verification Checklist\n\nFallback Secrets: SECRET = env.get(X) or Y → Verify: App starts without env var? Secret used in crypto/auth? → Skip: Test fixtures, example files\n\nDefault Credentials: Hardcoded username/password pairs → Verify: Active in deployed config? No runtime override? → Skip: Disabled accounts, documentation examples\n\nFail-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)\n\nWeak Crypto: MD5/SHA1/DES/RC4/ECB in security contexts → Verify: Used for passwords, encryption, or tokens? → Skip: Checksums, non-security hashing\n\nPermissive Access: CORS *, permissions 0777, public-by-default → Verify: Default allows unauthorized access? → Skip: Explicitly configured permissiveness with justification\n\nDebug Features: Stack traces, introspection, verbose errors → Verify: Enabled by default? Exposed in responses? → Skip: Logging-only, not user-facing\n\nFor detailed examples and counter-examples, see examples.md."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/atlas-secint/insecure-defaults",
    "publisherUrl": "https://clawhub.ai/atlas-secint/insecure-defaults",
    "owner": "atlas-secint",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/insecure-defaults",
    "downloadUrl": "https://openagent3.xyz/downloads/insecure-defaults",
    "agentUrl": "https://openagent3.xyz/skills/insecure-defaults/agent",
    "manifestUrl": "https://openagent3.xyz/skills/insecure-defaults/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/insecure-defaults/agent.md"
  }
}