insecure-defaults

insecure-defaults is a skill for Claude Code, Codex from NOMARJ/sigil. It costs 76 tokens per session (713 once invoked), scanned A, original, Apache-2.0.

Detect insecure default configurations, hardcoded credentials, fail-open security patterns, and dangerous defaults in code and config files. Part of the Nomark Method Layer 1 security scanning. Use whenever code is committed, config files change, or someone says 'check for secrets', 'credential scan', 'security…

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nomarj/sigil/insecure-defaults
Any agent
npx skills add NOMARJ/sigil --skill insecure-defaults
Clone the repo
git clone --depth 1 https://github.com/NOMARJ/sigil

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for insecure-defaults

README.md
[![agentmods](https://agentmods.dev/badge/skills/nomarj/sigil/insecure-defaults.svg)](https://agentmods.dev/skills/nomarj/sigil/insecure-defaults)
Your own site
<a href="https://agentmods.dev/skills/nomarj/sigil/insecure-defaults"><img src="https://agentmods.dev/badge/skills/nomarj/sigil/insecure-defaults.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00076 $0.00713
Opus 5 $0.00038 $0.00357
Sonnet 5 $0.00015 $0.00143
Haiku 4.5 $0.00008 $0.00071

Measured today against content hash 6d1adf9d635d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

insecure-defaults scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packs/security/skills/owasp-security/insecure-defaults/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Insecure Defaults Scanner

Adapted from Trail of Bits' insecure-defaults skill. Layer 1 automated scan — runs on every change, zero human intervention.

What You're Looking For

Hardcoded Credentials

  • API keys, tokens, passwords in source code
  • Connection strings with embedded passwords
  • Private keys, certificates, or secrets committed to repo
  • .env files or secret configs in version control
  • Base64-encoded credentials (people think encoding = hiding)

Fail-Open Patterns

  • Authentication that defaults to "allow" on error
  • Authorization checks with catch-all true returns
  • CORS set to * in production configs
  • Security middleware that can be bypassed with specific headers
  • Feature flags that default to "enabled" for premium features

Dangerous Defaults

  • Debug mode enabled in production configs
  • Verbose error messages exposing internals
  • Default admin credentials still active
  • HTTPS not enforced (HTTP fallback allowed)
  • Session tokens with excessive lifetimes
  • Missing rate limiting on authentication endpoints
  • Permissive Content-Security-Policy headers

Configuration Issues

  • Production configs committed alongside development configs
  • Secrets in docker-compose files, Kubernetes manifests, or CI configs
  • Database connections without SSL/TLS enforcement
  • Logging configuration that captures sensitive data (PII, tokens, passwords)

Scan Protocol

1. Identify all files in the change set
2. For each file, apply pattern matching:
   - Regex patterns for common secret formats (AWS keys, JWT tokens, etc.)
   - AST analysis for authentication/authorization logic patterns
   - Config file analysis for dangerous settings
3. Classify findings:
   - CRITICAL: Hardcoded secret or credential → Block commit
   - WARNING: Fail-open pattern or dangerous default → Flag for review
   - INFO: Potential issue, needs context → Log
4. Output findings in structured format

Common False Positives

These look like secrets but usually aren't — verify before flagging:

  • Example/placeholder values in documentation or tests (sk_test_..., AKIAIOSFODNN7EXAMPLE)
  • Hash constants (SHA-256 of known values)
  • Base64-encoded non-secret data
  • Environment variable references (process.env.SECRET is fine; the actual value is not)

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 82 lines · 76 tokens per session scan A 6d1adf9d635d

Subscribe to this mod's changes

insecure-defaults is a skill published in the GitHub repository NOMARJ/sigil (5 stars, last pushed today), licensed Apache-2.0. It adds 76 tokens to every session and 713 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

sftp-cc

通用 SFTP 上传工具,通过自然语言触发,将本地项目文件上传到远程服务器。支持增量上传、私钥自动绑定与权限修正。.

toohamster/sftp-cc · 41 tokens

devtools-event-client

Create typed EventClient for a library. Define event maps with typed payloads, pluginId auto-prepend namespacing, emit()/on()/onAll()/onAllPluginEvents() API. Connection lifecycle (5 retries, 300ms), event queuing, enabled/disabled state, SSR fallbacks, singleton pattern. Unique pluginId requirement to avoid event…

TanStack/devtools · 79 tokens

genbench

Run Vendo's buy-vs-build generation benchmark — generation time + accuracy of the real Vendo pipeline vs raw-Claude baselines (diy, claude-code) on JSON-defined worlds. Use when asked to benchmark generation, compare Vendo vs raw models, measure generation speed/cost, or add genbench worlds/cases.

runvendo/vendo · 70 tokens

jk

Jenkins CLI for controllers. Use when users need to manage jobs, pipelines, config.xml, runs, logs, artifacts, credentials, nodes, or queues in Jenkins. Triggers include "jenkins", "jk", "pipeline", "build", "job create", "job config", "config.xml", "run logs", "jenkins credentials", "jenkins node".

avivsinai/jenkins-cli · 78 tokens

blame

Show which regent step last modified each line of a file. Use when investigating file provenance or debugging.

regent-vcs/re_gent · 22 tokens

assess-patch-risk

Assess an immutable patch artifact's program impact, regression risk, and auto-merge eligibility. Use for generated patch files, provider pull-request diffs, or commit ranges when reviewers need evidence about affected runtime paths, contracts, tests, and recoverability. This skill is read-only and does not generate…

bex-co/bex-security · 77 tokens