
Configure Security
- 67 installs
- 49 repo stars
- Updated August 4, 2026
- laurigates/claude-plugins
Helps with security tasks.
About
configure-security is a Claude Code skill for security. It helps solo builders move faster with AI-assisted development.
- configure-security
- Security
- AI-coding skill
Configure Security by the numbers
- 67 all-time installs (skills.sh)
- Ranked #1,195 of 2,203 Security skills by installs in the Skillselion catalog
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/laurigates/claude-plugins --skill configure-securityAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 67 |
|---|---|
| repo stars | ★ 49 |
| Last updated | August 4, 2026 |
| Repository | laurigates/claude-plugins ↗ |
What it does
Helps with security tasks.
Files
/configure:security
Check and configure security scanning tools for dependency audits, SAST, and secret detection.
When to Use This Skill
| Use this skill when... | Use another approach when... |
|---|---|
| Setting up dependency auditing, SAST, or secret detection for a project | Running a one-off security scan (use gitleaks detect or npm audit directly) |
| Checking project compliance with security scanning standards | Reviewing code for application-level vulnerabilities (use security-audit agent) |
| Configuring Dependabot, CodeQL, or TruffleHog in CI/CD | Managing GitHub repository security settings via the web UI |
| Creating or updating a SECURITY.md policy | Writing security documentation beyond the policy template |
| Auditing which security tools are missing from a project | Investigating a specific CVE or vulnerability |
Context
- Package files: !
find . -maxdepth 1 \( -name 'package.json' -o -name 'pyproject.toml' -o -name 'Cargo.toml' -o -name 'go.mod' \) - Gitleaks config: !
find . -maxdepth 1 -name \'.gitleaks.toml\' - Pre-commit config: !
find . -maxdepth 1 -name \'.pre-commit-config.yaml\' - Workflows dir: !
find . -maxdepth 1 -type d -name \'.github/workflows\' - Dependabot config: !
find . -maxdepth 1 -name \'.github/dependabot.yml\' - CodeQL workflow: !
find .github/workflows -maxdepth 1 -name 'codeql*' - Security policy: !
find . -maxdepth 1 -name \'SECURITY.md\'
Security scanning layers: 1. Dependency auditing - Check for known vulnerabilities in dependencies 2. SAST (Static Application Security Testing) - Analyze code for security issues 3. Secret detection - Prevent committing secrets to version control
Parameters
Parse from command arguments:
--check-only: Report status without offering fixes--fix: Apply all fixes automatically without prompting--type <type>: Focus on specific security type (dependencies, sast, secrets, all)
Execution
Execute this security scanning configuration check:
Step 1: Fetch latest tool versions
Verify latest versions before configuring:
1. Trivy: Check GitHub releases 2. Grype: Check GitHub releases 3. gitleaks: Check GitHub releases 4. pip-audit: Check PyPI 5. cargo-audit: Check crates.io 6. CodeQL: Check GitHub releases
Use WebSearch or WebFetch to verify current versions.
Step 2: Detect project languages and tools
Identify project languages and existing security tools:
| Indicator | Language/Tool | Security Tools |
|---|---|---|
package.json | JavaScript/TypeScript | npm audit, Snyk |
pyproject.toml | Python | pip-audit, safety, bandit |
Cargo.toml | Rust | cargo-audit, cargo-deny |
.gitleaks.toml | gitleaks | Secret scanning |
.github/workflows/ | GitHub Actions | CodeQL, Dependabot |
Step 3: Analyze current security state
Check existing security configuration across three areas:
Dependency Auditing:
- Package manager audit configured
- Audit scripts in package.json/Makefile
- Dependabot enabled
- Dependency review action in CI
- Auto-merge for minor updates configured
SAST Scanning:
- CodeQL workflow exists
- Semgrep configured
- Bandit configured (Python)
- SAST in CI pipeline
Secret Detection:
- Gitleaks configured with
.gitleaks.toml - Pre-commit hook configured
- Git history scanned
- TruffleHog configured (optional complement)
Step 4: Generate compliance report
Print a formatted compliance report showing status for each security component across dependency auditing, SAST scanning, secret detection, and security policies.
If --check-only is set, stop here.
For the compliance report format, see REFERENCE.md.
Step 5: Configure dependency auditing (if --fix or user confirms)
Based on detected language:
JavaScript/TypeScript (npm/bun): 1. Add audit scripts to package.json 2. Create Dependabot config .github/dependabot.yml 3. Create dependency review workflow .github/workflows/dependency-review.yml
Python (pip-audit): 1. Install pip-audit: uv add --group dev pip-audit 2. Create audit script
Rust (cargo-audit): 1. Install cargo-audit: cargo install cargo-audit --locked 2. Configure in .cargo/audit.toml
For complete configuration templates, see REFERENCE.md.
Step 6: Configure SAST scanning (if --fix or user confirms)
1. Create CodeQL workflow .github/workflows/codeql.yml with detected languages 2. For Python projects, install and configure Bandit 3. Run Bandit: uv run bandit -r src/ -f json -o bandit-report.json
For CodeQL workflow and Bandit configuration templates, see REFERENCE.md.
Step 7: Configure secret detection (if --fix or user confirms)
1. Install gitleaks: brew install gitleaks (or go install github.com/gitleaks/gitleaks/v8@latest) 2. Create .gitleaks.toml with project-specific allowlists 3. Run initial scan: gitleaks detect --source . 4. Add pre-commit hook to .pre-commit-config.yaml 5. Optionally configure TruffleHog workflow for CI
For gitleaks, TruffleHog, and CI workflow configuration templates, see REFERENCE.md.
Step 8: Create security policy
Create SECURITY.md with:
- Supported versions table
- Vulnerability reporting process (email, expected response time, disclosure policy)
- Information to include in reports
- Security best practices for users and contributors
- Automated security tools list
For the SECURITY.md template, see REFERENCE.md.
Step 9: Configure CI/CD integration
Create comprehensive security workflow .github/workflows/security.yml with jobs for:
- Dependency audit
- Secret scanning (TruffleHog)
- SAST scan (CodeQL)
Schedule weekly scans in addition to push/PR triggers.
For the CI security workflow template, see REFERENCE.md.
Step 10: Update standards tracking
Update .project-standards.yaml:
components:
security: "2025.1"
security_dependency_audit: true
security_sast: true
security_secret_detection: true
security_policy: true
security_dependabot: trueStep 11: Report configuration results
Print a summary of all changes made across dependency auditing, SAST scanning, secret detection, security policy, and CI/CD integration. Include next steps for reviewing Dependabot PRs, CodeQL findings, and enabling private vulnerability reporting.
For the results report format, see REFERENCE.md.
Agentic Optimizations
| Context | Command |
|---|---|
| Quick compliance check | /configure:security --check-only |
| Auto-fix all security gaps | /configure:security --fix |
| Dependencies only | /configure:security --type dependencies |
| Secret detection only | /configure:security --type secrets |
| SAST scanning only | /configure:security --type sast |
| Verify secrets scan | gitleaks detect --source . --verbose |
Flags
| Flag | Description |
|---|---|
--check-only | Report status without offering fixes |
--fix | Apply all fixes automatically without prompting |
--type <type> | Focus on specific security type (dependencies, sast, secrets, all) |
Error Handling
- No package manager detected: Skip dependency auditing
- GitHub Actions not available: Warn about CI limitations
- Secrets found in history: Provide remediation guide
- CodeQL unsupported language: Skip SAST for that language
See Also
/configure:workflows- GitHub Actions workflow standards/configure:pre-commit- Pre-commit hook configuration/configure:all- Run all compliance checks- GitHub Security Features: https://docs.github.com/en/code-security
- gitleaks: https://github.com/gitleaks/gitleaks
- CodeQL: https://codeql.github.com
configure-security Reference
Compliance Report Format
Security Scanning Compliance Report
====================================
Project: [name]
Languages: [TypeScript, Python]
Dependency Auditing:
npm audit configured [CONFIGURED | MISSING]
Dependabot enabled [ENABLED | DISABLED]
Dependency review .github/workflows/ [CONFIGURED | MISSING]
Audit scripts package.json [CONFIGURED | MISSING]
Auto-merge configured [OPTIONAL | MISSING]
SAST Scanning:
CodeQL workflow .github/workflows/ [CONFIGURED | MISSING]
CodeQL languages javascript, python [CONFIGURED | INCOMPLETE]
Semgrep configured [OPTIONAL | MISSING]
Bandit (Python) configured [CONFIGURED | MISSING]
Secret Detection:
Gitleaks .gitleaks.toml [CONFIGURED | MISSING]
Pre-commit hook .pre-commit-config.yaml [CONFIGURED | MISSING]
TruffleHog .github/workflows/ [OPTIONAL | MISSING]
Git history scanned clean [CLEAN | SECRETS FOUND]
Security Policies:
SECURITY.md exists [EXISTS | MISSING]
Security advisories enabled [ENABLED | DISABLED]
Private vulnerability enabled [ENABLED | DISABLED]
Overall: [X issues found]
Recommendations:
- Enable Dependabot for automated dependency updates
- Add CodeQL workflow for SAST scanning
- Scan git history for leaked secrets
- Create SECURITY.md for responsible disclosureDependency Auditing Templates
npm Audit Scripts (package.json)
{
"scripts": {
"audit": "npm audit --audit-level=moderate",
"audit:fix": "npm audit fix",
"audit:production": "npm audit --production --audit-level=moderate"
}
}Dependabot Config (.github/dependabot.yml)
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
labels:
- "dependencies"
- "automated"
ignore:
# Ignore major version updates for now
- dependency-name: "*"
update-types: ["version-update:semver-major"]
groups:
# Group patch updates together
patch:
patterns:
- "*"
update-types:
- "patch"
# Group minor updates together
minor:
patterns:
- "*"
update-types:
- "minor"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
- "github-actions"Dependency Review Workflow (.github/workflows/dependency-review.yml)
name: Dependency Review
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Dependency Review
uses: actions/dependency-review-action@v5
with:
fail-on-severity: moderate
allow-licenses: MIT, Apache-2.0, BSD-3-Clause, ISCPython pip-audit
Install: uv add --group dev pip-audit
Audit script (scripts/audit-dependencies.sh):
#!/bin/bash
uv run pip-audit --desc --fixRust cargo-audit
Install: cargo install cargo-audit --locked
Configuration (.cargo/audit.toml):
[advisories]
db-path = "~/.cargo/advisory-db"
db-urls = ["https://github.com/rustsec/advisory-db"]
[output]
format = "terminal"
quiet = falseSAST Templates
CodeQL Workflow (.github/workflows/codeql.yml)
name: CodeQL
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 1' # Weekly on Monday
permissions:
security-events: write
contents: read
actions: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'javascript', 'python' ] # Adjust for your languages
# CodeQL supports: 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift'
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: +security-extended,security-and-quality
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{ matrix.language }}"Python Bandit Configuration
Install: uv add --group dev bandit
Configuration (.bandit):
# .bandit
exclude_dirs:
- /tests/
- /venv/
- /.venv/
- /migrations/
skips:
- B101 # assert_used (OK in tests)
tests:
- B201 # flask_debug_true
- B301 # pickle
- B302 # marshal
- B303 # md5
- B304 # ciphers
- B305 # cipher_modes
- B306 # mktemp_q
- B307 # eval
- B308 # mark_safe
- B309 # httpsconnection
- B310 # urllib_urlopen
- B311 # random
- B312 # telnetlib
- B313 # xml_bad_cElementTree
- B314 # xml_bad_ElementTree
- B315 # xml_bad_expatreader
- B316 # xml_bad_expatbuilder
- B317 # xml_bad_sax
- B318 # xml_bad_minidom
- B319 # xml_bad_pulldom
- B320 # xml_bad_etree
- B321 # ftplib
- B323 # unverified_context
- B324 # hashlib
- B325 # tempnam
- B401 # import_telnetlib
- B402 # import_ftplib
- B403 # import_pickle
- B404 # import_subprocess
- B405 # import_xml_etree
- B406 # import_xml_sax
- B407 # import_xml_expatreader
- B408 # import_xml_expatbuilder
- B409 # import_xml_minidom
- B410 # import_xml_pulldom
- B411 # import_xmlrpclib
- B412 # import_httpoxy
- B413 # import_pycrypto
- B501 # request_with_no_cert_validation
- B502 # ssl_with_bad_version
- B503 # ssl_with_bad_defaults
- B504 # ssl_with_no_version
- B505 # weak_cryptographic_key
- B506 # yaml_load
- B507 # ssh_no_host_key_verification
- B601 # paramiko_calls
- B602 # shell_injection_subprocess
- B603 # subprocess_without_shell_equals_true
- B604 # call_with_shell_equals_true
- B605 # start_process_with_a_shell
- B606 # start_process_with_no_shell
- B607 # start_process_with_partial_path
- B608 # hardcoded_sql_expressions
- B609 # linux_commands_wildcard_injection
- B610 # django_extra_used
- B611 # django_rawsql_used
- B701 # jinja2_autoescape_false
- B702 # use_of_mako_templates
- B703 # django_mark_safeRun: uv run bandit -r src/ -f json -o bandit-report.json
Secret Detection Templates
Gitleaks Pre-commit Hook
Add to .pre-commit-config.yaml:
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaksTruffleHog Workflow (.github/workflows/trufflehog.yml)
name: TruffleHog
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0 # Full history for scanning
- name: TruffleHog OSS
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
extra_args: --debug --only-verifiedGitleaks Configuration (.gitleaks.toml)
title = "Gitleaks Configuration"
[extend]
useDefault = true
[allowlist]
description = "Allowlist for false positives"
paths = [
'''test/fixtures/.*''',
'''.*\.test\.(ts|js)$'''
]
regexes = [
'''example\.com''',
'''localhost''',
]Gitleaks Workflow (.github/workflows/gitleaks.yml)
name: Gitleaks
on: [push, pull_request]
jobs:
scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Gitleaks
uses: gitleaks/gitleaks-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}SECURITY.md Template
# Security Policy
## Supported Versions
We actively support the following versions with security updates:
| Version | Supported |
| ------- | ------------------ |
| 1.x | :white_check_mark: |
| < 1.0 | :x: |
## Reporting a Vulnerability
We take the security of our project seriously. If you believe you've found a security vulnerability, please report it to us as described below.
**Please do not report security vulnerabilities through public GitHub issues.**
### Reporting Process
1. **Email**: Send details to security@example.com
2. **Expected Response**: Within 48 hours
3. **Disclosure**: Coordinated disclosure after fix
### Information to Include
- Type of vulnerability
- Full paths of source file(s) affected
- Location of affected source code (tag/branch/commit)
- Step-by-step instructions to reproduce
- Proof-of-concept or exploit code (if possible)
- Impact of the vulnerability
### What to Expect
- Confirmation of receipt within 48 hours
- Regular updates on progress
- Credit in security advisory (if desired)
- Coordinated disclosure timeline
## Security Best Practices
### For Users
- Keep dependencies up to date
- Use secrets management (never commit secrets)
- Enable 2FA on accounts
- Review security advisories
### For Contributors
- Run `npm audit` before submitting PRs
- Never commit secrets or credentials
- Use environment variables for configuration
- Follow secure coding guidelines
## Automated Security
This project uses:
- **Dependabot**: Automated dependency updates
- **CodeQL**: Static application security testing
- **Gitleaks**: Pre-commit secret scanning
- **TruffleHog**: Git history secret scanning
## Security Advisories
Security advisories are published through:
- GitHub Security Advisories
- Project release notes
- Security mailing list (if applicable)
## Contact
- **Security Email**: security@example.com
- **Encryption Key**: [Link to PGP key if applicable]CI Security Workflow (.github/workflows/security.yml)
name: Security Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * 1' # Weekly on Monday
permissions:
contents: read
security-events: write
jobs:
dependency-audit:
name: Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '22'
- name: npm audit
run: npm audit --audit-level=moderate
continue-on-error: true
secret-scan:
name: Secret Scanning
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: TruffleHog
uses: trufflesecurity/trufflehog@main
with:
path: ./
base: ${{ github.event.repository.default_branch }}
head: HEAD
sast-scan:
name: SAST Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: javascript, python
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4Results Report Format
Security Scanning Configuration Complete
=========================================
Dependency Auditing:
npm audit scripts configured
Dependabot enabled
Dependency review workflow added
Auto-grouping configured
SAST Scanning:
CodeQL workflow added
Languages: JavaScript, Python
Queries: security-extended, security-and-quality
Scheduled weekly scans
Secret Detection:
Gitleaks configured with .gitleaks.toml
Pre-commit hook configured
TruffleHog workflow added
Git history scanned: CLEAN
Security Policy:
SECURITY.md created
Reporting process documented
Supported versions defined
CI/CD Integration:
Security workflow configured
All scans integrated
Next Steps:
1. Review and approve Dependabot PRs:
GitHub > Pull Requests > Filter by "dependencies"
2. Review CodeQL findings:
GitHub > Security > Code scanning alerts
3. Enable private vulnerability reporting:
GitHub > Settings > Security > Private vulnerability reporting
4. Set up security notifications:
GitHub > Watch > Custom > Security alerts
5. Run initial scans:
git push # Triggers workflows
Documentation: SECURITY.md