zarn icon indicating copy to clipboard operation
zarn copied to clipboard

Possibility to create rules for "absence of code"

Open htrgouvea opened this issue 7 months ago • 10 comments

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 avatar Nov 10 '23 00:11 htrgouvea

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.

htrgouvea avatar Nov 10 '23 10:11 htrgouvea

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

andersonbosa avatar Nov 10 '23 13:11 andersonbosa

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 avatar Nov 10 '23 13:11 htrgouvea

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 avatar Nov 14 '23 16:11 htrgouvea

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 avatar Nov 16 '23 13:11 htrgouvea

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

htrgouvea avatar Nov 17 '23 10:11 htrgouvea

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

giovannism20 avatar Nov 21 '23 13:11 giovannism20

Of course @giovannism20!

htrgouvea avatar Nov 21 '23 14:11 htrgouvea

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 :pray:

andersonbosa avatar Nov 29 '23 11:11 andersonbosa

Thanks @andersonbosa

htrgouvea avatar Dec 01 '23 13:12 htrgouvea