Skills secrets-gitleaks
๐Ÿ“ฆ

secrets-gitleaks

v0.1.0 Content revision r2 High Risk ๐Ÿ”‘ Env variables๐ŸŒ Network accessโš™๏ธ External commands๐Ÿ“ Filesystem access

Scan Repositories for Hardcoded Secrets

Hardcoded credentials can expose systems and fail compliance checks. This skill guides Gitleaks scans, configurations, hooks, CI pipelines, triage, and remediation.

Supports: Claude Codex Code(CC)
โš ๏ธ 38 Poor

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "secrets-gitleaks" from https://skillstore.io/skills/agentsecops-secrets-gitleaks.md and its manifest at https://skillstore.io/api/skills/agentsecops-secrets-gitleaks/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.

Your Agent should still show its plan and request any confirmation required by the security policy.

Agent-readable resources

Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.

Test it

Using "secrets-gitleaks". Review this repository for exposed credentials.

Expected outcome:

Scan complete: three findings require review. The summary lists affected files, rule names, confidence, and rotation priorities without secret values.

Using "secrets-gitleaks". Reduce false positives without weakening production coverage.

Expected outcome:

The proposed allowlist targets two verified fixture paths and one exact placeholder. Documentation and source directories remain scanned.

Using "secrets-gitleaks". Prepare a secure GitHub Actions integration.

Expected outcome:

The workflow uses immutable dependencies, full history, redacted output, restricted artifacts, and a blocking pull-request check.

Security Audit

High Risk
v9 โ€ข 7/23/2026 Open versioned report

Most static alerts are false positives caused by Markdown formatting, detector examples, placeholders, and expected CI secret references. Three static findings are confirmed, and semantic review found unredacted CI outputs, broad allowlists, mutable dependencies, and unsafe cleanup guidance. No prompt injection or live credentials were found.

13
Files scanned
3,321
Lines analyzed
3
Review items
0
False positives ignored

Confirmed security concerns (5)

High
Unredacted secret reports retained as CI artifacts
Both CI templates create Gitleaks reports without redaction and retain them as artifacts, potentially exposing detected secret values to artifact readers.
The report commands visibly omit --redact, and subsequent artifact steps retain their output. Gitleaks JSON reports can include matched secret values.
High
Full secret findings may be printed to CI logs
The GitLab incremental job prints the complete findings document with jq, which can place detected credentials in broadly retained CI logs.
The command directly passes the full findings file to jq without field selection or redaction. This output is written to the job log.
High
Recommended configuration broadly suppresses detection
The balanced configuration globally excludes documentation, tests, fixtures, distributions, and common weak values, allowing real secrets in those locations to escape scanning.
The exclusions apply globally, and SKILL.md recommends this configuration. Real credentials can occur in excluded text, documentation, test, or generated files.
Medium
CI templates use mutable third-party dependencies
Workflow actions and container images use version tags or latest tags instead of immutable commits and digests, increasing upstream supply-chain exposure.
The cited dependencies use v2, v4, v8.18.0, or latest references. These names can resolve to different content after template adoption.
Medium
Test cleanup can reset a legitimate commit
The workstation test expects the secret commit to fail but then resets HEAD, which can remove the prior legitimate commit when no test commit exists.
The documented commit should be blocked, so HEAD does not advance. Running git reset HEAD~1 afterward targets the commit preceding the test.
Capability review items (3)

These are real local capabilities that may be expected for this skill, so they require review but are not counted as confirmed malicious behavior.

High
Hardcoded URL
curl -X POST https://siem.company.com/api/events \
The example posts the complete Gitleaks report to a SIEM endpoint without requiring redaction. Reports may contain detected secret values, creating disclosure risk.
High
xargs command (can execute arbitrary commands)
gitleaks detect --report-format json | jq -r '.[0] | .File, .StartLine' | xargs -I {} sh -c 'sed -n
Repository-controlled file names are substituted into sh -c without safe argument passing. Shell metacharacters in a malicious file name can execute commands.
Medium
Temp directory access
echo 'api_key = "sk_live_actual_key"' > /tmp/test_detection.py
The command overwrites a fixed path in a shared temporary directory. A local attacker could pre-create a symlink and redirect the write.

Risk Factors

๐Ÿ”‘ Env variables (35)
๐ŸŒ Network access (26)
โš™๏ธ External commands (50)
๐Ÿ“ Filesystem access (9)
Audited by: codex View Audit History โ†’
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/agentsecops-secrets-gitleaks/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/agentsecops-secrets-gitleaks/security.svg)](https://skillstore.io/skills/agentsecops-secrets-gitleaks?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/agentsecops-secrets-gitleaks?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/agentsecops-secrets-gitleaks/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/agentsecops-secrets-gitleaks.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA ยท BibTeX ยท CFF)

APA citation

AgentSecOps. (2026). secrets-gitleaks security audit report (audit version 9) [Author version 0.1.0]. Skillstore. https://skillstore.io/skills/agentsecops-secrets-gitleaks/audits/9

BibTeX citation

@techreport{agentsecops-agentsecops-secrets-gitleaks-2026, author = {AgentSecOps}, title = {secrets-gitleaks security audit report (audit version 9)}, institution = {Skillstore}, year = {2026}, number = {9}, url = {https://skillstore.io/skills/agentsecops-secrets-gitleaks/audits/9}, note = {Author version 0.1.0} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "secrets-gitleaks security audit report (audit version 9)" version: "0.1.0" type: report authors: - name: "AgentSecOps" date-released: "2026-07-23" url: "https://skillstore.io/skills/agentsecops-secrets-gitleaks/audits/9" identifiers: - type: other value: "skillstore:agentsecops-secrets-gitleaks:audit:9" description: "Skillstore immutable audit report identifier"

Skillstore Score

Why this score Evidence Confidence: Medium
59
Architecture
100
Maintainability
87
Content
70
Community
87
Spec Compliance

What You Can Build

Audit a repository

Run a redacted full-history scan, classify findings, and prepare a prioritized remediation summary.

Prevent secret commits

Configure a pre-commit control and focused allowlists for a development team.

Add a CI security gate

Adapt a pipeline template to block new secrets and retain protected evidence.

Try These Prompts

Run a safe repository scan
Scan this repository with Gitleaks. Use redaction, inspect current files and git history, then summarize findings without revealing secret values.
Configure pre-commit protection
Design a Gitleaks pre-commit setup for this repository. Keep allowlists narrow, explain prerequisites, and provide a safe validation procedure.
Build a CI secret gate
Adapt the Gitleaks CI template for this platform. Pin dependencies, redact reports, restrict artifacts, and fail only on verified new findings.
Plan an enterprise rollout
Create a Gitleaks rollout plan using baselines, custom rules, review ownership, remediation deadlines, protected reporting, and measurable compliance evidence.

Best Practices

  • Use redaction for terminal output, reports, artifacts, and notifications.
  • Rotate exposed credentials before removing them from current code or history.
  • Review every allowlist entry and test that representative real secrets remain detectable.

Avoid

  • Do not publish complete findings files or detected values in CI logs.
  • Do not exclude entire source, documentation, or test trees without documented review.
  • Do not treat history cleanup as a substitute for credential rotation.

Frequently Asked Questions

Does this skill install Gitleaks?
No. It provides installation guidance and templates, but Gitleaks and git must be available in the working environment.
Can Gitleaks prove that a credential is active?
No. It detects credential-like content. Validate exposure through approved provider processes without transmitting secrets to untrusted services.
Should scan reports be stored as CI artifacts?
Only when reports are redacted, access is restricted, retention is minimal, and organizational policy permits storage.
When should a finding be allowlisted?
Allowlist only after manual verification, with a narrow scope, a documented reason, an owner, and a review date.
Does removing a secret from git history resolve exposure?
No. Rotate or revoke the credential first, then coordinate history cleanup and verify downstream caches, forks, and clones.
Does this skill guarantee regulatory compliance?
No. It maps scanning activities to common controls, but compliance depends on scope, implementation, evidence, and independent review.

Developer Details

License

MIT

Author version

v0.1.0

Skillstore revision

r2

Ref

181fdefcafd96b041926e61c4b2e306ca7e7820e

Maintenance freshness

7/24/2026

Usage

5 downloads ยท 225 views

File structure

๐Ÿ“ assets/

๐Ÿ“„ .gitkeep

๐Ÿ“„ config-balanced.toml

๐Ÿ“„ config-custom.toml

๐Ÿ“„ config-strict.toml

๐Ÿ“„ github-action.yml

๐Ÿ“„ gitlab-ci.yml

๐Ÿ“„ precommit-config.yaml

๐Ÿ“ references/

๐Ÿ“„ compliance_mapping.md

๐Ÿ“„ detection_rules.md

๐Ÿ“„ EXAMPLE.md

๐Ÿ“„ false_positives.md

๐Ÿ“„ remediation_guide.md

๐Ÿ“„ SKILL.md