[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AF74BHK87VQ2VQ7GWYQTP7":3,"skill-same:01M6AF74BHK87VQ2VQ7GWYQTP7":134},{"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":75,"commitSha":76,"skillDirectory":77,"forksCount":78,"repositoryHtmlUrl":79,"repositoryHomepageUrl":80,"ownerHtmlUrl":81,"ownerBlogUrl":82,"ownerDescription":83,"updatedAt":84,"install":85,"resources":98},"01M6AF74BHK87VQ2VQ7GWYQTP7","implementing-infrastructure-as-code-security-scanning","基础设施即代码安全扫描","Implements automated security scanning for Infrastructure as Code using Checkov, tfsec, and KICS to detect misconfigurations in Terraform, CloudFormation, Kubernetes manifests, and Helm charts, plus policy-based governance and CI\u002FCD integration. Use when validating cloud infrastructure before deployment or blocking insecure changes (public S3 buckets, open security groups) in pull requests.","使用 Checkov、tfsec 和 KICS 对基础设施即代码实施自动化安全扫描，检测 Terraform、CloudFormation、Kubernetes 清单和 Helm 图表中的错误配置，并提供基于策略的治理和 CI\u002FCD 集成。适用于在部署前验证云基础设施，或在拉取请求中阻止不安全的变更（公开 S3 存储桶、开放的安全组）。","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\u002Fimplementing-infrastructure-as-code-security-scanning\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"code","implementing infrastructure as code security scanning","infrastructure as code","infrastructure","security","cybersecurity","pull requests","secure","pr","policy","deployment","kubernetes","pull","ci","checkov","tfsec","t1078","t1059","t1195","devsecops","2026-11-10 10:12:30",false,"---\nname: implementing-infrastructure-as-code-security-scanning\ndescription: 'Implements automated security scanning for Infrastructure as Code using\n  Checkov, tfsec, and KICS to detect misconfigurations in Terraform, CloudFormation,\n  Kubernetes manifests, and Helm charts, plus policy-based governance and CI\u002FCD\n  integration. Use when validating cloud infrastructure before deployment or blocking\n  insecure changes (public S3 buckets, open security groups) in pull requests.\n\n  '\ndomain: cybersecurity\nsubdomain: devsecops\ntags:\n- devsecops\n- cicd\n- iac-security\n- checkov\n- tfsec\n- terraform\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- T1078.004\n- T1530\n---\n\n# Implementing Infrastructure as Code Security Scanning\n\n## When to Use\n\n- When provisioning cloud infrastructure with Terraform, CloudFormation, or Pulumi and needing automated security validation\n- When compliance frameworks require evidence of infrastructure configuration review before deployment\n- When preventing common cloud misconfigurations like public S3 buckets, open security groups, or unencrypted storage\n- When establishing guardrails that block insecure infrastructure changes in pull requests\n- When managing multi-cloud environments requiring consistent security policies across AWS, Azure, and GCP\n\n**Do not use** for scanning application source code (use SAST), for monitoring already-deployed infrastructure drift (use cloud security posture management tools), or for container image vulnerability scanning (use Trivy).\n\n## Prerequisites\n\n- Checkov v3.x installed (`pip install checkov`) or tfsec installed\n- Terraform, CloudFormation, or Kubernetes IaC files in the repository\n- CI\u002FCD pipeline with access to IaC directories\n- Bridgecrew API key (optional, for Checkov platform integration)\n\n## Workflow\n\n### Step 1: Run Checkov Against Terraform Files\n\n```bash\n# Scan all Terraform files in a directory\ncheckov -d .\u002Fterraform\u002F --framework terraform --output cli --output json --output-file-path .\u002Fresults\n\n# Scan specific file\ncheckov -f main.tf --output json\n\n# Scan Terraform plan (more accurate for dynamic values)\nterraform init && terraform plan -out=tfplan\nterraform show -json tfplan > tfplan.json\ncheckov -f tfplan.json --framework terraform_plan\n\n# Scan with specific checks only\ncheckov -d .\u002Fterraform\u002F --check CKV_AWS_18,CKV_AWS_19,CKV_AWS_20\n\n# Skip specific checks\ncheckov -d .\u002Fterraform\u002F --skip-check CKV_AWS_145,CKV2_AWS_6\n```\n\n### Step 2: Integrate IaC Scanning into GitHub Actions\n\n```yaml\n# .github\u002Fworkflows\u002Fiac-security.yml\nname: IaC Security Scan\n\non:\n  pull_request:\n    paths:\n      - 'terraform\u002F**'\n      - 'cloudformation\u002F**'\n      - 'k8s\u002F**'\n\njobs:\n  checkov:\n    name: Checkov IaC Scan\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run Checkov\n        uses: bridgecrewio\u002Fcheckov-action@v12\n        with:\n          directory: terraform\u002F\n          framework: terraform\n          output_format: cli,sarif\n          output_file_path: console,checkov.sarif\n          soft_fail: false\n          skip_check: CKV_AWS_145\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: checkov.sarif\n          category: checkov-iac\n\n  tfsec:\n    name: tfsec Scan\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run tfsec\n        uses: aquasecurity\u002Ftfsec-action@v1.0.3\n        with:\n          working_directory: terraform\u002F\n          sarif_file: tfsec.sarif\n          soft_fail: false\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: tfsec.sarif\n          category: tfsec\n```\n\n### Step 3: Create Custom Checkov Policies\n\n```python\n# custom_checks\u002Fs3_versioning.py\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\nfrom checkov.common.models.enums import CheckResult, CheckCategories\n\n\nclass S3BucketVersioning(BaseResourceCheck):\n    def __init__(self):\n        name = \"Ensure S3 bucket has versioning enabled\"\n        id = \"CKV_CUSTOM_1\"\n        supported_resources = [\"aws_s3_bucket\"]\n        categories = [CheckCategories.GENERAL_SECURITY]\n        super().__init__(name=name, id=id, categories=categories,\n                         supported_resources=supported_resources)\n\n    def scan_resource_conf(self, conf):\n        versioning = conf.get(\"versioning\", [{}])\n        if isinstance(versioning, list) and len(versioning) > 0:\n            if versioning[0].get(\"enabled\", [False])[0]:\n                return CheckResult.PASSED\n        return CheckResult.FAILED\n\n\ncheck = S3BucketVersioning()\n```\n\n### Step 4: Configure Baseline and Suppressions\n\n```yaml\n# .checkov.yaml\nbranch: main\ncompact: true\ndirectory:\n  - terraform\u002F\n  - cloudformation\u002F\nframework:\n  - terraform\n  - cloudformation\n  - kubernetes\noutput:\n  - cli\n  - sarif\nskip-check:\n  - CKV_AWS_145    # S3 default encryption with CMK (using SSE-S3 is acceptable)\n  - CKV2_AWS_6     # S3 bucket request logging (handled at CloudTrail level)\nsoft-fail: false\n```\n\n### Step 5: Scan Kubernetes Manifests and Helm Charts\n\n```bash\n# Scan Kubernetes manifests\ncheckov -d .\u002Fk8s\u002F --framework kubernetes\n\n# Scan Helm charts (renders templates first)\ncheckov -d .\u002Fcharts\u002Fmyapp\u002F --framework helm\n\n# Scan with KICS (Keeping Infrastructure as Code Secure)\ndocker run -v $(pwd)\u002Fk8s:\u002Fpath checkmarx\u002Fkics:latest scan \\\n  --path \u002Fpath \\\n  --output-path \u002Fpath\u002Fresults \\\n  --type Kubernetes \\\n  --report-formats json,sarif\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| IaC Scanning | Automated analysis of infrastructure code templates to detect security misconfigurations before deployment |\n| Policy as Code | Security policies defined as executable code that can be version-controlled, tested, and enforced automatically |\n| CKV Check ID | Checkov's unique identifier for each security check (e.g., CKV_AWS_18 for S3 public access) |\n| Terraform Plan Scanning | Scanning the resolved Terraform plan JSON which includes computed values and module expansions |\n| Graph-based Scanning | Checkov's ability to analyze relationships between resources, not just individual resource configs |\n| Drift Detection | Identifying differences between IaC definitions and actual deployed infrastructure state |\n| Custom Policy | Organization-specific security checks authored in Python or YAML to enforce internal standards |\n\n## Tools & Systems\n\n- **Checkov**: Open-source IaC scanner by Bridgecrew with 2500+ built-in policies covering major cloud providers\n- **tfsec**: Terraform-focused static analysis tool by Aqua Security with deep HCL understanding\n- **KICS**: Open-source IaC scanner by Checkmarx supporting 15+ IaC frameworks\n- **Terrascan**: IaC scanner with OPA Rego policy support for custom policy authoring\n- **Snyk IaC**: Commercial IaC scanner integrated with the Snyk platform\n\n## Common Scenarios\n\n### Scenario: Preventing Public S3 Buckets in Terraform\n\n**Context**: A development team repeatedly creates S3 buckets without proper access controls. A recent incident exposed customer data through a public bucket.\n\n**Approach**:\n1. Enable Checkov in the CI\u002FCD pipeline for all Terraform changes\n2. Enforce CKV_AWS_18 (no public read ACL), CKV_AWS_19 (encryption), CKV_AWS_20 (no public access block disabled)\n3. Create a custom policy requiring the `aws_s3_bucket_public_access_block` resource for every S3 bucket\n4. Set `soft_fail: false` to block PR merges when S3 security checks fail\n5. Provide Terraform modules with security defaults that teams can reuse\n\n**Pitfalls**: Scanning only `.tf` files misses dynamically computed values. Use Terraform plan scanning for higher accuracy. Checkov's resource-relationship checks (CKV2 prefix) require graph analysis mode.\n\n## Output Format\n\n```\nIaC Security Scan Report\n==========================\nFramework: Terraform\nDirectory: terraform\u002F\nScan Date: 2026-02-23\n\nCheckov Results:\n  Passed: 187\n  Failed: 12\n  Skipped: 3\n  Unknown: 0\n\nFAILED CHECKS:\n  CKV_AWS_18  [HIGH]   S3 Bucket has public read ACL\n              Resource: aws_s3_bucket.data_lake\n              File:     terraform\u002Fstorage.tf:15-28\n\n  CKV_AWS_24  [HIGH]   CloudWatch log group not encrypted\n              Resource: aws_cloudwatch_log_group.app\n              File:     terraform\u002Fmonitoring.tf:3-8\n\n  CKV_AWS_79  [MEDIUM] Instance metadata service v1 enabled\n              Resource: aws_instance.web\n              File:     terraform\u002Fcompute.tf:12-30\n\nQUALITY GATE: FAILED (2 HIGH severity findings)\n```\n","# Implementing Infrastructure as Code Security Scanning\n\n## When to Use\n\n- When provisioning cloud infrastructure with Terraform, CloudFormation, or Pulumi and needing automated security validation\n- When compliance frameworks require evidence of infrastructure configuration review before deployment\n- When preventing common cloud misconfigurations like public S3 buckets, open security groups, or unencrypted storage\n- When establishing guardrails that block insecure infrastructure changes in pull requests\n- When managing multi-cloud environments requiring consistent security policies across AWS, Azure, and GCP\n\n**Do not use** for scanning application source code (use SAST), for monitoring already-deployed infrastructure drift (use cloud security posture management tools), or for container image vulnerability scanning (use Trivy).\n\n## Prerequisites\n\n- Checkov v3.x installed (`pip install checkov`) or tfsec installed\n- Terraform, CloudFormation, or Kubernetes IaC files in the repository\n- CI\u002FCD pipeline with access to IaC directories\n- Bridgecrew API key (optional, for Checkov platform integration)\n\n## Workflow\n\n### Step 1: Run Checkov Against Terraform Files\n\n```bash\n# Scan all Terraform files in a directory\ncheckov -d .\u002Fterraform\u002F --framework terraform --output cli --output json --output-file-path .\u002Fresults\n\n# Scan specific file\ncheckov -f main.tf --output json\n\n# Scan Terraform plan (more accurate for dynamic values)\nterraform init && terraform plan -out=tfplan\nterraform show -json tfplan > tfplan.json\ncheckov -f tfplan.json --framework terraform_plan\n\n# Scan with specific checks only\ncheckov -d .\u002Fterraform\u002F --check CKV_AWS_18,CKV_AWS_19,CKV_AWS_20\n\n# Skip specific checks\ncheckov -d .\u002Fterraform\u002F --skip-check CKV_AWS_145,CKV2_AWS_6\n```\n\n### Step 2: Integrate IaC Scanning into GitHub Actions\n\n```yaml\n# .github\u002Fworkflows\u002Fiac-security.yml\nname: IaC Security Scan\n\non:\n  pull_request:\n    paths:\n      - 'terraform\u002F**'\n      - 'cloudformation\u002F**'\n      - 'k8s\u002F**'\n\njobs:\n  checkov:\n    name: Checkov IaC Scan\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run Checkov\n        uses: bridgecrewio\u002Fcheckov-action@v12\n        with:\n          directory: terraform\u002F\n          framework: terraform\n          output_format: cli,sarif\n          output_file_path: console,checkov.sarif\n          soft_fail: false\n          skip_check: CKV_AWS_145\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: checkov.sarif\n          category: checkov-iac\n\n  tfsec:\n    name: tfsec Scan\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n\n      - name: Run tfsec\n        uses: aquasecurity\u002Ftfsec-action@v1.0.3\n        with:\n          working_directory: terraform\u002F\n          sarif_file: tfsec.sarif\n          soft_fail: false\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: tfsec.sarif\n          category: tfsec\n```\n\n### Step 3: Create Custom Checkov Policies\n\n```python\n# custom_checks\u002Fs3_versioning.py\nfrom checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck\nfrom checkov.common.models.enums import CheckResult, CheckCategories\n\n\nclass S3BucketVersioning(BaseResourceCheck):\n    def __init__(self):\n        name = \"Ensure S3 bucket has versioning enabled\"\n        id = \"CKV_CUSTOM_1\"\n        supported_resources = [\"aws_s3_bucket\"]\n        categories = [CheckCategories.GENERAL_SECURITY]\n        super().__init__(name=name, id=id, categories=categories,\n                         supported_resources=supported_resources)\n\n    def scan_resource_conf(self, conf):\n        versioning = conf.get(\"versioning\", [{}])\n        if isinstance(versioning, list) and len(versioning) > 0:\n            if versioning[0].get(\"enabled\", [False])[0]:\n                return CheckResult.PASSED\n        return CheckResult.FAILED\n\n\ncheck = S3BucketVersioning()\n```\n\n### Step 4: Configure Baseline and Suppressions\n\n```yaml\n# .checkov.yaml\nbranch: main\ncompact: true\ndirectory:\n  - terraform\u002F\n  - cloudformation\u002F\nframework:\n  - terraform\n  - cloudformation\n  - kubernetes\noutput:\n  - cli\n  - sarif\nskip-check:\n  - CKV_AWS_145    # S3 default encryption with CMK (using SSE-S3 is acceptable)\n  - CKV2_AWS_6     # S3 bucket request logging (handled at CloudTrail level)\nsoft-fail: false\n```\n\n### Step 5: Scan Kubernetes Manifests and Helm Charts\n\n```bash\n# Scan Kubernetes manifests\ncheckov -d .\u002Fk8s\u002F --framework kubernetes\n\n# Scan Helm charts (renders templates first)\ncheckov -d .\u002Fcharts\u002Fmyapp\u002F --framework helm\n\n# Scan with KICS (Keeping Infrastructure as Code Secure)\ndocker run -v $(pwd)\u002Fk8s:\u002Fpath checkmarx\u002Fkics:latest scan \\\n  --path \u002Fpath \\\n  --output-path \u002Fpath\u002Fresults \\\n  --type Kubernetes \\\n  --report-formats json,sarif\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| IaC Scanning | Automated analysis of infrastructure code templates to detect security misconfigurations before deployment |\n| Policy as Code | Security policies defined as executable code that can be version-controlled, tested, and enforced automatically |\n| CKV Check ID | Checkov's unique identifier for each security check (e.g., CKV_AWS_18 for S3 public access) |\n| Terraform Plan Scanning | Scanning the resolved Terraform plan JSON which includes computed values and module expansions |\n| Graph-based Scanning | Checkov's ability to analyze relationships between resources, not just individual resource configs |\n| Drift Detection | Identifying differences between IaC definitions and actual deployed infrastructure state |\n| Custom Policy | Organization-specific security checks authored in Python or YAML to enforce internal standards |\n\n## Tools & Systems\n\n- **Checkov**: Open-source IaC scanner by Bridgecrew with 2500+ built-in policies covering major cloud providers\n- **tfsec**: Terraform-focused static analysis tool by Aqua Security with deep HCL understanding\n- **KICS**: Open-source IaC scanner by Checkmarx supporting 15+ IaC frameworks\n- **Terrascan**: IaC scanner with OPA Rego policy support for custom policy authoring\n- **Snyk IaC**: Commercial IaC scanner integrated with the Snyk platform\n\n## Common Scenarios\n\n### Scenario: Preventing Public S3 Buckets in Terraform\n\n**Context**: A development team repeatedly creates S3 buckets without proper access controls. A recent incident exposed customer data through a public bucket.\n\n**Approach**:\n1. Enable Checkov in the CI\u002FCD pipeline for all Terraform changes\n2. Enforce CKV_AWS_18 (no public read ACL), CKV_AWS_19 (encryption), CKV_AWS_20 (no public access block disabled)\n3. Create a custom policy requiring the `aws_s3_bucket_public_access_block` resource for every S3 bucket\n4. Set `soft_fail: false` to block PR merges when S3 security checks fail\n5. Provide Terraform modules with security defaults that teams can reuse\n\n**Pitfalls**: Scanning only `.tf` files misses dynamically computed values. Use Terraform plan scanning for higher accuracy. Checkov's resource-relationship checks (CKV2 prefix) require graph analysis mode.\n\n## Output Format\n\n```\nIaC Security Scan Report\n==========================\nFramework: Terraform\nDirectory: terraform\u002F\nScan Date: 2026-02-23\n\nCheckov Results:\n  Passed: 187\n  Failed: 12\n  Skipped: 3\n  Unknown: 0\n\nFAILED CHECKS:\n  CKV_AWS_18  [HIGH]   S3 Bucket has public read ACL\n              Resource: aws_s3_bucket.data_lake\n              File:     terraform\u002Fstorage.tf:15-28\n\n  CKV_AWS_24  [HIGH]   CloudWatch log group not encrypted\n              Resource: aws_cloudwatch_log_group.app\n              File:     terraform\u002Fmonitoring.tf:3-8\n\n  CKV_AWS_79  [MEDIUM] Instance metadata service v1 enabled\n              Resource: aws_instance.web\n              File:     terraform\u002Fcompute.tf:12-30\n\nQUALITY GATE: FAILED (2 HIGH severity findings)\n```\n",{"name":5,"tags":56,"author":61,"domain":36,"license":16,"version":62,"nist_csf":63,"subdomain":50,"description":68,"mitre_attack":69},[50,57,58,45,46,59,60],"cicd","iac-security","terraform","secure-sdlc","mahipal","1.0.0",[64,65,66,67],"PR.PS-01","GV.SC-07","ID.IM-04","PR.PS-04","Implements automated security scanning for Infrastructure as Code using Checkov, tfsec, and KICS to detect misconfigurations in Terraform, CloudFormation, Kubernetes manifests, and Helm charts, plus policy-based governance and CI\u002FCD integration. Use when validating cloud infrastructure before deployment or blocking insecure changes (public S3 buckets, open security groups) in pull requests.\n",[70,71,72,73,74],"T1195","T1554","T1059.004","T1078.004","T1530","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fimplementing-infrastructure-as-code-security-scanning",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":86,"prompt":96,"zipAvailable":97},[87,90,93],{"tool":88,"command":89},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill implementing-infrastructure-as-code-security-scanning",{"tool":91,"command":92},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill implementing-infrastructure-as-code-security-scanning",{"tool":94,"command":95},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill implementing-infrastructure-as-code-security-scanning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002FSKILL.md",true,[99,105,110,116,120,124,130],{"path":100,"resourceType":101,"resourceTypeDesc":102,"sizeBytes":103,"sourceHtmlUrl":104},"assets\u002Ftemplate.md","ASSET","资产文件",2018,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002Fassets\u002Ftemplate.md",{"path":106,"resourceType":106,"resourceTypeDesc":107,"sizeBytes":108,"sourceHtmlUrl":109},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002FLICENSE",{"path":111,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":114,"sourceHtmlUrl":115},"references\u002Fapi-reference.md","REFERENCE","参考文档",1359,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002Freferences\u002Fapi-reference.md",{"path":117,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":118,"sourceHtmlUrl":119},"references\u002Fstandards.md",1837,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002Freferences\u002Fstandards.md",{"path":121,"resourceType":112,"resourceTypeDesc":113,"sizeBytes":122,"sourceHtmlUrl":123},"references\u002Fworkflows.md",3027,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002Freferences\u002Fworkflows.md",{"path":125,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fagent.py","SCRIPT","脚本",6970,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002Fscripts\u002Fagent.py",{"path":131,"resourceType":126,"resourceTypeDesc":127,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Fprocess.py",9246,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fimplementing-infrastructure-as-code-security-scanning\u002Fscripts\u002Fprocess.py",[135,162,190,220,251,283],{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":141,"categories":142,"keywords":147,"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",[143,144],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":145,"categoryName":146,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[148,149,150,151,35,36,152,153,39,31,154,44,155,156,157,49,158,159,160,161],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","artifacts","supply-chain","pipeline","supply-chain-security","attestation","code-signing","cosign","keyless",{"skillNo":163,"name":164,"nameZh":165,"description":166,"descriptionZh":167,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":168,"categories":169,"keywords":174,"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",[170,171],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":172,"categoryName":173,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[175,158,176,177,35,40,36,39,178,179,180,181,182,183,184,185,186,187,188,189],"boot","TPM","validating tpm measured boot attestation","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":191,"name":192,"nameZh":193,"description":194,"descriptionZh":195,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":196,"categories":197,"keywords":204,"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",[198,201],{"categoryNo":199,"categoryName":200,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":202,"categoryName":203,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[184,205,206,207,208,36,34,209,178,210,211,212,213,214,215,47,216,217,218,219],"backup","recovery","validating backup integrity for recovery","testing","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","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,36,236,237,238,239,240,241,242,243,244,245,246,247,181,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,36,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","安全事件响应与威胁狩猎",[35,296,36,297,298,299,300,301,302,303,304,47,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"]