Last active
December 26, 2016 08:59
-
-
Save DinisCruz/6220159 to your computer and use it in GitHub Desktop.
Sample example of CustomDescriptionRule to be used on Fortify SCA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<RulePack xmlns="xmlns://www.fortifysoftware.com/schema/rules"> | |
<RulePackID>950F4B5A-85D0-4954-97D5-35C3F0285057</RulePackID> | |
<SKU>SKU-C:\Users\dinis\AppData\Local\Fortify\CRE-3.90\rules\custom-rule</SKU> | |
<Name>SimpleVersion-CustomDescriptionRule</Name> | |
<Version>1.0</Version> | |
<Description> | |
Description of RulePack | |
</Description> | |
<Rules version = "3.16"> | |
<RuleDefinitions> | |
<CustomDescriptionRule formatVersion="3.15"> | |
<RuleID>D40B319C-F9D6-424F-9D62-BB1FA3B3C645</RuleID> | |
<RuleMatch> | |
<Category> | |
<Value>SQL Injection</Value> | |
</Category> | |
</RuleMatch> | |
<Description formatVersion="3.2"> | |
<Abstract>This is an Abstract</Abstract> | |
<Explanation>This is an Explanation</Explanation> | |
<Recommendations>The Recommendations go here</Recommendations> | |
<Tips> | |
<Tip>This is a Tip</Tip> | |
<Tip> this is another Tip</Tip> | |
</Tips> | |
<References> | |
<Reference> | |
<Title>title of reference</Title> | |
<Author>Author</Author> | |
<Pages>Pages</Pages> | |
<PublishedDate>2012</PublishedDate> | |
<Publisher>Published</Publisher> | |
<Source>Source</Source> | |
</Reference> | |
</References> | |
</Description> | |
</CustomDescriptionRule> | |
</RuleDefinitions> | |
</Rules> | |
</RulePack> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<RulePack xmlns="xmlns://www.fortifysoftware.com/schema/rules"> | |
<RulePackID>950F4B5A-85D0-4954-97D5-35C3F0285057</RulePackID> | |
<SKU>SKU-C:\Users\dinis\AppData\Local\Fortify\CRE-3.90\rules\custom-rule</SKU> | |
<Name>VersionWithSomeHtmlContent</Name> | |
<Version>1.0</Version> | |
<Description> | |
Description of RulePack | |
</Description> | |
<Rules version = "3.16"> | |
<RuleDefinitions> | |
<CustomDescriptionRule formatVersion="3.15"> | |
<RuleID>D40B319C-F9D6-424F-9D62-BB1FA3B3C645</RuleID> | |
<RuleMatch> | |
<Category> | |
<Value>SQL Injection</Value> | |
</Category> | |
</RuleMatch> | |
<RuleMatch> | |
<Category> | |
<Value>Access Control</Value> | |
</Category> | |
<Subcategory> | |
<Value>Database</Value> | |
</Subcategory> | |
</RuleMatch> | |
<Description formatVersion="3.2"> | |
<ContentType value="HTML"></ContentType> <!-- not having any effect --> | |
<Abstract>This is an Abstract | |
<a href="http://www.google.com">link to Google</a> | |
<h1> H1 header </h1> | |
<h2> no H2 header </h2> | |
<h3> no H4 header </h3> | |
<p>a paragraph | |
<ul> | |
<li>bullets</li> | |
<li>don't need UL tag</li> | |
</h3> | |
</p> | |
<li>they can be created using </li> | |
<li>LI tags</li> | |
Code samples can be created like this | |
<pre> | |
... | |
//code sample | |
public void CanGoHere() | |
{ | |
var aVariable = "abc"; | |
} | |
... | |
</pre> | |
</Abstract> | |
<Explanation>This is an Explanation | |
2nd line of Explanation | |
<a href="http://www.google.com">link</a> | |
<h1> header</h1> text | |
</Explanation> | |
<Recommendations>The Recommendations go here | |
2nd line of Recommendations | |
<a href="http://www.google.com">link</a> | |
<h1>header</h1> text | |
</Recommendations> | |
<Tips> | |
<Tip>This is a TIP</Tip> | |
<Tip> this is another Tip</Tip> | |
<Tip><a href="http://www.google.com">link</a> <h1> header </h1> text</Tip> | |
</Tips> | |
<References> | |
<Reference> | |
<Title>title of reference 1 <a href="http://www.google.com">no link</a> <h1> header </h1> text</Title> | |
<Author>Author</Author> | |
<Pages>Pages</Pages> | |
<PublishedDate>2012</PublishedDate> | |
<Publisher>Published</Publisher> | |
<Source>Source</Source> | |
</Reference> | |
</References> | |
</Description> | |
</CustomDescriptionRule> | |
</RuleDefinitions> | |
</Rules> | |
</RulePack> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment