Giter Site home page Giter Site logo

curl error about cs-suite HOT 10 CLOSED

securityftw avatar securityftw commented on June 18, 2024
curl error

from cs-suite.

Comments (10)

shivankar-madaan avatar shivankar-madaan commented on June 18, 2024

@florin2528 are you getting this for AWS audit?

from cs-suite.

florin2528 avatar florin2528 commented on June 18, 2024

by running: python cs.py -env aws

from cs-suite.

shivankar-madaan avatar shivankar-madaan commented on June 18, 2024

Ok
I have just ran the cs-suite for aws,with the latest master branch, I couldn't reproduce the error.

Also the curl calls are being made from prowler https://github.com/SecurityFTW/cs-suite/tree/e39adfc6d518ccdfc086e4d89e2bb3ea348c10cb/tools/prowler

could it be possible, if could run prowler separately in cd tools/prowler and then ./prowler
or if I could share more of the error's which you are getting on the console.

from cs-suite.

florin2528 avatar florin2528 commented on June 18, 2024

root@ip-10-xx-yy-45:~/cs-suite/tools/prowler# ./prowler
curl: option -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
curl: option -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
curl: option -: is unknown
curl: try 'curl --help' or 'curl --manual' for more information
_
_ __ _ __ _____ | | ___ _ __
| '
| '/ _ \ \ /\ / / |/ _ \ '|
| |) | | | () \ V V /| | / |
| .
/|| ___/ _/_/ ||___||
|
| CIS based AWS Account Hardening Tool

from cs-suite.

florin2528 avatar florin2528 commented on June 18, 2024

running the curl commands separately from prowler don't give any error:

root@ip-10-xx-yy-45:~/cs-suite/tools/prowler# curl -s -m 1 http://169.254.169.254/latest/meta-data/iam/security-credentials/
"

<title>404 - Not Found</title>

404 - Not Found

"

from cs-suite.

shivankar-madaan avatar shivankar-madaan commented on June 18, 2024

I guess you are running this from a AWS instance?
I think prowler is trying to authenticate, which can be done in 2 ways

  1. Either run aws configure and add the read-only key and secret
  2. Or the instance which you are running prowler or cs-suite, should be attached to IAM profile

from cs-suite.

florin2528 avatar florin2528 commented on June 18, 2024

yes, that's correct, i'm running from an AWS instance.
The keys are already configured.

but I don't see the connection between curl command syntax error and IAM profile.

from cs-suite.

shivankar-madaan avatar shivankar-madaan commented on June 18, 2024

So here is the code which is doing trying to get the keys
https://github.com/SecurityFTW/cs-suite/blob/master/tools/prowler/prowler#L259

from cs-suite.

florin2528 avatar florin2528 commented on June 18, 2024

I solved the issue by adding an IAM role to that instance.
You can close this issue.

thanks for helping out!

from cs-suite.

shivankar-madaan avatar shivankar-madaan commented on June 18, 2024

Thats great
I think this was a genuine issue, you could possibly report it here
https://github.com/toniblyx/prowler

from cs-suite.

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.