Skip to content
cccskills
FreePublished on GitHub

secret-scan

Hardcoded-secret detection — AWS keys, GitHub PATs, Slack tokens, Stripe keys, generic high-entropy strings. Pre-commit (`--staged-only`), explicit paths, or full repo. Use when guarding `git commit`, auditing a repo for leaked credentials, validating no secrets entered the diff before push, or producing a rotation list for an exposed-secret incident.

The English summary is being prepared. Showing the original description.

See how to install

Files included (3)

  • SKILL.md3.6 KB
  • evals/evals.json3.6 KB
  • evals/trigger-eval.json1.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Vulnetix Secret Scan Skill

Use when

  • Pre-commit: confirm no secrets in staged files (--staged-only).
  • Pre-push: scan diff vs origin/HEAD for high-confidence leaks.
  • Audit: full-repo scan for an exposed-secret incident.
  • Producing a rotation list — which provider keys need to be revoked NOW.
  • CI gate: block merge if any high-confidence secret detected.

Don't use for

  • Vulnerability detection — use sast-scan or vulnetix scan --sca.
  • Validating an already-fixed leak — use git filter-repo or BFG to remove from history.

Conventions

Follows skills/_lib/contract.md. In short: use the vulnetix_* MCP tools when the agent has them and the CLI otherwise — both shape their own output, so there is no jq step any more. Independent calls go out as concurrent Bash tool calls in one message. One trailing suggestion, not a playbook. See the contract for surface selection, output style and memory writes.

Step 1: Load capabilities

Read .vulnetix/capabilities.yaml. Note binaries.git (required for --staged-only).

Step 2: Decide scope

  • --staged-only: git diff --cached --name-only for the file list.
  • --paths: explicit list.
  • Default: changed files vs. main branch, fallback to whole repo.

Step 3: Run scan

vulnetix secrets --paths "$PATHS" -o json > .vulnetix/secrets.${TIMESTAMP}.json

Or via integrated scan:

vulnetix scan --evaluate-secrets --paths "$PATHS" -o json

Step 4: Render

Secret findings: N (high-confidence: M)

| Type | File:Line | Snippet (redacted) | Confidence |

For each finding, emit a redacted snippet (replace 60% of the secret with *). Never print the full secret.

Step 5: Remediation guidance

For each unique secret type, surface the standard rotation/revocation steps (AWS, GCP, GitHub PAT, Slack, Stripe, etc.). Do not auto-rotate.

If a secret is found in a committed file (not just staged):

  • Suggest git filter-repo or BFG repo-cleaner
  • Strongly recommend rotating the credential since it's in git history

Memory update

Append a sanitized record to .vulnetix/secrets/${TIMESTAMP}.summary.yaml (counts by type, file paths, no values).

Edge cases & gotchas

  • Output redacts 60% of each detected secret. Never re-print the un-redacted value.
  • High-confidence findings include AWS / GitHub PAT / Slack / Stripe patterns. Generic high-entropy strings are medium-confidence; tune your CI gate accordingly.
  • --staged-only reads git diff --cached --name-only — files not yet staged are skipped. Run AFTER git add.
  • Detection is regex-based; obfuscated secrets (split across vars, base64-wrapped) may be missed. Pair with a hand review for high-stakes audits.
  • For secrets ALREADY in git history, this skill detects them on next change only. Use gitleaks --log-opts="--all" for full history scan, then BFG / filter-repo to remove.
  • False-positive suppression uses inline comments (# pix-ignore-secret) on the next line; the suppression is per-line, not per-pattern.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Dockerfile / Containerfile / compose analysis plus optional Trivy / Grype / Syft composition when those binaries are present. Use when reviewing a Dockerfile PR, gating `docker build`, building an image SBOM, evaluating base-image risk, or auditing a registry image for CVEs.

The English summary is being prepared. Showing the original description.

Vulnetix/pix-ai-coding-assistant9Updated Sep 28, 2026

Show what this repository has already decided about its vulnerabilities, read from the durable record rather than by scanning again — open versus resolved, the decision taken on each, and what is still waiting. Use when picking up triage after a break, auditing past decisions, onboarding to a repository with security history, or checking nothing high-severity is open before a release.

The English summary is being prepared. Showing the original description.

Vulnetix/pix-ai-coding-assistant9Updated Sep 28, 2026

Dependency-conflict resolution when a `fix` version bump fails — diagnose the peer-dep tree, find a compatible safe version set, propose package-manager overrides (`overrides`/`resolutions`/`replace`/`[patch]`), fall back to safe-harbour inline patching. Use when an upgrade is blocked by transitive constraints, a peer-dep conflict surfaces, or you need to override a vulnerable transitive without bumping the parent.

The English summary is being prepared. Showing the original description.

Vulnetix/pix-ai-coding-assistant9Updated Sep 28, 2026

Work through which package to add for a capability, and what each option costs — maintenance, licence, bundle weight, transitive risk, and whether the platform already does it. Use when someone needs a library for a job and has not picked one yet, when weighing two candidates, or when a package looks convenient but unmaintained.

The English summary is being prepared. Showing the original description.

Vulnetix/pix-ai-coding-assistant9Updated Sep 28, 2026

IDS/IPS detection content for a CVE — Snort/Suricata-compatible rules, YARA signatures, ProjectDiscovery Nuclei templates, traffic-filter rules. Capability-aware: skips families when the binary is not installed (no Snort = no Snort output). Use when deploying defences for a CVE without a patch, augmenting SAST with active detection, or feeding the SOC engineering pipeline.

The English summary is being prepared. Showing the original description.

Vulnetix/pix-ai-coding-assistant9Updated Sep 28, 2026

End-of-life detection for runtimes (Node, Python, Java, Go, .NET) and key packages — surfaces past-EOL items, items reaching EOL within 90 days, and EOL base images for containers. Use when planning a runtime upgrade, auditing for unsupported versions, gating a deploy against EOL deps, or producing a remediation roadmap.

The English summary is being prepared. Showing the original description.

Vulnetix/pix-ai-coding-assistant9Updated Sep 28, 2026

See all skills by Vulnetix

Report a problem with this skill