Skip to content

Commit 48837ae

Browse files
committed
Updating Documentation
1 parent 335220e commit 48837ae

13 files changed

Lines changed: 88 additions & 53 deletions

docs/Custom Security Report Templates.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22
date: 2023-12-17
33
tags: [Reporting, Customize, Variables]
44
---
5-
![](files/Pasted image 20231217155942.png)
5+
![](files/Pasted%20image%2020231217155942.png)
66

77
The Faction Report Designer allows you to create custom security report templates for each assessment type. When building reports you need to use the variables listed below. Entering these into your DOCX reports will auto-replace the assessment and vulnerability text when the report is generated. You can even use the same variables in many of the assessor input fields outside of the report template (like Risk Assessment Summaries) and it will auto-populate the fields when the report is generated.
88

99
You can download the sample templates here:
1010
[Sample Templates](https://github.com/factionsecurity/report_templates)
1111

12+
!! note
13+
You should disable spellcheck in your template document while adding variables. The spellcheck can cause the variables to contain attributes that will make the variable unrecognizable to the Faction document parser.
14+
15+
1216
## GENERAL VARIABLES:
1317

1418
All of these variables can be used anywhere in the DOCX template. Those with a star ⭐️ can be used in the web interface to assist in creating common reusable templates.
@@ -34,12 +38,15 @@ All of these variables can be used anywhere in the DOCX template. Those with a s
3438
- **${asmtAccessKey}** – Guid to access the client retest queue. ⭐️
3539
- **${today}** – Day the report is generated ⭐️
3640
- **${cfXXXXXX}** – Custom Fields are ones you specify in the admin interface. These are all prefixed with “cf” ⭐️
41+
- **${totalOpenVulns}** - Can be used in retest reports to show a count of open vulnerabilities. (Since 1.3)
42+
- **${totalClosedVulns}** - Can be used in retest reports to show the total count of closed vulnerabilities. (Since 1.3)
3743

3844
## VULNERABILITY TABLES VARIABLES:
3945

4046
These are only available inside tables.
4147

4248
- **${vulnTable}** – This defines a table to be a vulnerability listing table.
49+
- **${vulnTable Section_Name}** – This defines a table to be a vulnerability listing table for a section of vulnerabilities. See [Reporting Sections](https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#Reporting-Sections-(Enterprise/Paid-Feature))(Paid Only Feature).
4350
- **${vulnName}** – The Vulnerability name
4451
- **${rec}** – Vulnerability Recommendation
4552
- **${desc}** – Vulnerability Description
@@ -52,12 +59,16 @@ These are only available inside tables.
5259
- **${count}** – Row Count of the vulnerability
5360
- **${tracking}** – Tracking number of the vulnerability
5461
- **${vid}** – Vulnerability internal database id
62+
- **${openedAt}** - The date the vulnerability began tracking (Since 1.3)
63+
- **${closedAt}** - The date the vulnerability was closed (no longer tracked) (Since 1.3)
64+
- **${remediationStatus}** - Displays only "Open" or "Closed" (Since 1.3)
5565
- **${cfXXXXXX}** – Custom Fields are ones you specify in the admin interface. These are all prefixed with “cf”
5666
- **${color  key=value,key=value}** – The color of the text is based on key-value pairs. [See below for how to set up colors.](https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors)
5767
- **${cells key=value,key=value}** – The color of the table cell is based on key-value pairs.  [See below for how to set up colors.](https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors)
5868
- **${loop}** – This variable tells the report generator which row will be repeated.
5969
- **${loop-*}** – This allows multiple rows to be repeated. Example ${loop-1} will repeat the row but the one below it.
6070
- **${details}** – This will insert screenshots and exploit steps for each vulnerability.
71+
- **${noIssuesText}** - This is the default text displayed in the section if no vulnerabilities are reported. (Since 1.3.28)
6172

6273
### Example Table Summary Table
6374

@@ -89,6 +100,7 @@ These are only available inside tables.
89100
**For when you do not want to use tables to display your vulnerability information. You can use the following variables for inserting vulnerability information outside of a table**
90101

91102
- **${fiBegin} / ${fiEnd}** – Block to repeat against all findings.
103+
- **${fiBegin Section_Name} / ${fiEnd Section_Name}** – Block to repeat a section of findings. See [Reporting Sections](https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#Reporting-Sections-(Enterprise/Paid-Feature)) (Paid Only Feature)
92104
- **${vulnName}** – The Vulnerability name
93105
- **${rec}** – Vulnerability Recommendation
94106
- **${desc}** – Vulnerability Description
@@ -101,17 +113,34 @@ These are only available inside tables.
101113
- **${count}** – Row Count of the vulnerability
102114
- **${tracking}** – Tracking number of the vulnerability
103115
- **${vid}** – Vulnerability internal database id
116+
- **${openedAt}** - The date the vulnerability began tracking (Since 1.3)
117+
- **${closedAt}** - The date the vulnerability was closed (no longer tracked) (Since 1.3)
118+
- **${remediationStatus}** - Displays only "Open" or "Closed" (Since 1.3)
104119
- **${cfXXXXXX}** – Custom Fields are ones you specify in the admin interface. These are all prefixed with “cf”
105120
- **${details}** – This will insert screenshots and exploit steps for each vulnerability.
106121
- **${color  key=value,key=value}** – The color of the text is based on key-value pairs. [See below for how to set up colors.](https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors)
107122
- **${fill key=value,key=value}** – The color of the background elements is based on key-value pairs.  [See below for how to set up colors.](https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors)
123+
- **${noIssuesText}** - This is the default text displayed in the section if no vulnerabilities are reported. (Since 1.3.28)
108124

109125
### Example Block Findings
110126

111127
![](files/Pasted%20image%2020240227160631.png)
112128

113129
**Why is the heading yellow?!?! Check [here](/Custom%20Security%20Report%20Templates/#setting-severity-colors)
114130

131+
## Reporting Sections (Enterprise/Paid Feature)
132+
You can put findings into different sections of your report for paid versions and certain sponsored tiers of Faction. You may want to use sections if you are doing different types of pen tests in one report and need to keep these sections separated. For example, you can segregate findings into Application Security and Network Security Sections.
133+
134+
To use sections you need to create the section names in the Faction Report Designer:
135+
![](/files/Pasted%20image%2020241020214807.png)
136+
137+
Once the sections are created in the UI, you can add them to the report in two ways.
138+
1. Vulnerability Block Variables: `${fiBegin Your_Section_Name}`/`${fiEnd Your_Section_Name}
139+
2. Vulnerability Table Variables: `${vulnTable Your_Section_Name}`
140+
141+
Below is an example of how the template variables work:
142+
143+
![](/files/Pasted%20image%2020241020215154.png)
115144

116145
## CSS FORMATTING:
117146

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
tags: [Reporting, Enterprise, Paid Feature, Managed]
3+
date: 2024-10-20
4+
---
5+
6+
Faction's open-source versions will not automatically update the Table of Contents page numbering though the hyperlinks all work as expected. You can do this manually by clicking the table and selecting update numbering you to update it manually once you generate the report.
7+
![](/files/Pasted%20image%2020241020221013.png)
8+
9+
The enterprise versions of Faction will automatically update the numbering for you as well as provide other additional reporting features like different finding sections (i.e. Application Security Pen Test Findings Section and Network Security Findings Section) and DOCX and PDF export options.
10+
![](/files/Pasted%20image%2020241020221526.png)
11+
12+
[Contact us here to learn more.](https://www.factionsecurity.com/enterprise)
13+

docs/Using Markdown in Reports.md

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,26 @@
22
tags: [Markdown, Reporting, Core Features, Burp Suite]
33
date: 2024-03-17
44
---
5-
When exploiting a vulnerability in a penetration test it is important to capture your attack steps quickly and thoroughly so you don't have to spend extra time remembering and re-validating what you did when it's time to report on the finding. Nothing can break your flow more than having to stop what you are doing to format text, fix hyperlinks or build numbered lists of steps. Markdown is one of the quickest ways to type formatted text and capture these details effortlessly.
5+
When exploiting a vulnerability in a penetration test it is important to capture your attack steps quickly and thoroughly so you don't have to spend extra time remembering and re-validating what you did when it's time to report on the finding. Nothing can break your flow more than having to stop what you are doing to format text, fix hyperlinks, or build numbered lists of steps. Markdown is one of the quickest ways to type formatted text and capture these details effortlessly.
66

77
!!! note "Pro Tip!"
88

99
The API fully supports Markdown. This makes it easy to develop automated tools that can add issues or other text to Faction with formatted text via the API.
1010

1111

12-
Here are some examples of how you can use markdown in Faction.
12+
Faction supports markdown by default in all editors. Here are some examples of how you can use markdown:
1313

1414
## Exploit Steps
15-
You can enter Markdown directly into the details editor when adding a new vulnerability. Once you enter the text, highlight just the part you want to convert to markdown and click the Markdown button in the toolbar.
15+
Entering exploit steps is easier with markdown. You can enter the following text and it will automatically show you the formated view on the right.
16+
```
17+
__Steps to Reproduce__:
18+
1. Go to the home page.
19+
2. Click Login.
20+
3. Enter `<script>alert(123);</script>` in the username parameter.
21+
```
1622

17-
![](/files/Pasted%20image%2020240317122727.png)
23+
![](/files/Pasted%20image%2020241020220256.png)
1824

19-
After you select the Markdown button your text will be converted to rich text as shown below:
20-
![](/files/Pasted%20image%2020240317122948.png)
21-
22-
You can also perform this in a code block if you want to write your Markdown in a monospaced font. First, select `Code` as shown below:
23-
![](/files/Pasted%20image%2020240317123222.png)
24-
25-
Then start entering your text in the code block as shown here.
26-
![](/files/Pasted%20image%2020240317123535.png)
27-
28-
Select the text in the code block and click the Markdown button
29-
![](/files/Pasted%20image%2020240317124431.png)
3025

3126
## Faction Burp Suite Extension
3227
If you find a vulnerability while using the Faction Burp extension, you can add the finding and all details directly through the extension. Below is an example of cross-site scripting:
@@ -43,17 +38,6 @@ Now if we navigate back into Faction and view the details we will see the exploi
4338

4439
![](/files/Pasted%20image%2020240317130408.png)
4540

46-
## Executive Summaries and Scoping
47-
You can use Markdown in your Executive Summaries as well to quickly type up your high level assessments of the application and provide guidance on how to prioritize the findings.
48-
![](/files/Pasted%20image%2020240317124018.png)
49-
50-
Select the text and click Markdown to convert!
51-
![](/files/Pasted%20image%2020240317124033.png)
52-
53-
You can also add scoping information in tables without messing with table editors and setting hyperlinks which can be a pain sometimes.
54-
![](/files/Pasted%20image%2020240317124827.png)
55-
56-
![](/files/Pasted%20image%2020240317124858.png)
5741

5842

5943

110 KB
Loading
111 KB
Loading
60.8 KB
Loading
62 KB
Loading
50.8 KB
Loading

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
tags: []
23
date: 2023-12-17
34
---
45
# Welcome to FACTION
@@ -67,7 +68,7 @@ You can find out more information about creating your own custom report template
6768

6869

6970
## Don't want to host it yourself?
70-
We can provide hosting for your instance. All instances are single tenants so you don't have to worry about sharing infrastructure with untrusted parties. Navigate to [https://www.factionsecurity.com to learn more](https://www.factionsecurity.com).
71+
We can provide hosting for your instance. All instances are single tenants so you don't have to worry about sharing infrastructure with untrusted parties. Hosted versions also come with other features like enhanced reporting. Navigate to [https://www.factionsecurity.com to learn more](https://www.factionsecurity.com).
7172

7273
## Screenshots
7374
__Vulnerability Templates__

site/Custom Security Report Templates/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,8 @@ <h2 id="general-variables">GENERAL VARIABLES:</h2>
10741074
<li><strong>${asmtAccessKey}</strong> – Guid to access the client retest queue. ⭐️</li>
10751075
<li><strong>${today}</strong> – Day the report is generated ⭐️</li>
10761076
<li><strong>${cfXXXXXX}</strong> – Custom Fields are ones you specify in the admin interface. These are all prefixed with “cf” ⭐️</li>
1077+
<li><strong>${totalOpenVulns}</strong> - Can be used in retest reports to show a count of open vulnerabilities. (Since 1.3)</li>
1078+
<li><strong>${totalClosedVulns}</strong> - Can be used in retest reports to show the total count of closed vulnerabilities. (Since 1.3)</li>
10771079
</ul>
10781080
<h2 id="vulnerability-tables-variables">VULNERABILITY TABLES VARIABLES:</h2>
10791081
<p>These are only available inside tables.</p>
@@ -1091,6 +1093,9 @@ <h2 id="vulnerability-tables-variables">VULNERABILITY TABLES VARIABLES:</h2>
10911093
<li><strong>${count}</strong> – Row Count of the vulnerability</li>
10921094
<li><strong>${tracking}</strong> – Tracking number of the vulnerability</li>
10931095
<li><strong>${vid}</strong> – Vulnerability internal database id</li>
1096+
<li><strong>${openedAt}</strong> - The date the vulnerability began tracking (Since 1.3)</li>
1097+
<li><strong>${closedAt}</strong> - The date the vulnerability was closed (no longer tracked) (Since 1.3)</li>
1098+
<li><strong>${remediationStatus}</strong> - Displays only "Open" or "Closed" (Since 1.3)</li>
10941099
<li><strong>${cfXXXXXX}</strong> – Custom Fields are ones you specify in the admin interface. These are all prefixed with “cf”</li>
10951100
<li><strong>${color  key=value,key=value}</strong> – The color of the text is based on key-value pairs. <a href="https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors">See below for how to set up colors.</a></li>
10961101
<li><strong>${cells key=value,key=value}</strong> – The color of the table cell is based on key-value pairs.  <a href="https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors">See below for how to set up colors.</a></li>
@@ -1202,6 +1207,9 @@ <h2 id="vulnerability-block-variables">VULNERABILITY BLOCK VARIABLES:</h2>
12021207
<li><strong>${count}</strong> – Row Count of the vulnerability</li>
12031208
<li><strong>${tracking}</strong> – Tracking number of the vulnerability</li>
12041209
<li><strong>${vid}</strong> – Vulnerability internal database id</li>
1210+
<li><strong>${openedAt}</strong> - The date the vulnerability began tracking (Since 1.3)</li>
1211+
<li><strong>${closedAt}</strong> - The date the vulnerability was closed (no longer tracked) (Since 1.3)</li>
1212+
<li><strong>${remediationStatus}</strong> - Displays only "Open" or "Closed" (Since 1.3)</li>
12051213
<li><strong>${cfXXXXXX}</strong> – Custom Fields are ones you specify in the admin interface. These are all prefixed with “cf”</li>
12061214
<li><strong>${details}</strong> – This will insert screenshots and exploit steps for each vulnerability.</li>
12071215
<li><strong>${color  key=value,key=value}</strong> – The color of the text is based on key-value pairs. <a href="https://docs.factionsecurity.com/Custom%20Security%20Report%20Templates/#setting-severity-colors">See below for how to set up colors.</a></li>

0 commit comments

Comments
 (0)