Organizing Findings by Severity
Having created sample results in the previous step, you will now organize these findings into categories based on severity, simulating how Dradis structures data for reporting. In a real Dradis setup, you would categorize issues like vulnerabilities into groups such as critical or medium within a web interface. Here, we will mimic this process by creating subdirectories and files within your /root/project
directory in the Kali Linux container.
Let's create a findings
directory with two subdirectories, critical
and medium
, to represent different severity levels. You will then add specific finding files to each category and track them using Git.
Run the following commands to create the directory structure:
mkdir -p /root/project/findings/critical
mkdir -p /root/project/findings/medium
These commands create the findings
directory with critical
and medium
subdirectories inside it. Now, let's add a sample finding to the critical
category by creating a text file. Run:
nano /root/project/findings/critical/critical_issue.txt
In the nano
editor, type the following content to represent a critical finding:
Critical Finding
Issue: Unencrypted Database Connection
Severity: Critical
Description: Database connection on port 3306 is not encrypted.
Recommendation: Enable TLS for database connections.
Save and exit nano
by pressing Ctrl+O
, then Enter
, and finally Ctrl+X
.
Next, add a sample finding to the medium
category by running:
nano /root/project/findings/medium/medium_issue.txt
In the nano
editor, type the following content:
Medium Finding
Issue: Open HTTP Port
Severity: Medium
Description: HTTP service detected on port 80.
Recommendation: Redirect HTTP to HTTPS.
Save and exit nano
as before. Now, commit these files to your Git repository by running:
cd /root/project
git add findings/
git commit -m "Organize findings into critical and medium categories"
The git add findings/
command stages the new files, and the git commit
command saves the changes with a message.
Expected Output for git commit
(example, actual output may vary):
[master xxxxxx] Organize findings into critical and medium categories
2 files changed, 10 insertions(+)
create mode 100644 findings/critical/critical_issue.txt
create mode 100644 findings/medium/medium_issue.txt
This output confirms that the files representing categorized findings have been committed to your repository. Organizing findings by severity is a key step in preparing structured reports, as it helps prioritize issues for remediation. In the next step, you will simulate exporting these findings as a report, building on the structure you've created.