diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js b/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js
index 82ac51735..63ff12444 100644
--- a/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js
+++ b/monkey/monkey_island/cc/ui/src/components/report-components/SecurityReport.js
@@ -46,6 +46,8 @@ class ReportPageComponent extends AuthComponent {
ZEROLOGON_PASSWORD_RESTORE_FAILED: 16
};
+ NotThreats = [this.Issue.ZEROLOGON_PASSWORD_RESTORE_FAILED];
+
Warning =
{
CROSS_SEGMENT: 0,
@@ -253,9 +255,8 @@ class ReportPageComponent extends AuthComponent {
During this simulated attack the Monkey uncovered
- {this.state.report.overview.issues.filter(function (x) {
- return x === true;
- }).length} threats:
+ {this.getThreatCount()}
+ :
{this.state.report.overview.issues[this.Issue.STOLEN_SSH_KEYS] &&
- Stolen SSH keys are used to exploit other machines.
}
@@ -415,6 +416,23 @@ class ReportPageComponent extends AuthComponent {
);
}
+ getThreatCount() {
+ let threatCount = this.state.report.overview.issues.filter(function (x) {
+ return x === true;
+ }).length
+
+ this.NotThreats.forEach(x => {
+ if (this.state.report.overview.issues[x] === true) {
+ threatCount -= 1;
+ }
+ });
+
+ if (threatCount === 1)
+ return "1 threat"
+ else
+ return threatCount + " threats"
+ }
+
generateZerologonOverview() {
let zerologonOverview = [];
if (this.state.report.overview.issues[this.Issue.ZEROLOGON]) {