[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG982M06YXD8S687RQDCV9":3,"skill-same:01M6AG982M06YXD8S687RQDCV9":133},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":74,"commitSha":75,"skillDirectory":76,"forksCount":77,"repositoryHtmlUrl":78,"repositoryHomepageUrl":79,"ownerHtmlUrl":80,"ownerBlogUrl":81,"ownerDescription":82,"updatedAt":83,"install":84,"resources":97},"01M6AG982M06YXD8S687RQDCV9","securing-github-actions-workflows","GitHub Actions工作流安全加固","Hardens GitHub Actions workflows against supply chain attacks, credential theft, and privilege escalation: pinning actions to SHA digests, minimizing GITHUB_TOKEN permissions, protecting secrets, preventing script injection in workflow expressions, and requiring reviewers for workflow changes. Use when hardening GitHub Actions workflows that handle secrets, deploy to production, or run with elevated permissions.","加固 GitHub Actions 工作流以防范供应链攻击、凭证窃取和权限提升：将 action 固定到 SHA 摘要、最小化 GITHUB_TOKEN 权限、保护密钥、防止工作流表达式中的脚本注入，以及要求工作流变更必须经过审查。适用于加固处理密钥、部署到生产环境或以高权限运行的 GitHub Actions 工作流。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"actions","securing github actions workflows","github actions","github","workflows","workflow","secure","pr","run","permissions","cybersecurity","security","supply-chain","escalation","github-actions","t1059","injection","t1195","secrets","devsecops","2026-11-10 10:12:30",false,"---\nname: securing-github-actions-workflows\ndescription: 'Hardens GitHub Actions workflows against supply chain attacks, credential\n  theft, and privilege escalation: pinning actions to SHA digests, minimizing GITHUB_TOKEN\n  permissions, protecting secrets, preventing script injection in workflow expressions,\n  and requiring reviewers for workflow changes. Use when hardening GitHub Actions\n  workflows that handle secrets, deploy to production, or run with elevated permissions.\n\n  '\ndomain: cybersecurity\nsubdomain: devsecops\ntags:\n- devsecops\n- cicd\n- github-actions\n- supply-chain\n- workflow-security\n- secure-sdlc\nversion: 1.0.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\n- T1068\n- T1548\n---\n\n# Securing GitHub Actions Workflows\n\n## When to Use\n\n- When GitHub Actions is the CI\u002FCD platform and workflows need hardening against supply chain attacks\n- When workflows handle secrets, deploy to production, or have elevated permissions\n- When preventing script injection via untrusted PR titles, branch names, or commit messages\n- When requiring audit trails and approval gates for workflow modifications\n- When third-party actions pose supply chain risk through mutable version tags\n\n**Do not use** for securing other CI\u002FCD platforms (see platform-specific hardening guides), for application vulnerability scanning (use SAST\u002FDAST), or for secret detection in code (use Gitleaks).\n\n## Prerequisites\n\n- GitHub repository with GitHub Actions enabled\n- GitHub organization admin access for organization-level settings\n- Understanding of GitHub Actions workflow syntax and events\n\n## Workflow\n\n### Step 1: Pin Actions to SHA Digests\n\n```yaml\n# INSECURE: Mutable tag can be overwritten by attacker\n- uses: actions\u002Fcheckout@v4\n\n# SECURE: Pinned to immutable SHA digest\n- uses: actions\u002Fcheckout@b4ffde65f46336ab88eb53be808477a3936bae11  # v4.1.1\n\n# Use Dependabot to auto-update pinned SHAs\n# .github\u002Fdependabot.yml\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"\u002F\"\n    schedule:\n      interval: \"weekly\"\n    commit-message:\n      prefix: \"ci\"\n```\n\n### Step 2: Minimize GITHUB_TOKEN Permissions\n\n```yaml\n# Set restrictive default permissions at workflow level\nname: CI Pipeline\npermissions: {}  # Start with no permissions\n\non: [push, pull_request]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read  # Only what's needed\n    steps:\n      - uses: actions\u002Fcheckout@b4ffde65f46336ab88eb53be808477a3936bae11\n\n  deploy:\n    runs-on: ubuntu-latest\n    needs: build\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n    permissions:\n      contents: read\n      deployments: write\n      id-token: write  # For OIDC-based cloud auth\n    steps:\n      - name: Deploy\n        run: echo \"deploying\"\n```\n\n### Step 3: Prevent Script Injection\n\n```yaml\n# VULNERABLE: User-controlled input in run step\n- run: echo \"PR title is ${{ github.event.pull_request.title }}\"\n\n# SECURE: Use environment variable (properly escaped by shell)\n- name: Process PR\n  env:\n    PR_TITLE: ${{ github.event.pull_request.title }}\n    PR_BODY: ${{ github.event.pull_request.body }}\n  run: |\n    echo \"PR title is ${PR_TITLE}\"\n    echo \"PR body is ${PR_BODY}\"\n\n# SECURE: Use actions\u002Fgithub-script for complex operations\n- uses: actions\u002Fgithub-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea\n  with:\n    script: |\n      const title = context.payload.pull_request.title;\n      console.log(`PR title: ${title}`);\n```\n\n### Step 4: Secure Fork Pull Request Handling\n\n```yaml\n# DANGEROUS: pull_request_target runs with base repo permissions\n# on: pull_request_target  # AVOID unless absolutely necessary\n\n# SAFE: pull_request runs in fork context with limited permissions\non:\n  pull_request:\n    branches: [main]\n\n# If pull_request_target is required, never checkout PR code:\non:\n  pull_request_target:\n    types: [labeled]\n\njobs:\n  safe-job:\n    if: contains(github.event.pull_request.labels.*.name, 'safe-to-test')\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n    steps:\n      # NEVER do: actions\u002Fcheckout with ref: ${{ github.event.pull_request.head.sha }}\n      - uses: actions\u002Fcheckout@b4ffde65f46336ab88eb53be808477a3936bae11\n        # This checks out the BASE branch, not the PR\n```\n\n### Step 5: Protect Secrets and Environment Variables\n\n```yaml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    environment: production  # Requires approval\n    steps:\n      - name: Deploy with secret\n        env:\n          # Secrets are masked in logs automatically\n          DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}\n        run: |\n          # Never echo secrets\n          # echo \"$DEPLOY_KEY\"  # BAD\n          deploy-tool --key-file \u003C(echo \"$DEPLOY_KEY\")\n\n      - name: Audit secret access\n        run: |\n          # Log that secret was used without exposing it\n          echo \"::notice::Deploy key accessed for production deployment\"\n```\n\n### Step 6: Implement Workflow Change Controls\n\n```yaml\n# Require CODEOWNERS approval for workflow changes\n# .github\u002FCODEOWNERS\n.github\u002Fworkflows\u002F @security-team @platform-team\n.github\u002Factions\u002F @security-team @platform-team\n\n# Organization settings:\n# 1. Settings > Actions > General > Fork PR policies\n#    - Require approval for first-time contributors\n#    - Require approval for all outside collaborators\n# 2. Settings > Actions > General > Workflow permissions\n#    - Read repository contents and packages permissions\n#    - Do NOT allow GitHub Actions to create and approve PRs\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| SHA Pinning | Referencing GitHub Actions by their immutable commit SHA instead of mutable version tags |\n| Script Injection | Attack where untrusted input (PR title, branch name) is interpolated into shell commands |\n| GITHUB_TOKEN | Automatically generated token with configurable permissions scoped to the current repository |\n| pull_request_target | Dangerous event trigger that runs in the base repo context with full permissions on fork PRs |\n| Environment Protection | GitHub feature requiring manual approval before jobs accessing an environment can run |\n| CODEOWNERS | File defining required reviewers for specific paths including workflow files |\n| OIDC Federation | Using GitHub's OIDC token to authenticate to cloud providers without storing long-lived credentials |\n\n## Tools & Systems\n\n- **Dependabot**: Automated dependency updater that keeps pinned action SHAs current\n- **StepSecurity Harden Runner**: GitHub Action that monitors and restricts outbound network calls from workflows\n- **actionlint**: Linter for GitHub Actions workflow files that detects security issues\n- **allstar**: GitHub App by OpenSSF that enforces security policies on repositories\n- **scorecard**: OpenSSF tool that evaluates supply chain security practices including CI\u002FCD\n\n## Common Scenarios\n\n### Scenario: Preventing Supply Chain Attack via Compromised Third-Party Action\n\n**Context**: A widely-used GitHub Action is compromised and its v3 tag is updated to include credential-stealing code. Repositories using `@v3` automatically pull the malicious version.\n\n**Approach**:\n1. Pin all actions to SHA digests immediately across all repositories\n2. Configure Dependabot for github-actions ecosystem to manage SHA updates\n3. Restrict GITHUB_TOKEN permissions so even compromised actions have minimal access\n4. Add StepSecurity harden-runner to detect anomalous outbound network calls\n5. Review all third-party actions and replace unnecessary ones with inline scripts\n6. Require CODEOWNERS approval for any changes to .github\u002Fworkflows\u002F\n\n**Pitfalls**: SHA pinning without Dependabot means missing legitimate security updates to actions. Overly restrictive permissions can break legitimate workflows. Using `pull_request_target` for label-based gating still exposes secrets if the workflow checks out PR code.\n\n## Output Format\n\n```\nGitHub Actions Security Audit\n================================\nRepository: org\u002Fweb-application\nDate: 2026-02-23\n\nWORKFLOW ANALYSIS:\n  Total workflows: 8\n  Total action references: 34\n\nSHA PINNING:\n  [FAIL] 12\u002F34 actions use mutable tags instead of SHA digests\n  - .github\u002Fworkflows\u002Fci.yml: actions\u002Fsetup-node@v4\n  - .github\u002Fworkflows\u002Fdeploy.yml: aws-actions\u002Fconfigure-aws-credentials@v4\n\nPERMISSIONS:\n  [FAIL] 3\u002F8 workflows have no explicit permissions (inherit default)\n  [WARN] 1\u002F8 workflows request write-all permissions\n\nSCRIPT INJECTION:\n  [FAIL] 2 workflow steps interpolate user input directly\n  - .github\u002Fworkflows\u002Fpr-check.yml:23: ${{ github.event.pull_request.title }}\n\nSECRETS:\n  [PASS] No secrets exposed in workflow logs\n  [PASS] All production deployments use environment protection\n\nSCORE: 6\u002F10 (Remediate 5 HIGH findings)\n```\n","# Securing GitHub Actions Workflows\n\n## When to Use\n\n- When GitHub Actions is the CI\u002FCD platform and workflows need hardening against supply chain attacks\n- When workflows handle secrets, deploy to production, or have elevated permissions\n- When preventing script injection via untrusted PR titles, branch names, or commit messages\n- When requiring audit trails and approval gates for workflow modifications\n- When third-party actions pose supply chain risk through mutable version tags\n\n**Do not use** for securing other CI\u002FCD platforms (see platform-specific hardening guides), for application vulnerability scanning (use SAST\u002FDAST), or for secret detection in code (use Gitleaks).\n\n## Prerequisites\n\n- GitHub repository with GitHub Actions enabled\n- GitHub organization admin access for organization-level settings\n- Understanding of GitHub Actions workflow syntax and events\n\n## Workflow\n\n### Step 1: Pin Actions to SHA Digests\n\n```yaml\n# INSECURE: Mutable tag can be overwritten by attacker\n- uses: actions\u002Fcheckout@v4\n\n# SECURE: Pinned to immutable SHA digest\n- uses: actions\u002Fcheckout@b4ffde65f46336ab88eb53be808477a3936bae11  # v4.1.1\n\n# Use Dependabot to auto-update pinned SHAs\n# .github\u002Fdependabot.yml\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"\u002F\"\n    schedule:\n      interval: \"weekly\"\n    commit-message:\n      prefix: \"ci\"\n```\n\n### Step 2: Minimize GITHUB_TOKEN Permissions\n\n```yaml\n# Set restrictive default permissions at workflow level\nname: CI Pipeline\npermissions: {}  # Start with no permissions\n\non: [push, pull_request]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read  # Only what's needed\n    steps:\n      - uses: actions\u002Fcheckout@b4ffde65f46336ab88eb53be808477a3936bae11\n\n  deploy:\n    runs-on: ubuntu-latest\n    needs: build\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n    permissions:\n      contents: read\n      deployments: write\n      id-token: write  # For OIDC-based cloud auth\n    steps:\n      - name: Deploy\n        run: echo \"deploying\"\n```\n\n### Step 3: Prevent Script Injection\n\n```yaml\n# VULNERABLE: User-controlled input in run step\n- run: echo \"PR title is ${{ github.event.pull_request.title }}\"\n\n# SECURE: Use environment variable (properly escaped by shell)\n- name: Process PR\n  env:\n    PR_TITLE: ${{ github.event.pull_request.title }}\n    PR_BODY: ${{ github.event.pull_request.body }}\n  run: |\n    echo \"PR title is ${PR_TITLE}\"\n    echo \"PR body is ${PR_BODY}\"\n\n# SECURE: Use actions\u002Fgithub-script for complex operations\n- uses: actions\u002Fgithub-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea\n  with:\n    script: |\n      const title = context.payload.pull_request.title;\n      console.log(`PR title: ${title}`);\n```\n\n### Step 4: Secure Fork Pull Request Handling\n\n```yaml\n# DANGEROUS: pull_request_target runs with base repo permissions\n# on: pull_request_target  # AVOID unless absolutely necessary\n\n# SAFE: pull_request runs in fork context with limited permissions\non:\n  pull_request:\n    branches: [main]\n\n# If pull_request_target is required, never checkout PR code:\non:\n  pull_request_target:\n    types: [labeled]\n\njobs:\n  safe-job:\n    if: contains(github.event.pull_request.labels.*.name, 'safe-to-test')\n    runs-on: ubuntu-latest\n    permissions:\n      contents: read\n    steps:\n      # NEVER do: actions\u002Fcheckout with ref: ${{ github.event.pull_request.head.sha }}\n      - uses: actions\u002Fcheckout@b4ffde65f46336ab88eb53be808477a3936bae11\n        # This checks out the BASE branch, not the PR\n```\n\n### Step 5: Protect Secrets and Environment Variables\n\n```yaml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    environment: production  # Requires approval\n    steps:\n      - name: Deploy with secret\n        env:\n          # Secrets are masked in logs automatically\n          DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}\n        run: |\n          # Never echo secrets\n          # echo \"$DEPLOY_KEY\"  # BAD\n          deploy-tool --key-file \u003C(echo \"$DEPLOY_KEY\")\n\n      - name: Audit secret access\n        run: |\n          # Log that secret was used without exposing it\n          echo \"::notice::Deploy key accessed for production deployment\"\n```\n\n### Step 6: Implement Workflow Change Controls\n\n```yaml\n# Require CODEOWNERS approval for workflow changes\n# .github\u002FCODEOWNERS\n.github\u002Fworkflows\u002F @security-team @platform-team\n.github\u002Factions\u002F @security-team @platform-team\n\n# Organization settings:\n# 1. Settings > Actions > General > Fork PR policies\n#    - Require approval for first-time contributors\n#    - Require approval for all outside collaborators\n# 2. Settings > Actions > General > Workflow permissions\n#    - Read repository contents and packages permissions\n#    - Do NOT allow GitHub Actions to create and approve PRs\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| SHA Pinning | Referencing GitHub Actions by their immutable commit SHA instead of mutable version tags |\n| Script Injection | Attack where untrusted input (PR title, branch name) is interpolated into shell commands |\n| GITHUB_TOKEN | Automatically generated token with configurable permissions scoped to the current repository |\n| pull_request_target | Dangerous event trigger that runs in the base repo context with full permissions on fork PRs |\n| Environment Protection | GitHub feature requiring manual approval before jobs accessing an environment can run |\n| CODEOWNERS | File defining required reviewers for specific paths including workflow files |\n| OIDC Federation | Using GitHub's OIDC token to authenticate to cloud providers without storing long-lived credentials |\n\n## Tools & Systems\n\n- **Dependabot**: Automated dependency updater that keeps pinned action SHAs current\n- **StepSecurity Harden Runner**: GitHub Action that monitors and restricts outbound network calls from workflows\n- **actionlint**: Linter for GitHub Actions workflow files that detects security issues\n- **allstar**: GitHub App by OpenSSF that enforces security policies on repositories\n- **scorecard**: OpenSSF tool that evaluates supply chain security practices including CI\u002FCD\n\n## Common Scenarios\n\n### Scenario: Preventing Supply Chain Attack via Compromised Third-Party Action\n\n**Context**: A widely-used GitHub Action is compromised and its v3 tag is updated to include credential-stealing code. Repositories using `@v3` automatically pull the malicious version.\n\n**Approach**:\n1. Pin all actions to SHA digests immediately across all repositories\n2. Configure Dependabot for github-actions ecosystem to manage SHA updates\n3. Restrict GITHUB_TOKEN permissions so even compromised actions have minimal access\n4. Add StepSecurity harden-runner to detect anomalous outbound network calls\n5. Review all third-party actions and replace unnecessary ones with inline scripts\n6. Require CODEOWNERS approval for any changes to .github\u002Fworkflows\u002F\n\n**Pitfalls**: SHA pinning without Dependabot means missing legitimate security updates to actions. Overly restrictive permissions can break legitimate workflows. Using `pull_request_target` for label-based gating still exposes secrets if the workflow checks out PR code.\n\n## Output Format\n\n```\nGitHub Actions Security Audit\n================================\nRepository: org\u002Fweb-application\nDate: 2026-02-23\n\nWORKFLOW ANALYSIS:\n  Total workflows: 8\n  Total action references: 34\n\nSHA PINNING:\n  [FAIL] 12\u002F34 actions use mutable tags instead of SHA digests\n  - .github\u002Fworkflows\u002Fci.yml: actions\u002Fsetup-node@v4\n  - .github\u002Fworkflows\u002Fdeploy.yml: aws-actions\u002Fconfigure-aws-credentials@v4\n\nPERMISSIONS:\n  [FAIL] 3\u002F8 workflows have no explicit permissions (inherit default)\n  [WARN] 1\u002F8 workflows request write-all permissions\n\nSCRIPT INJECTION:\n  [FAIL] 2 workflow steps interpolate user input directly\n  - .github\u002Fworkflows\u002Fpr-check.yml:23: ${{ github.event.pull_request.title }}\n\nSECRETS:\n  [PASS] No secrets exposed in workflow logs\n  [PASS] All production deployments use environment protection\n\nSCORE: 6\u002F10 (Remediate 5 HIGH findings)\n```\n",{"name":5,"tags":56,"author":60,"domain":41,"license":16,"version":61,"nist_csf":62,"subdomain":50,"description":67,"mitre_attack":68},[50,57,45,43,58,59],"cicd","workflow-security","secure-sdlc","mahipal","1.0.0",[63,64,65,66],"PR.PS-01","GV.SC-07","ID.IM-04","PR.PS-04","Hardens GitHub Actions workflows against supply chain attacks, credential theft, and privilege escalation: pinning actions to SHA digests, minimizing GITHUB_TOKEN permissions, protecting secrets, preventing script injection in workflow expressions, and requiring reviewers for workflow changes. Use when hardening GitHub Actions workflows that handle secrets, deploy to production, or run with elevated permissions.\n",[69,70,71,72,73],"T1195","T1554","T1059.004","T1068","T1548","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fsecuring-github-actions-workflows",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":85,"prompt":95,"zipAvailable":96},[86,89,92],{"tool":87,"command":88},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill securing-github-actions-workflows",{"tool":90,"command":91},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill securing-github-actions-workflows",{"tool":93,"command":94},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill securing-github-actions-workflows","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002FSKILL.md",true,[98,104,109,115,119,123,129],{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"assets\u002Ftemplate.md","ASSET","资产文件",1016,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002Fassets\u002Ftemplate.md",{"path":105,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002FLICENSE",{"path":110,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fapi-reference.md","REFERENCE","参考文档",1844,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002Freferences\u002Fapi-reference.md",{"path":116,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":117,"sourceHtmlUrl":118},"references\u002Fstandards.md",1152,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002Freferences\u002Fstandards.md",{"path":120,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":121,"sourceHtmlUrl":122},"references\u002Fworkflows.md",1192,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002Freferences\u002Fworkflows.md",{"path":124,"resourceType":125,"resourceTypeDesc":126,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fagent.py","SCRIPT","脚本",8248,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002Fscripts\u002Fagent.py",{"path":130,"resourceType":125,"resourceTypeDesc":126,"sizeBytes":131,"sourceHtmlUrl":132},"scripts\u002Fprocess.py",7533,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fsecuring-github-actions-workflows\u002Fscripts\u002Fprocess.py",[134,160,188,220,251,283],{"skillNo":135,"name":136,"nameZh":137,"description":138,"descriptionZh":139,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":140,"categories":141,"keywords":144,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[142,143],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[145,146,147,148,42,41,149,150,38,151,152,153,43,154,155,48,156,157,158,159],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","code","artifacts","ci","pipeline","supply-chain-security","attestation","code-signing","cosign","keyless",{"skillNo":161,"name":162,"nameZh":163,"description":164,"descriptionZh":165,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":166,"categories":167,"keywords":172,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[168,169],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":170,"categoryName":171,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[173,156,174,175,42,176,41,38,177,178,179,180,181,182,183,49,184,185,186,187],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":189,"name":190,"nameZh":191,"description":192,"descriptionZh":193,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":194,"categories":195,"keywords":202,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[196,199],{"categoryNo":197,"categoryName":198,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":200,"categoryName":201,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[183,203,204,205,206,41,207,208,177,209,210,211,212,213,214,215,216,217,218,219],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":221,"name":222,"nameZh":223,"description":224,"descriptionZh":225,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":226,"categories":227,"keywords":232,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[228,229],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":230,"categoryName":231,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[233,234,235,41,236,237,238,239,240,241,242,243,244,245,246,247,180,248,249,250],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":252,"name":253,"nameZh":254,"description":255,"descriptionZh":256,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":257,"categories":258,"keywords":263,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[259,262],{"categoryNo":260,"categoryName":261,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[264,265,266,41,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":284,"name":285,"nameZh":286,"description":287,"descriptionZh":288,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":289,"categories":290,"keywords":295,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[291,292],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":293,"categoryName":294,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[42,296,41,297,298,299,300,301,302,303,304,215,305,216,306,307,308,309,310,311],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]