Skip to content

bug(terraform aws): false positive for s3 bucket policy accepts http requests #8050

@bemban1996

Description

@bemban1996

Found a bug? You're welcome to GitHub Discussions

Problem: The KICS SAST scan flagged the 'S3 Bucket Policy Accepts HTTP Requests' vulnerability. During remediation testing, I discovered that the KICS parser only successfully evaluates static policy documents. If the policy document contains dynamic Terraform blocks (like count or for_each), KICS fails to parse them and cannot detect the SSL enforcement rule.

Expected Behavior

(Which results are expected from KICS?)
No positive for KICS scan finding 'S3 Bucket Policy Accepts HTTP Requests'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcommunityCommunity contribution

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions