Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to create rules for "absence of code" #16

Closed
htrgouvea opened this issue Nov 10, 2023 · 11 comments
Closed

Possibility to create rules for "absence of code" #16

htrgouvea opened this issue Nov 10, 2023 · 11 comments

Comments

@htrgouvea
Copy link
Owner

Currently ZARN works by searching for the presence of dangerous functions/that may present risks and trying to infer whether they are "reachable" through user input. But there are some categories of vulnerabilities/risks that occur through the absence of a code (or a combination of both factors), example: #14

It would be interesting to have an implementation of this feature.

@htrgouvea
Copy link
Owner Author

Example:

  - id: '0005'
    category: warn
    name: "Lorem Ipsum"
    message: "Lorem Ipsum"
    type: presence
    sample:
      - md5
   - id: '0006'
    category: warn
    name: "Other rule"
    message: "Other message"
    type: absence
    sample:
      - strict
      - warnings

For rules with type "presence" the current behavior remains the same. For the "absence" rules, the search will be carried out for the absence of the item.

@andersonbosa
Copy link
Contributor

@htrgouvea, I would like to do this upgrade, can you assign it to me?

@htrgouvea
Copy link
Owner Author

Hi @andersonbosa, of course! This task is with you for up to 5 days, if there is no update during this period I will remove it but in case of updates, I will keep it. Thanks!

@htrgouvea
Copy link
Owner Author

Hi @andersonbosa! It's been 4 days since the assignment to you, we're close to the limit and I haven't had any updates yet. If you update me on something, I can increase this deadline.

@htrgouvea
Copy link
Owner Author

Hi @andersonbosa, I saw that you made an update after my comment. However, the content of the update does not match the issue. Let me know if you're still interested in resolving this point. Thanks.

@htrgouvea
Copy link
Owner Author

Due to the lack of response, I am allowing the possibility of someone else being responsible for the issue.

@giovannism20
Copy link
Contributor

Hey @htrgouvea, can I get the assign of this task ?

@htrgouvea
Copy link
Owner Author

Of course @giovannism20!

@andersonbosa
Copy link
Contributor

Hey guys,

Sorry for my delay here. I had some personal issues and was away for a few days... @htrgouvea I'm sorry I left you in the dark about this 🙏

@htrgouvea
Copy link
Owner Author

Thanks @andersonbosa

@htrgouvea
Copy link
Owner Author

Closed #54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants