Git Product home page Git Product logo

Comments (2)

cx-henriqueAlvelos avatar cx-henriqueAlvelos commented on September 24, 2024

Hello.

You are using # kics-scan ignore-block wrong. You need to put before SecurityGroupIngress:, Properties:, DemoSecurityGroup: or Resources:. EDIT: Because there is no block after that comment, just a few lines. A block is like an element of array like:
Description: Allowing port 22 for everyone
IpProtocol: tcp
FromPort: 22
ToPort: 22
CidrIp: "0.0.0.0/0"
or an Object with attributes (like Resources, DemoSecurityGroup, Properties or SecurityGroupIngress

I notice that 5 HIGH vulnerabilities are pointing to the same line (SecurityGroupIngress:). So, you can put # kics-scan ignore-block or # kics-scan ignore-line before that line

Best regards

from kics.

tblinux avatar tblinux commented on September 24, 2024

I got that part from the documentation but I do not want to ignore all the rules mentioned in the SecurityGroupIngress: block.

What I am looking for is, Out of two security rules, KICS should ignore one rule (For Port 80) and should scan all other rules mentioned in the resource.

Following rule should be ignored/skip.

        - Description: Allowing port 80 for everyone
          IpProtocol: tcp
          FromPort: 80
          ToPort: 80
          CidrIp: "0.0.0.0/0"

But KICS should continue scan for the following rule:

        - Description: Allowing port 22 for everyone
          IpProtocol: tcp
          FromPort: 22
          ToPort: 22
          CidrIp: "0.0.0.0/0"

from kics.

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.