You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

 

While looking analysis results, you could find that (for example) a Kiuwan rule is generally helpful and must be kept active. But, in some concrete cases, it is not applicable (or it is not properly working) and some defects should not be considered in the analysis.

Reasons to “silence” (or mute) those defects can be of very different nature but you might decide that, the rule should not be applied in certain particular cases o situations.

In any case, you want to keep active the rule but discard some specific defects. Kiuwan provides the Mute Defect functionality to do it.

Please, also have a look at How to manage Kiuwan defects when I do not completely agree with them

Basics of Defects Mute

Scope of Mute

Defects muting can be applied to three different scopes:

  1. Defect-specific
    1. A specific defect is muted (identified the rule and the line number of the source file
  2. File-scope
    1. To mute all the defects of a certain file, regardless of the nature (rule) of the defect
  3. Rule-scope
    1. To mute all the defects coming from a specific rule, regardless of the file where the defects are appearing
  4. Rule-File or File-Rule scope
    1. Rule-File: To mute all the defects of a certain rule belonging to a specific file (or to a set of files)
    2. File-Rule: To mute all the defects of a certain file coming for a specific rule

 

Kiuwan allows you to declare mute patterns for all the above situations, letting you to suite Kiuwan muting mechanism to your specific needs.

 

What is important to remember is that muted defects will not be considered when passing an Audit or calculating any Indicator.

Muted defects are still there (you can inspect them) but will not be part of the calculations made by Kiuwan.

 

Probably, you might be wondering at this moment some questions:

  1. Muting a rule is the same than deactivating that rule
    1. Yes, muting a rule will mute all the current defects of that rule as well as future defects of that rule in further analyses.  This way, you don’t need to deactivate the rule (that would imply to deactivate the rule for all the applications that use that model). Also, defects of that rule still exists (but muted) ,  but will not be considered in Audits or in the Indicators.  You can later un-mute again at a later stage and will be considered as “live” again. 
  2. Muting a file is the same as “excluding” that file from the analysis? 
    1. Yes, the final effect is the same. Muting a file will mute all the current defects of that file as well as future defects for that file. As above,  those defects will remain in the analysis, but muted, not being considered in Audits and Indicators.

 

Muting Defects in Kiuwan Lyfe Cyle (baseline and deliveries)

Kiuwan allows you to mute defects at any moment of your applications life cycle.

If you are using Kiuwan Life Cycle, most probably you will have application baselines (performed periodically at quite defined promotion to production stages) and deliveries (at nightly-build or quite often while continuous development).

In previous releases, Kiuwan only allowed you to mute defects in baseline analyses. Now, you can also mute defects found during a delivery analysis.

  1. If you mute defects of a baseline, those defects will also be muted in further analyses (deliveries and baselines)
  2. If you mute defects of a delivery, all the further deliveries and baselines will also mute those defects.    

In summary, you can mute defects at any moment of your application life cycle.

 

Review Status of Defects

After an analysis, you will need to spend some time looking carefully to the defects found during the analysis, to fully understand them before to consider submit its correction to developers. During that review, some of them will be reviewed very fast but other may take a while.

Kiuwan can help you to mark the “Review Status” for any specific defect. 

 

This way, as you review the defects you can mark them as “To review” or “Reviewed” (or leaving blank, of course) for review tracking purposes.

How to Mute Defects in Kiuwan

Kiuwan lets you manage muting in several pages:

  • At the Defects/Vulnerabilities tab of a baseline analysis
  • At the Defects submenu of a Delivery analysis
  • At  the Mute Defects submenu in Defects tab

Let’s go through them.

Muting at Defects/Vulneabilities tab of a baseline analysis

Once you select the last analysis of an application (either in Code Security or in code Analysis), go to Defects or Vulnerabilities tab.

For explanation purposes, in our explanation we will refer to both as “Defects” tab. In case of any difference, we will note it.

We refer to “last” analysis, because you can only mute on the last analysis. The mute pattern applies to the current and further analyses .. (past analyses cannot be changed)

<MD-01>

 

At the different scopes (rule, file, defect, etc), you can open the left menu and you can select the Mute option.

In our example, we will mute the 4 defects of XSS rule on the selected JSP. So, clicking on the jsp will open the following dialog:

 

<MD-02>

 

When you mute something, you are creating a so-called Mute Pattern. Remember that a mute pattern can apply to a unique defect or to a set of defects, that’s the reason of that nomenclature.

Besides descriptive data of the mute pattern (such as the involved rule, file ,etc), you can add the reason (or explanation) that justifies the mute pattern.

You can select between common reasons to mute defects (it’s a false positive, the defects are on generated code and cannot be changed, etc.), but you can also add your own.

 

Just in case you select to mute a rule with defects in more than one file, the dialog will be as in the figure

<MD-04>

 

In this case, you will be able to specify as many file patterns as you want. In this case, the mute pattern will be applied to all the files that match any of the indicated patterns.

Please, remember that a file pattern must be indicated following ANT pattern syntax. For further help on this topic visit XXXXXXXXXXXXXXXX

 

After applied, muted defects will appear shadowed and with an icon.

<MD-05>

 

You will also see a message (in yellow) indicating that there are muted defects but Indicators have not been recalculated yet.

If you need to add mode mute defect patterns ignore that message, otherwise click on Recalculate so the indicators are recalculated taking into account muted defects.

 

Muting at the Mute Defects submenu in Defects tab  

As an alternative to the above page, you can also mute defects opening the Mute Defect submenu in Defects tab.

<MD-06>

 

This page can be used alone or together with the previous page.

<MD-07>

 

In case you have already defined mute patterns, Muted Patterns panel shows all defined so far. You can click on the menu of any one of them to Edit or Delete it.

But, you can also add new muted defects by selecting any set of defects, at any scope, just click on any row to open child nodes.

<MD-08>

 

After done, just click on Mute selected button to add those new ones to your list of Muted Patterns.

As before, message indicating to Recalculate will be shown.

 

Muting at the Defects submenu of a Delivery analysis

If you run delivery analyses on an application, you could also mute defects in the last delivery analysis.  

Once muted, those muted defects will be considered in further delivery and baseline analyses.

 

When you are at Life Cycle module, you can see the list of deliveries as in the image below.

<MD-09>

 

In case you have muted defects, any delivery previously analyzed to the muting will have a warning icon indicating that audit was done before the muting so results may not match shown defects.

 

To mute defects on the delivery, just click on the Status icon of any delivery to open the Audit for it.

Afterwards, you can select Defects submenu and mute defects over the delivery defects list as in a delivery analysis.

<MD-10>

 

You can mute defects then either at the New Defects or the Defects tab.

<MD-11>

 

Here, you mute defects over the defects list as in a delivery analysis.

 

 

  • No labels