[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HMC2XTRRVVTR78R64SN8Q6":3,"skill-same:01M6HMC2XTRRVVTR78R64SN8Q6":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":6,"ownerHtmlUrl":62,"ownerBlogUrl":6,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M6HMC2XTRRVVTR78R64SN8Q6","implementing-secrets-scanning-in-ci-cd",null,"Integrate gitleaks and trufflehog into CI\u002FCD pipelines to detect leaked secrets before deployment","HenriqueMC17\u002Fagente-core","HenriqueMC17","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F206460478?v=4","01M6HB63HBBF18AC4H09XTB549","Henrique Monteiro Cardoso","01M6HB63NGSQXWKWCFWW2B20W0",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fimplementing-secrets-scanning-in-ci-cd\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"ci cd","implementing","cd","scanning","secrets","implementing secrets scanning in ci cd","ci","trufflehog","t1059","t1195","gitleaks","secrets-scanning","ci-cd","PS","deployment","pr","id","detect","CI\u002FCD","cybersecurity","2026-11-10 10:12:30",false,"---\nname: implementing-secrets-scanning-in-ci-cd\ndescription: Integrate gitleaks and trufflehog into CI\u002FCD pipelines to detect leaked secrets before deployment\ndomain: cybersecurity\nsubdomain: devsecops\ntags:\n- secrets-scanning\n- gitleaks\n- trufflehog\n- ci-cd\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- GV.SC-07\n- ID.IM-04\n- PR.PS-04\nmitre_attack:\n- T1195\n- T1554\n- T1059.004\ncategory: implementing-secrets-scanning-in-ci-cd\n---\n# Implementing Secrets Scanning in CI\u002FCD\n\n## Overview\n\nThis skill covers implementing automated secrets scanning in CI\u002FCD pipelines using gitleaks and trufflehog. It enables security teams to detect API keys, tokens, passwords, and other credentials that have been accidentally committed to source code repositories, providing a CI gate that blocks deployments containing high-severity findings.\n\nGitleaks scans git repositories and directories for hardcoded secrets using regex patterns and entropy analysis. TruffleHog performs filesystem and git history scans with optional secret verification against live services. Together they provide comprehensive coverage for secrets detection.\n\n\n## When to Use\n\n- When deploying or configuring implementing secrets scanning in ci cd capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Python 3.9 or later\n- gitleaks v8.x installed and available on PATH\n- trufflehog v3.x installed and available on PATH\n- A git repository or directory to scan\n- Access to CI\u002FCD platform (GitHub Actions, GitLab CI, Jenkins)\n\n## Steps\n\n1. **Install scanning tools**: Install gitleaks via package manager or binary download. Install trufflehog via `brew install trufflehog` or download from GitHub releases.\n\n2. **Configure gitleaks**: Create a `.gitleaks.toml` configuration file in the repository root to define custom rules, allowlists, and path exclusions. Use `--config` flag to point to custom configs.\n\n3. **Run gitleaks directory scan**: Execute `gitleaks dir --source . --report-format json --report-path gitleaks-report.json` to scan the working directory and generate a JSON report.\n\n4. **Run trufflehog filesystem scan**: Execute `trufflehog filesystem \u002Fpath\u002Fto\u002Frepo --json > trufflehog-report.json` to scan files and output JSON findings to a report file.\n\n5. **Parse and filter findings**: Use the agent script to parse both JSON reports, filter findings by severity (critical, high, medium, low), and determine whether the CI pipeline should pass or fail.\n\n6. **Integrate into CI pipeline**: Add the scanning step to your GitHub Actions workflow, GitLab CI config, or Jenkins pipeline as a pre-deployment gate. Use `--exit-code` flag in gitleaks to control pipeline behavior.\n\n7. **Configure pre-commit hooks**: Set up gitleaks as a pre-commit hook using `gitleaks protect --staged` to catch secrets before they are committed.\n\n8. **Review and triage findings**: Examine the JSON output for false positives, add legitimate entries to `.gitleaksignore`, and rotate any confirmed leaked credentials immediately.\n\n## Expected Output\n\nThe agent script produces a JSON report containing:\n- Total findings count from each scanner\n- Findings grouped by severity level\n- Individual finding details including file path, line number, rule ID, and redacted secret\n- A CI gate verdict (pass\u002Ffail) based on the configured severity threshold\n- Execution metadata including scan duration and tool versions\n\n```json\n{\n  \"scan_summary\": {\n    \"tool\": \"both\",\n    \"total_findings\": 3,\n    \"critical\": 1,\n    \"high\": 1,\n    \"medium\": 1,\n    \"low\": 0,\n    \"ci_gate\": \"FAIL\",\n    \"fail_reason\": \"Found 1 critical and 1 high severity findings\"\n  },\n  \"findings\": [...]\n}\n```\n","# Implementing Secrets Scanning in CI\u002FCD\n\n## Overview\n\nThis skill covers implementing automated secrets scanning in CI\u002FCD pipelines using gitleaks and trufflehog. It enables security teams to detect API keys, tokens, passwords, and other credentials that have been accidentally committed to source code repositories, providing a CI gate that blocks deployments containing high-severity findings.\n\nGitleaks scans git repositories and directories for hardcoded secrets using regex patterns and entropy analysis. TruffleHog performs filesystem and git history scans with optional secret verification against live services. Together they provide comprehensive coverage for secrets detection.\n\n\n## When to Use\n\n- When deploying or configuring implementing secrets scanning in ci cd capabilities in your environment\n- When establishing security controls aligned to compliance requirements\n- When building or improving security architecture for this domain\n- When conducting security assessments that require this implementation\n\n## Prerequisites\n\n- Python 3.9 or later\n- gitleaks v8.x installed and available on PATH\n- trufflehog v3.x installed and available on PATH\n- A git repository or directory to scan\n- Access to CI\u002FCD platform (GitHub Actions, GitLab CI, Jenkins)\n\n## Steps\n\n1. **Install scanning tools**: Install gitleaks via package manager or binary download. Install trufflehog via `brew install trufflehog` or download from GitHub releases.\n\n2. **Configure gitleaks**: Create a `.gitleaks.toml` configuration file in the repository root to define custom rules, allowlists, and path exclusions. Use `--config` flag to point to custom configs.\n\n3. **Run gitleaks directory scan**: Execute `gitleaks dir --source . --report-format json --report-path gitleaks-report.json` to scan the working directory and generate a JSON report.\n\n4. **Run trufflehog filesystem scan**: Execute `trufflehog filesystem \u002Fpath\u002Fto\u002Frepo --json > trufflehog-report.json` to scan files and output JSON findings to a report file.\n\n5. **Parse and filter findings**: Use the agent script to parse both JSON reports, filter findings by severity (critical, high, medium, low), and determine whether the CI pipeline should pass or fail.\n\n6. **Integrate into CI pipeline**: Add the scanning step to your GitHub Actions workflow, GitLab CI config, or Jenkins pipeline as a pre-deployment gate. Use `--exit-code` flag in gitleaks to control pipeline behavior.\n\n7. **Configure pre-commit hooks**: Set up gitleaks as a pre-commit hook using `gitleaks protect --staged` to catch secrets before they are committed.\n\n8. **Review and triage findings**: Examine the JSON output for false positives, add legitimate entries to `.gitleaksignore`, and rotate any confirmed leaked credentials immediately.\n\n## Expected Output\n\nThe agent script produces a JSON report containing:\n- Total findings count from each scanner\n- Findings grouped by severity level\n- Individual finding details including file path, line number, rule ID, and redacted secret\n- A CI gate verdict (pass\u002Ffail) based on the configured severity threshold\n- Execution metadata including scan duration and tool versions\n\n```json\n{\n  \"scan_summary\": {\n    \"tool\": \"both\",\n    \"total_findings\": 3,\n    \"critical\": 1,\n    \"high\": 1,\n    \"medium\": 1,\n    \"low\": 0,\n    \"ci_gate\": \"FAIL\",\n    \"fail_reason\": \"Found 1 critical and 1 high severity findings\"\n  },\n  \"findings\": [...]\n}\n```\n",{"name":5,"tags":44,"author":45,"domain":38,"license":15,"version":46,"category":5,"nist_csf":47,"subdomain":52,"description":7,"mitre_attack":53},[30,29,26,31],"mahipal","1.0",[48,49,50,51],"PR.PS-01","GV.SC-07","ID.IM-04","PR.PS-04","devsecops",[54,55,56],"T1195","T1554","T1059.004","main","5eea5b3296f4673b5f481e8bcc1ba76281149f16","modules\u002Fimplementing-secrets-scanning-in-ci-cd",0,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core","https:\u002F\u002Fgithub.com\u002FHenriqueMC17","Qualquer tecnologia suficientemente avançada é indistinguível da mágica.","2026-09-28 22:40:38",{"source":8,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add HenriqueMC17\u002Fagente-core --skill implementing-secrets-scanning-in-ci-cd",{"tool":71,"command":72},"bunx","bunx skills add HenriqueMC17\u002Fagente-core --skill implementing-secrets-scanning-in-ci-cd",{"tool":74,"command":75},"pnpm","pnpm dlx skills add HenriqueMC17\u002Fagente-core --skill implementing-secrets-scanning-in-ci-cd","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fimplementing-secrets-scanning-in-ci-cd\u002FSKILL.md",true,[79,84,90],{"path":80,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fimplementing-secrets-scanning-in-ci-cd\u002FLICENSE",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fapi-reference.md","REFERENCE","参考文档",3034,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fimplementing-secrets-scanning-in-ci-cd\u002Freferences\u002Fapi-reference.md",{"path":91,"resourceType":92,"resourceTypeDesc":93,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Fagent.py","SCRIPT","脚本",5938,"https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fimplementing-secrets-scanning-in-ci-cd\u002Fscripts\u002Fagent.py",[97,123,149,172,188,209],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":39},"01M6HPFF0RCN0X6WT5EBSV71GY","validating-backup-integrity-for-recovery","Validate backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to ensure backups are reliable for disaster recovery and ransomware response scenarios.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[],[104,105,106,107,108,109,38,110,111,112,113,114,115,116,117,118,119,120,121,122],"integrity","backup","recovery","validating backup integrity for recovery","for","testing","validate","verification","hash-verification","incident-response","ransomware","detection","t1078","t1490","disaster-recovery","restore","incident","disaster recovery","ransomware response",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":39},"01M6HPFAWJVFK25Q33K3T7WQ8G","triaging-vulnerabilities-with-ssvc-framework","Triage and prioritize vulnerabilities using CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree framework to produce actionable remediation priorities.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[],[130,131,132,133,134,38,135,136,137,138,139,140,141,142,143,144,145,146,147,148],"vulnerabilities","framework","ssvc","triaging vulnerabilities with ssvc framework","with","triage and prioritize","CISA","vulnerability-management","risk-management","cvss","remediation","vulnerability","prioritization","decision-tree","prioritize","decision","priorities","actionable","tree",{"skillNo":150,"name":151,"nameZh":6,"description":152,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":39},"01M6HPF6JS9X72WP59094H3ASQ","triaging-security-incident","Performs initial triage of security incidents to determine severity, scope, and required response actions using the NIST SP 800-61r3 and SANS PICERL frameworks. Classifies incidents by type, assigns priority based on business impact, and routes...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident\u002FSKILL.md",[],[156,157,120,38,158,159,160,116,117,161,162,163,164,165,166,167,168,169,170,171],"security","triaging security incident","actions","soc","NIST","analysis","severity-classification","incident-triage","SANS-PICERL","SOC-operations","picerl","conversion","isolation","scope","impact","consistency",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":39},"01M6HPF2EX6ZYNYYHKBRJN7GEF","triaging-security-incident-with-ir-playbook","Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-incident-with-ir-playbook\u002FSKILL.md",[],[156,179,180,157,120,134,38,181,159,113,182,183,116,117,184,162,144,185,186,187],"playbook","triaging security incident with ir playbook","teams","IR-playbook","severity","classification","classify","incidents","initiate",{"skillNo":189,"name":190,"nameZh":6,"description":191,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":192,"categories":193,"keywords":194,"publishedAt":39},"01M6HPEY9XPGE7X95AG4XJFQAW","triaging-security-alerts-in-splunk","Triages security alerts in Splunk Enterprise Security by classifying severity, investigating notable events, correlating related telemetry, and making escalation or closure decisions using SPL queries and the Incident Review dashboard. Use when...","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftriaging-security-alerts-in-splunk\u002FSKILL.md",[],[156,195,196,197,198,199,38,200,201,202,159,203,116,204,205,206,165,207,120,208],"security alerts","splunk","triaging security alerts in splunk","alerts","review","siem","dashboard","search","correlation-search","t1566","notable-events","incident-review","cm","de",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":213,"categories":214,"keywords":215,"publishedAt":39},"01M6HPET6XGEPEJPN7V032JGZ0","tracking-threat-actor-infrastructure","Threat actor infrastructure tracking involves monitoring and mapping adversary-controlled assets including command-and-control (C2) servers, phishing domains, exploit kit hosts, bulletproof hosting, a","https:\u002F\u002Fgithub.com\u002FHenriqueMC17\u002Fagente-core\u002Fblob\u002Fmain\u002Fmodules\u002Ftracking-threat-actor-infrastructure\u002FSKILL.md",[],[216,217,218,219,38,220,221,222,223,224,225,204,226,227,207,228,208,229,230,231],"infrastructure","tracking threat actor infrastructure","tracking","threat","monitoring","mitre-attack","threat-actor","threat-intelligence","command-and-control","dns","command","exploit","intelligence","domains","kit","hosts"]