GithubHelp home page GithubHelp logo

Comments (2)

SimardeepSingh-zsh avatar SimardeepSingh-zsh commented on May 24, 2024 1

Hi @yuliang29,

Thank you for reporting this issue and providing detailed steps to reproduce the false positive scenario in the Prowler AWS scan.

From the provided SQS access policy snippet, it seems that the condition indeed limits access based on the source S3 ARN, even though it lacks the account ID. This may be causing the misinterpretation in our policy condition parser.

To address this false positive, here are some insights and possible workarounds:

Policy Condition Parsing: The current policy condition parser might not accurately interpret conditions without explicit account IDs. This could lead to false positives, especially in scenarios where conditions are based solely on resource ARNs without account specifics.

Parser Enhancement: We can consider enhancing the parser logic to handle scenarios like the one you've described, where conditions might lack explicit account IDs but still have valid restrictions based on resource ARNs.

Adjusting Policies: In the meantime, as a workaround, you might explicitly specify the AWS account ID in your conditions wherever possible to ensure accurate evaluation by the policy parser.

from prowler.

jfagoagas avatar jfagoagas commented on May 24, 2024

Hi @yuliang29 @SimardeepSingh-zsh I was checking this issue and I noticed that this is fixed in the master branch. As you can see in this part of the code https://github.com/prowler-cloud/prowler/blob/master/prowler/providers/aws/lib/policy_condition_parser/policy_condition_parser.py#L24-L43, we are handling the aws:SourceArn using the ArnEquals condition, so that check will raise a PASS finding for a SQS queue with that policy.

I'm going to close it since it is no longer an issue. Please feel free to reopen it if you notice the same behaviour again.

Thanks for using Prowler 🚀

from prowler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.