[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B5THV35JC77Q9HNFTJ7D60":3,"skill-same:01M7B5THV35JC77Q9HNFTJ7D60":104},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":68,"commitSha":69,"skillDirectory":70,"forksCount":13,"repositoryHtmlUrl":71,"repositoryHomepageUrl":6,"ownerHtmlUrl":72,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":73,"install":74,"resources":87},"01M7B5THV35JC77Q9HNFTJ7D60","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.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\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":24,"author":31,"domain":32,"license":14,"version":33,"mitre_f3":34,"nist_csf":57,"subdomain":25,"description":62,"mitre_attack":63},[25,26,27,28,29,30],"cloud-security","aws","credential-exposure","trufflehog","secrets-detection","devsecops","mahipal","cybersecurity","1.0",{"tactics":35,"version":38,"techniques":39},[36,37],"reconnaissance","initial-access","1.1",[40,44,48,51,54],{"id":41,"name":42,"source":43,"tactic":36},"T1593","Search Open Websites\u002FDomains","attack",{"id":45,"name":46,"source":47,"tactic":37},"F1006","Account Takeover","f3",{"id":49,"name":50,"source":47,"tactic":37},"F1006.001","Account Takeover: Exposed API Key",{"id":52,"name":53,"source":47,"tactic":37},"F1006.002","Account Takeover: Exposed Login Credential",{"id":55,"name":56,"source":43,"tactic":37},"T1550.001","Use Alternate Authentication Material: Application Access Token",[58,59,60,61],"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",[64,65,66,67],"T1552.001","T1552","T1078.004","T1589.001","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-aws-credential-exposure-with-trufflehog",{"tool":80,"command":81},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-aws-credential-exposure-with-trufflehog",{"tool":83,"command":84},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill detecting-aws-credential-exposure-with-trufflehog","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002FSKILL.md",true,[88,92,98],{"path":89,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fapi-reference.md","REFERENCE","参考文档",2128,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002Freferences\u002Fapi-reference.md",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fagent.py","SCRIPT","脚本",7790,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fdetecting-aws-credential-exposure-with-trufflehog\u002Fscripts\u002Fagent.py",[105,113,120,127,134,141],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":109,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]