[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A5V55X6VT4E9SPG7YNWABC":3,"skill-same:01M7A5V55X6VT4E9SPG7YNWABC":106},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":69,"commitSha":70,"skillDirectory":71,"forksCount":14,"repositoryHtmlUrl":72,"repositoryHomepageUrl":6,"ownerHtmlUrl":73,"ownerBlogUrl":6,"ownerDescription":74,"updatedAt":75,"install":76,"resources":89},"01M7A5V55X6VT4E9SPG7YNWABC","detecting-aws-credential-exposure-with-trufflehog",null,"Scan source code repositories, CI\u002FCD pipelines, and configuration files for exposed AWS credentials using TruffleHog, git-secrets, and AWS-native detection. Use when integrating secrets scanning into CI\u002FCD, auditing repositories (including git history) for historically committed AWS keys, responding to a GuardDuty alert about credential use from an unexpected location, or verifying credential rotation removed all exposed keys.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-aws-credential-exposure-with-trufflehog\ndescription: 'Scan source code repositories, CI\u002FCD pipelines, and configuration files\n  for exposed AWS credentials using TruffleHog, git-secrets, and AWS-native detection.\n  Use when integrating secrets scanning into CI\u002FCD, auditing repositories (including\n  git history) for historically committed AWS keys, responding to a GuardDuty alert\n  about credential use from an unexpected location, or verifying credential rotation\n  removed all exposed keys.\n\n  '\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- aws\n- credential-exposure\n- trufflehog\n- secrets-detection\n- devsecops\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1552.001\n- T1552\n- T1078.004\n- T1589.001\nmitre_f3:\n  version: '1.1'\n  tactics:\n  - reconnaissance\n  - initial-access\n  techniques:\n  - id: T1593\n    name: Search Open Websites\u002FDomains\n    tactic: reconnaissance\n    source: attack\n  - id: F1006\n    name: Account Takeover\n    tactic: initial-access\n    source: f3\n  - id: F1006.001\n    name: 'Account Takeover: Exposed API Key'\n    tactic: initial-access\n    source: f3\n  - id: F1006.002\n    name: 'Account Takeover: Exposed Login Credential'\n    tactic: initial-access\n    source: f3\n  - id: T1550.001\n    name: 'Use Alternate Authentication Material: Application Access Token'\n    tactic: initial-access\n    source: attack\n---\n\n# Detecting AWS Credential Exposure with TruffleHog\n\n## When to Use\n\n- When integrating secrets detection into CI\u002FCD pipelines to prevent credential commits reaching production\n- When performing a security audit of existing repositories for historically committed AWS credentials\n- When responding to an AWS GuardDuty alert about credential usage from an unexpected IP or region\n- When onboarding repositories from acquired companies or third-party vendors\n- When validating that credential rotation processes have removed all references to old access keys\n\n**Do not use** for real-time credential monitoring (use AWS GuardDuty or Amazon Macie), for managing secrets (use AWS Secrets Manager or HashiCorp Vault), or for detecting non-credential sensitive data like PII (use Amazon Macie or DLP tools).\n\n## Prerequisites\n\n- TruffleHog v3 installed (`brew install trufflehog` or `pip install trufflehog`)\n- git-secrets installed for pre-commit hook integration (`brew install git-secrets`)\n- Access to source code repositories (GitHub, GitLab, Bitbucket, or local git repos)\n- AWS CLI configured with permissions to check key status (`iam:ListAccessKeys`, `iam:GetAccessKeyLastUsed`)\n- GitHub or GitLab API token for scanning organization-wide repositories\n\n## Workflow\n\n### Step 1: Install and Configure TruffleHog\n\nInstall TruffleHog v3 and verify it can detect the AWS credential patterns.\n\n```bash\n# Install TruffleHog v3\npip install trufflehog\n\n# Or install from binary release\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Ftrufflesecurity\u002Ftrufflehog\u002Fmain\u002Fscripts\u002Finstall.sh | sh -s -- -b \u002Fusr\u002Flocal\u002Fbin\n\n# Verify installation\ntrufflehog --version\n\n# Test with a known test repository\ntrufflehog git https:\u002F\u002Fgithub.com\u002Ftrufflesecurity\u002Ftest_keys --only-verified\n```\n\n### Step 2: Scan Git Repositories for Exposed Credentials\n\nScan entire git history including all branches and commits for AWS access keys, secret keys, and session tokens.\n\n```bash\n# Scan a local git repository (full history)\ntrufflehog git file:\u002F\u002F\u002Fpath\u002Fto\u002Frepo --only-verified --json > trufflehog-results.json\n\n# Scan a GitHub organization's repositories\ntrufflehog github --org=your-organization --token=$GITHUB_TOKEN --only-verified\n\n# Scan a specific GitHub repository with all branches\ntrufflehog git https:\u002F\u002Fgithub.com\u002Forg\u002Frepo.git --only-verified --branch=main\n\n# Scan a GitLab group\ntrufflehog gitlab --group=your-group --token=$GITLAB_TOKEN --only-verified\n\n# Scan filesystem paths for credentials in config files\ntrufflehog filesystem \u002Fpath\u002Fto\u002Fproject --only-verified\n```\n\n### Step 3: Analyze and Validate Detected Credentials\n\nParse TruffleHog results to identify verified (still-active) credentials versus rotated or test keys.\n\n```bash\n# Parse TruffleHog JSON output for AWS findings\ncat trufflehog-results.json | python3 -c \"\nimport json, sys\nfor line in sys.stdin:\n    finding = json.loads(line)\n    if 'AWS' in finding.get('DetectorName', ''):\n        print(f\\\"Detector: {finding['DetectorName']}\\\")\n        print(f\\\"Verified: {finding.get('Verified', False)}\\\")\n        print(f\\\"Source: {finding.get('SourceMetadata', {})}\\\")\n        print(f\\\"Commit: {finding.get('SourceMetadata', {}).get('Data', {}).get('Git', {}).get('commit', 'N\u002FA')}\\\")\n        print(f\\\"File: {finding.get('SourceMetadata', {}).get('Data', {}).get('Git', {}).get('file', 'N\u002FA')}\\\")\n        print('---')\n\"\n\n# Check if a detected access key is still active\naws iam get-access-key-last-used --access-key-id AKIAIOSFODNN7EXAMPLE\n\n# List all access keys for a user to find active keys\naws iam list-access-keys --user-name target-user \\\n  --query 'AccessKeyMetadata[*].[AccessKeyId,Status,CreateDate]' --output table\n```\n\n### Step 4: Set Up Pre-Commit Hooks with git-secrets\n\nPrevent credentials from being committed in the first place using git-secrets as a pre-commit hook.\n\n```bash\n# Install git-secrets\ngit secrets --install  # In each repository\n\n# Register AWS credential patterns\ngit secrets --register-aws\n\n# Add custom patterns for internal credential formats\ngit secrets --add 'AKIA[0-9A-Z]{16}'\ngit secrets --add 'aws_secret_access_key\\s*=\\s*.{40}'\ngit secrets --add 'aws_session_token\\s*=\\s*.+'\n\n# Scan entire repository history\ngit secrets --scan-history\n\n# Add to global git template for all new repos\ngit secrets --install ~\u002F.git-templates\u002Fgit-secrets\ngit config --global init.templateDir ~\u002F.git-templates\u002Fgit-secrets\n```\n\n### Step 5: Integrate TruffleHog into CI\u002FCD Pipeline\n\nAdd TruffleHog scanning as a CI\u002FCD gate to block deployments containing exposed credentials.\n\n```yaml\n# GitHub Actions workflow (.github\u002Fworkflows\u002Fsecrets-scan.yml)\nname: Secrets Scan\non: [push, pull_request]\n\njobs:\n  trufflehog:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0\n      - name: TruffleHog Scan\n        uses: trufflesecurity\u002Ftrufflehog@main\n        with:\n          extra_args: --only-verified --results=verified\n```\n\n```yaml\n# GitLab CI (.gitlab-ci.yml)\nsecrets_scan:\n  stage: test\n  image: trufflesecurity\u002Ftrufflehog:latest\n  script:\n    - trufflehog git file:\u002F\u002F$CI_PROJECT_DIR --since-commit $CI_COMMIT_BEFORE_SHA --only-verified --fail\n  allow_failure: false\n```\n\n### Step 6: Respond to Detected Credential Exposure\n\nExecute incident response procedures when verified credentials are found exposed.\n\n```bash\n# IMMEDIATE: Deactivate the exposed access key\naws iam update-access-key \\\n  --user-name compromised-user \\\n  --access-key-id AKIAEXPOSEDKEY123456 \\\n  --status Inactive\n\n# Generate new credentials\naws iam create-access-key --user-name compromised-user\n\n# Review CloudTrail for unauthorized usage of the exposed key\naws cloudtrail lookup-events \\\n  --lookup-attributes AttributeKey=AccessKeyId,AttributeValue=AKIAEXPOSEDKEY123456 \\\n  --start-time 2026-01-01T00:00:00Z \\\n  --query 'Events[*].[EventTime,EventName,EventSource,SourceIPAddress]' \\\n  --output table\n\n# Delete the exposed key after rotation is confirmed\naws iam delete-access-key \\\n  --user-name compromised-user \\\n  --access-key-id AKIAEXPOSEDKEY123456\n\n# Remove the credential from git history using BFG Repo Cleaner\njava -jar bfg.jar --replace-text credentials.txt repo.git\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| TruffleHog | Open-source secrets detection tool that scans git history, filesystems, and cloud services for exposed credentials using regex patterns and verification APIs |\n| Verified Secret | A credential that TruffleHog has confirmed is still active by making an API call to the target service (e.g., AWS STS GetCallerIdentity) |\n| git-secrets | AWS Labs pre-commit hook tool that prevents committing strings matching AWS credential patterns to git repositories |\n| Access Key Rotation | The practice of regularly replacing AWS access key pairs to limit the window of exposure if a key is compromised |\n| BFG Repo Cleaner | Tool for removing sensitive data from git history without rewriting the entire repository, faster than git filter-branch |\n| GitHub Secret Scanning | GitHub-native feature that scans public repositories for known credential patterns and notifies the credential provider |\n\n## Tools & Systems\n\n- **TruffleHog v3**: Primary scanning engine supporting git, filesystem, S3, and CI\u002FCD integration with verified credential detection\n- **git-secrets**: AWS Labs pre-commit hook for preventing credential commits at the developer workstation level\n- **BFG Repo Cleaner**: Fast tool for removing credentials from git history after exposure is detected\n- **AWS GuardDuty**: Threat detection service that alerts on anomalous usage of AWS credentials from unexpected locations\n- **GitHub Advanced Security**: Platform-native secret scanning for GitHub repositories with push protection\n\n## Common Scenarios\n\n### Scenario: Developer Commits AWS Credentials to a Public GitHub Repository\n\n**Context**: GitHub secret scanning notifies that an AWS access key was pushed to a public repository. The key belongs to a developer with production S3 and DynamoDB access.\n\n**Approach**:\n1. Immediately deactivate the access key using `aws iam update-access-key --status Inactive`\n2. Run `aws cloudtrail lookup-events` filtering by the exposed AccessKeyId to check for unauthorized usage\n3. Scan the full repository history with `trufflehog git` to find any other exposed credentials\n4. Generate a new access key for the developer and deliver it through Secrets Manager\n5. Remove the credential from git history using BFG Repo Cleaner\n6. Install git-secrets pre-commit hook on the developer's workstation\n7. Add TruffleHog to the repository's CI\u002FCD pipeline to prevent recurrence\n\n**Pitfalls**: Simply deleting the commit or force-pushing does not remove credentials from GitHub's cache or forks. The key must be deactivated at the AWS level immediately. GitHub secret scanning may have already notified AWS, triggering automated key deactivation.\n\n## Output Format\n\n```\nAWS Credential Exposure Scan Report\n======================================\nScan Target: github.com\u002Facme-corp (42 repositories)\nScan Date: 2026-02-23\nTool: TruffleHog v3.63.0\nMode: Full git history scan with verification\n\nVERIFIED FINDINGS (Active Credentials):\n[CRED-001] AWS Access Key - VERIFIED ACTIVE\n  Key ID: AKIA...WXYZ\n  Repository: acme-corp\u002Fbackend-api\n  File: deploy\u002Fconfig.env\n  Commit: a1b2c3d (2025-08-15)\n  Author: developer@acme.com\n  IAM User: svc-backend-deploy\n  Permissions: S3, DynamoDB, SQS (production)\n  Status: CRITICAL - Key active and used from 3 IP addresses\n  Action Required: Immediate deactivation and rotation\n\n[CRED-002] AWS Secret Key - VERIFIED ACTIVE\n  Repository: acme-corp\u002Fdata-pipeline\n  File: scripts\u002Fetl_config.py\n  Commit: d4e5f6g (2025-11-22)\n  Author: data-engineer@acme.com\n  Status: HIGH - Key active, last used 2 days ago\n\nUNVERIFIED FINDINGS (Potential Credentials):\n  Total pattern matches: 15\n  Likely test\u002Fexample keys: 12\n  Requires manual review: 3\n\nSUMMARY:\n  Repositories scanned: 42\n  Commits analyzed: 125,847\n  Verified active credentials: 2\n  Unverified credential patterns: 15\n  Repositories with pre-commit hooks: 8 \u002F 42\n```\n","# Detecting AWS Credential Exposure with TruffleHog\n\n## When to Use\n\n- When integrating secrets detection into CI\u002FCD pipelines to prevent credential commits reaching production\n- When performing a security audit of existing repositories for historically committed AWS credentials\n- When responding to an AWS GuardDuty alert about credential usage from an unexpected IP or region\n- When onboarding repositories from acquired companies or third-party vendors\n- When validating that credential rotation processes have removed all references to old access keys\n\n**Do not use** for real-time credential monitoring (use AWS GuardDuty or Amazon Macie), for managing secrets (use AWS Secrets Manager or HashiCorp Vault), or for detecting non-credential sensitive data like PII (use Amazon Macie or DLP tools).\n\n## Prerequisites\n\n- TruffleHog v3 installed (`brew install trufflehog` or `pip install trufflehog`)\n- git-secrets installed for pre-commit hook integration (`brew install git-secrets`)\n- Access to source code repositories (GitHub, GitLab, Bitbucket, or local git repos)\n- AWS CLI configured with permissions to check key status (`iam:ListAccessKeys`, `iam:GetAccessKeyLastUsed`)\n- GitHub or GitLab API token for scanning organization-wide repositories\n\n## Workflow\n\n### Step 1: Install and Configure TruffleHog\n\nInstall TruffleHog v3 and verify it can detect the AWS credential patterns.\n\n```bash\n# Install TruffleHog v3\npip install trufflehog\n\n# Or install from binary release\ncurl -sSfL https:\u002F\u002Fraw.githubusercontent.com\u002Ftrufflesecurity\u002Ftrufflehog\u002Fmain\u002Fscripts\u002Finstall.sh | sh -s -- -b \u002Fusr\u002Flocal\u002Fbin\n\n# Verify installation\ntrufflehog --version\n\n# Test with a known test repository\ntrufflehog git https:\u002F\u002Fgithub.com\u002Ftrufflesecurity\u002Ftest_keys --only-verified\n```\n\n### Step 2: Scan Git Repositories for Exposed Credentials\n\nScan entire git history including all branches and commits for AWS access keys, secret keys, and session tokens.\n\n```bash\n# Scan a local git repository (full history)\ntrufflehog git file:\u002F\u002F\u002Fpath\u002Fto\u002Frepo --only-verified --json > trufflehog-results.json\n\n# Scan a GitHub organization's repositories\ntrufflehog github --org=your-organization --token=$GITHUB_TOKEN --only-verified\n\n# Scan a specific GitHub repository with all branches\ntrufflehog git https:\u002F\u002Fgithub.com\u002Forg\u002Frepo.git --only-verified --branch=main\n\n# Scan a GitLab group\ntrufflehog gitlab --group=your-group --token=$GITLAB_TOKEN --only-verified\n\n# Scan filesystem paths for credentials in config files\ntrufflehog filesystem \u002Fpath\u002Fto\u002Fproject --only-verified\n```\n\n### Step 3: Analyze and Validate Detected Credentials\n\nParse TruffleHog results to identify verified (still-active) credentials versus rotated or test keys.\n\n```bash\n# Parse TruffleHog JSON output for AWS findings\ncat trufflehog-results.json | python3 -c \"\nimport json, sys\nfor line in sys.stdin:\n    finding = json.loads(line)\n    if 'AWS' in finding.get('DetectorName', ''):\n        print(f\\\"Detector: {finding['DetectorName']}\\\")\n        print(f\\\"Verified: {finding.get('Verified', False)}\\\")\n        print(f\\\"Source: {finding.get('SourceMetadata', {})}\\\")\n        print(f\\\"Commit: {finding.get('SourceMetadata', {}).get('Data', {}).get('Git', {}).get('commit', 'N\u002FA')}\\\")\n        print(f\\\"File: {finding.get('SourceMetadata', {}).get('Data', {}).get('Git', {}).get('file', 'N\u002FA')}\\\")\n        print('---')\n\"\n\n# Check if a detected access key is still active\naws iam get-access-key-last-used --access-key-id AKIAIOSFODNN7EXAMPLE\n\n# List all access keys for a user to find active keys\naws iam list-access-keys --user-name target-user \\\n  --query 'AccessKeyMetadata[*].[AccessKeyId,Status,CreateDate]' --output table\n```\n\n### Step 4: Set Up Pre-Commit Hooks with git-secrets\n\nPrevent credentials from being committed in the first place using git-secrets as a pre-commit hook.\n\n```bash\n# Install git-secrets\ngit secrets --install  # In each repository\n\n# Register AWS credential patterns\ngit secrets --register-aws\n\n# Add custom patterns for internal credential formats\ngit secrets --add 'AKIA[0-9A-Z]{16}'\ngit secrets --add 'aws_secret_access_key\\s*=\\s*.{40}'\ngit secrets --add 'aws_session_token\\s*=\\s*.+'\n\n# Scan entire repository history\ngit secrets --scan-history\n\n# Add to global git template for all new repos\ngit secrets --install ~\u002F.git-templates\u002Fgit-secrets\ngit config --global init.templateDir ~\u002F.git-templates\u002Fgit-secrets\n```\n\n### Step 5: Integrate TruffleHog into CI\u002FCD Pipeline\n\nAdd TruffleHog scanning as a CI\u002FCD gate to block deployments containing exposed credentials.\n\n```yaml\n# GitHub Actions workflow (.github\u002Fworkflows\u002Fsecrets-scan.yml)\nname: Secrets Scan\non: [push, pull_request]\n\njobs:\n  trufflehog:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0\n      - name: TruffleHog Scan\n        uses: trufflesecurity\u002Ftrufflehog@main\n        with:\n          extra_args: --only-verified --results=verified\n```\n\n```yaml\n# GitLab CI (.gitlab-ci.yml)\nsecrets_scan:\n  stage: test\n  image: trufflesecurity\u002Ftrufflehog:latest\n  script:\n    - trufflehog git file:\u002F\u002F$CI_PROJECT_DIR --since-commit $CI_COMMIT_BEFORE_SHA --only-verified --fail\n  allow_failure: false\n```\n\n### Step 6: Respond to Detected Credential Exposure\n\nExecute incident response procedures when verified credentials are found exposed.\n\n```bash\n# IMMEDIATE: Deactivate the exposed access key\naws iam update-access-key \\\n  --user-name compromised-user \\\n  --access-key-id AKIAEXPOSEDKEY123456 \\\n  --status Inactive\n\n# Generate new credentials\naws iam create-access-key --user-name compromised-user\n\n# Review CloudTrail for unauthorized usage of the exposed key\naws cloudtrail lookup-events \\\n  --lookup-attributes AttributeKey=AccessKeyId,AttributeValue=AKIAEXPOSEDKEY123456 \\\n  --start-time 2026-01-01T00:00:00Z \\\n  --query 'Events[*].[EventTime,EventName,EventSource,SourceIPAddress]' \\\n  --output table\n\n# Delete the exposed key after rotation is confirmed\naws iam delete-access-key \\\n  --user-name compromised-user \\\n  --access-key-id AKIAEXPOSEDKEY123456\n\n# Remove the credential from git history using BFG Repo Cleaner\njava -jar bfg.jar --replace-text credentials.txt repo.git\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| TruffleHog | Open-source secrets detection tool that scans git history, filesystems, and cloud services for exposed credentials using regex patterns and verification APIs |\n| Verified Secret | A credential that TruffleHog has confirmed is still active by making an API call to the target service (e.g., AWS STS GetCallerIdentity) |\n| git-secrets | AWS Labs pre-commit hook tool that prevents committing strings matching AWS credential patterns to git repositories |\n| Access Key Rotation | The practice of regularly replacing AWS access key pairs to limit the window of exposure if a key is compromised |\n| BFG Repo Cleaner | Tool for removing sensitive data from git history without rewriting the entire repository, faster than git filter-branch |\n| GitHub Secret Scanning | GitHub-native feature that scans public repositories for known credential patterns and notifies the credential provider |\n\n## Tools & Systems\n\n- **TruffleHog v3**: Primary scanning engine supporting git, filesystem, S3, and CI\u002FCD integration with verified credential detection\n- **git-secrets**: AWS Labs pre-commit hook for preventing credential commits at the developer workstation level\n- **BFG Repo Cleaner**: Fast tool for removing credentials from git history after exposure is detected\n- **AWS GuardDuty**: Threat detection service that alerts on anomalous usage of AWS credentials from unexpected locations\n- **GitHub Advanced Security**: Platform-native secret scanning for GitHub repositories with push protection\n\n## Common Scenarios\n\n### Scenario: Developer Commits AWS Credentials to a Public GitHub Repository\n\n**Context**: GitHub secret scanning notifies that an AWS access key was pushed to a public repository. The key belongs to a developer with production S3 and DynamoDB access.\n\n**Approach**:\n1. Immediately deactivate the access key using `aws iam update-access-key --status Inactive`\n2. Run `aws cloudtrail lookup-events` filtering by the exposed AccessKeyId to check for unauthorized usage\n3. Scan the full repository history with `trufflehog git` to find any other exposed credentials\n4. Generate a new access key for the developer and deliver it through Secrets Manager\n5. Remove the credential from git history using BFG Repo Cleaner\n6. Install git-secrets pre-commit hook on the developer's workstation\n7. Add TruffleHog to the repository's CI\u002FCD pipeline to prevent recurrence\n\n**Pitfalls**: Simply deleting the commit or force-pushing does not remove credentials from GitHub's cache or forks. The key must be deactivated at the AWS level immediately. GitHub secret scanning may have already notified AWS, triggering automated key deactivation.\n\n## Output Format\n\n```\nAWS Credential Exposure Scan Report\n======================================\nScan Target: github.com\u002Facme-corp (42 repositories)\nScan Date: 2026-02-23\nTool: TruffleHog v3.63.0\nMode: Full git history scan with verification\n\nVERIFIED FINDINGS (Active Credentials):\n[CRED-001] AWS Access Key - VERIFIED ACTIVE\n  Key ID: AKIA...WXYZ\n  Repository: acme-corp\u002Fbackend-api\n  File: deploy\u002Fconfig.env\n  Commit: a1b2c3d (2025-08-15)\n  Author: developer@acme.com\n  IAM User: svc-backend-deploy\n  Permissions: S3, DynamoDB, SQS (production)\n  Status: CRITICAL - Key active and used from 3 IP addresses\n  Action Required: Immediate deactivation and rotation\n\n[CRED-002] AWS Secret Key - VERIFIED ACTIVE\n  Repository: acme-corp\u002Fdata-pipeline\n  File: scripts\u002Fetl_config.py\n  Commit: d4e5f6g (2025-11-22)\n  Author: data-engineer@acme.com\n  Status: HIGH - Key active, last used 2 days ago\n\nUNVERIFIED FINDINGS (Potential Credentials):\n  Total pattern matches: 15\n  Likely test\u002Fexample keys: 12\n  Requires manual review: 3\n\nSUMMARY:\n  Repositories scanned: 42\n  Commits analyzed: 125,847\n  Verified active credentials: 2\n  Unverified credential patterns: 15\n  Repositories with pre-commit hooks: 8 \u002F 42\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"mitre_f3":35,"nist_csf":58,"subdomain":26,"description":63,"mitre_attack":64},[26,27,28,29,30,31],"cloud-security","aws","credential-exposure","trufflehog","secrets-detection","devsecops","mahipal","cybersecurity","1.0",{"tactics":36,"version":39,"techniques":40},[37,38],"reconnaissance","initial-access","1.1",[41,45,49,52,55],{"id":42,"name":43,"source":44,"tactic":37},"T1593","Search Open Websites\u002FDomains","attack",{"id":46,"name":47,"source":48,"tactic":38},"F1006","Account Takeover","f3",{"id":50,"name":51,"source":48,"tactic":38},"F1006.001","Account Takeover: Exposed API Key",{"id":53,"name":54,"source":48,"tactic":38},"F1006.002","Account Takeover: Exposed Login Credential",{"id":56,"name":57,"source":44,"tactic":38},"T1550.001","Use Alternate Authentication Material: Application Access Token",[59,60,61,62],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01","Scan source code repositories, CI\u002FCD pipelines, and configuration files for exposed AWS credentials using TruffleHog, git-secrets, and AWS-native detection. Use when integrating secrets scanning into CI\u002FCD, auditing repositories (including git history) for historically committed AWS keys, responding to a GuardDuty alert about credential use from an unexpected location, or verifying credential rotation removed all exposed keys.\n",[65,66,67,68],"T1552.001","T1552","T1078.004","T1589.001","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":77,"prompt":87,"zipAvailable":88},[78,81,84],{"tool":79,"command":80},"npx","npx skills add NeelakshSaxena\u002FVayu --skill detecting-aws-credential-exposure-with-trufflehog",{"tool":82,"command":83},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill detecting-aws-credential-exposure-with-trufflehog",{"tool":85,"command":86},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill detecting-aws-credential-exposure-with-trufflehog","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002FSKILL.md",true,[90,94,100],{"path":91,"resourceType":91,"resourceTypeDesc":92,"sizeBytes":93,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":95,"resourceType":96,"resourceTypeDesc":97,"sizeBytes":98,"sourceHtmlUrl":99},"references\u002Fapi-reference.md","REFERENCE","参考文档",2128,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002Freferences\u002Fapi-reference.md",{"path":101,"resourceType":102,"resourceTypeDesc":103,"sizeBytes":104,"sourceHtmlUrl":105},"scripts\u002Fagent.py","SCRIPT","脚本",7790,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002Fscripts\u002Fagent.py",[107,114,121,128,135,142],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]