security-gate

Scan codebases for hardcoded secrets, disabled TLS, unverified webhooks, and vulnerable dependencies.

Updated Jun 9, 2026
One-click install
npx skills add https://github.com/timikalo7/Execute --skill security-gate-timikalo7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-gate
Source: https://github.com/timikalo7/Execute/tree/main/.claude/skills/security-gate
Command: npx skills add https://github.com/timikalo7/Execute --skill security-gate-timikalo7

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Agents and developers often claim "security is fine" without actually checking. This Skill replaces self-attestation with a runnable security gate that scans a project for real vulnerabilities — hardcoded secrets, disabled TLS verification, committed .env files, unverified payment webhooks, and high/critical npm audit findings — and exits non-zero on genuine failures so it can block commits and CI pipelines. ## Core Features & Use Cases - Secret and misconfiguration detection: Finds private keys, AWS/GitHub/Slack/Stripe/Google/Anthropic/OpenAI tokens, generic secret assignments, disabled TLS verification, and git-tracked .env files. - File-level absence rules: Flags webhook endpoints that read request bodies without signature verification (FAIL) and file upload handlers with no visible type or size check (WARN). - Dependency auditing with exceptions: Runs npm audit at a configurable level, reports root advisories instead of inherited noise, and supports per-advisory, expiring exceptions via security-exceptions.json. - Warning ratchet: Budgets warning counts per scan scope so warning piles can only shrink, never silently grow; over-budget findings fail the push. - Use Case: Before committing a new Stripe webhook endpoint, run the gate to confirm the handler verifies signatures, no secrets leaked into source, and npm audit is clean — the commit is blocked automatically if any check fails. ## Quick Start Run the security gate on my project directory and fail the build if it finds hardcoded secrets, unverified webhooks, or high-severity npm audit advisories.

Frequently Asked Questions about security-gate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a security scan that fails CI on real findings?

Run node scan.mjs --dir <project> --audit-level high from the skill directory. The scanner exits with a non-zero code on any FAIL-severity finding, so it can gate commits, pre-push hooks, or CI pipelines directly.

How do I detect hardcoded secrets in JavaScript code?

The scanner checks source files for private keys, AWS, GitHub, Slack, Stripe, Google, Anthropic, and OpenAI token patterns, plus generic secret assignments. It skips placeholders, environment variable reads, and NEXT_PUBLIC_ prefixed values to reduce false positives.

What if an npm audit advisory has no fix available?

Create a security-exceptions.json in the project naming the specific advisory URL, the reason, and an expiry date. Exceptions are per-advisory and expire loudly — anything not named still fails, and an expired entry fails harder than the original advisory.

Does the scanner catch unverified Stripe webhook endpoints?

Yes. Files named like webhook endpoints that read a request body but never verify a signature are flagged as FAIL. The check is cleared by constructEvent, createHmac with timingSafeEqual, svix, verifySignature, or stripe-signature header reads.

Why are XSS sinks and file uploads only warnings, not failures?

Line-based regex cannot tell whether an assigned value is user input or whether upload validation lives in middleware the file cannot see. Blocking on these would produce false failures that get bypassed, so they are budgeted warnings instead.

What are the limitations of regex-based security scanning?

The scanner cannot verify authorization logic, multi-tenant isolation, mass assignment, or business-logic abuse. For those, the skill delegates to a security-reviewer agent or runs semgrep dataflow rules when semgrep is installed.