Add additional-cloud IaC misconfiguration rule pack (DigitalOcean, Oracle, Alibaba)#218
Open
seonghobae wants to merge 1 commit into
Open
Add additional-cloud IaC misconfiguration rule pack (DigitalOcean, Oracle, Alibaba)#218seonghobae wants to merge 1 commit into
seonghobae wants to merge 1 commit into
Conversation
Add scanner/rules/cloud-extra.yml with 6 high-precision Terraform rules for DigitalOcean, Oracle Cloud (OCI), and Alibaba Cloud. Every pattern is anchored on a provider-specific resource or attribute name so it never fires on generic files or on AWS/Azure/GCP Terraform. - digitalocean-firewall-sensitive-port-world-open (HIGH) - digitalocean-spaces-bucket-public-acl (HIGH) - oracle-security-list-ingress-world-open (HIGH) - oracle-object-storage-bucket-public (HIGH) - alibaba-security-group-rule-world-open (HIGH) - alibaba-oss-bucket-public-write (CRITICAL) Includes tests/test_cloud_extra_rules.py (per-rule positives/negatives, severities, and an end-to-end .tf scan) plus CHANGELOG and README updates. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EywwS2Du8pimW7xqRP3An3
| the pack fires through the real file scanner and stays quiet on safe config. | ||
| """ | ||
|
|
||
| from pathlib import Path |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
scanner/rules/cloud-extra.yml— a high-precision Terraform IaC misconfiguration rule pack covering three clouds not previously handled: DigitalOcean, Oracle Cloud (OCI), and Alibaba Cloud.Every pattern is anchored on a provider-specific resource or attribute name (
digitalocean_spaces_bucket,source_addresses,ingress_security_rules,oci_objectstorage_bucket,alicloud_security_group_rule,alicloud_oss_bucket), so it never fires on generic files or on AWS/Azure/GCP Terraform.Rules (6)
digitalocean-firewall-sensitive-port-world-opendigitalocean-spaces-bucket-public-acloracle-security-list-ingress-world-openoracle-object-storage-bucket-publicalibaba-security-group-rule-world-openalibaba-oss-bucket-public-writeTesting
tests/test_cloud_extra_rules.py: per-rule positives + negatives + severities, plus an end-to-end_scan_filescan on a.tffile (confirms rules fire through the real scanner and stay silent on safe config, including a non-matchingaws_s3_bucketpublic ACL).Docs
[Unreleased]entry (Korean).🤖 Generated with Claude Code