Red Detector: Automated CVE Scanning for AWS EC2

https://github.com/lightspin-tech/red-detector


Related discussions:

Containerize this so it can scan everything at once.

That’s an awful lot of IAM permissions for an unknown Github repo.

That’s neat But what’s the advantage over AWS inspector? Price?

Fair.

I’ll give OP props for at least sharing source. A lot of folks on here get excited by whatever (closed source) SaaS offering they have been working on - then want you to input your Access & Secret key with like * permissions to everything in your account(s).

im not sure i understand why ? do you refer to the ec2 policy required and mentioned here: https://github.com/lightspin-tech/red-detector/blob/main/red-detector-policy.json ?

Yep. That’s really extensive set of permissions that can not only cause a really expensive bill but also create botnets or other stuff that may abuse your account. Also, no explanation why each permission is needed, nearly no comments in the code, doing snapshots of your volumes, complete lack of documentation etc. For a software that claims to scan for vulnerabilities, a really detailed documentation would be the minimum requirement to even consider using it.

Also, it opens SSH and HTTP to 0.0.0.0/0 in that security group and starts an unknown AMI which can contain and do everything.

Hi All

We fixed some of your comments.

The security group is now opened to the source ip only and not 0.0.0.0/0.
There is na explanation about each IAM action needed.

Thanks
Or

And it’s now validated that the Ubuntu is the owned by Canonical.