You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A full scan of {{ \$result['asset'] }} returned {{ count(\$result['vulnerabilities']) }} vulnerabilities and {{ count(\$result['ports']) }} open ports.
119
-
The last scan of {{ \$result['asset'] }} completed on {{ \$result['timeline']['sentinel']['end'] }}.
120
-
The next scan of {{ \$result['asset'] }} will be on {{ \$result['timeline']['next_scan'] }}.
A full scan of {{ \$result['asset'] }} returned {{ count(\$result['vulnerabilities']) }} vulnerabilities and {{ count(\$result['ports']) }} open ports.
119
+
The last scan of {{ \$result['asset'] }} completed on {{ \$result['timeline']['sentinel']['end'] }}.
120
+
The next scan of {{ \$result['asset'] }} will be on {{ \$result['timeline']['next_scan'] }}.
Copy file name to clipboardExpand all lines: app/Http/Procedures/EventsProcedure.php
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -174,17 +174,17 @@ public function counts(JsonRpcRequest $request): array
174
174
"if the request is 'Are offensive security tools (e.g., Metasploit, Cobalt Strike, Mimikatz) running?', the input should be {\"min_score\":0,\"rule_name\":\"cywise_offensive_tools_execution\"}",
175
175
],
176
176
ai_result: "
177
-
@php
178
-
\$events = collect(\$result['events'] ?? [])->map(fn(array \$event) => (new \App\Models\YnhOsquery())->forceFill(\$event));
179
-
@endphp
180
-
@if(\$events->isEmpty())
181
-
No security events found.
182
-
@else
183
-
Below is a list of security events sorted from the most recent to the oldest. The severity of each event is indicated by a score between 0 (system events) and 100 (critical IoCs).
\$events = collect(\$result['events'] ?? [])->map(fn(array \$event) => (new \App\Models\YnhOsquery())->forceFill(\$event));
179
+
@endphp
180
+
@if(\$events->isEmpty())
181
+
No security events found.
182
+
@else
183
+
Below is a list of security events sorted from the most recent to the oldest. The severity of each event is indicated by a score between 0 (system events) and 100 (critical IoCs).
Copy file name to clipboardExpand all lines: app/Http/Procedures/FusionLiveProcedure.php
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -23,10 +23,10 @@ class FusionLiveProcedure extends Procedure
23
23
"if the request is 'list FusionLive workspaces', the input should be {}",
24
24
],
25
25
ai_result: "
26
-
J'ai trouvé {{ count(\$result['workspaces']) }} espaces de travail :
27
-
@foreach(\$result['workspaces'] as \$w)
28
-
- L'espace de travail '{{ \$w['name'] }}' a été créé le {{ \$w['creation_date'] }} par {{ \$w['created_by'] }} et a pour identifiant {{ \$w['id'] }}. Il est associé à la société {{ \$w['company'] }} et a pour statut '{{ \$w['status'] }}'.
29
-
@endforeach
26
+
J'ai trouvé {{ count(\$result['workspaces']) }} espaces de travail :
27
+
@foreach(\$result['workspaces'] as \$w)
28
+
- L'espace de travail '{{ \$w['name'] }}' a été créé le {{ \$w['creation_date'] }} par {{ \$w['created_by'] }} et a pour identifiant {{ \$w['id'] }}. Il est associé à la société {{ \$w['company'] }} et a pour statut '{{ \$w['status'] }}'.
@@ -89,26 +89,26 @@ public function workspaces(JsonRpcRequest $request): array
89
89
"if the request is 'list files whose status is 'MAJ - Pour mise à jour' in 1458', the input should be {\"workspace_id\":1458,\"status\":\"MAJ - Pour mise à jour\"}",
90
90
],
91
91
ai_result: "
92
-
I found {{ count(\$result['documents']) }} folders and {{ array_sum(array_column(\$result['documents'], 'count')) }} documents.
Copy file name to clipboardExpand all lines: app/Http/Procedures/ScheduledTasksProcedure.php
+19-19Lines changed: 19 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -24,25 +24,25 @@ class ScheduledTasksProcedure extends Procedure
24
24
"if the request is 'list my scheduled tasks', the input should be {}",
25
25
],
26
26
ai_result: "
27
-
@php
28
-
\$tasks = collect(\$result['tasks'] ?? [])->map(fn(array \$task) => (new \App\Models\ScheduledTask())->forceFill(\$task));
29
-
@endphp
30
-
@if(\$tasks->isEmpty())
31
-
No scheduled tasks found.
32
-
@else
33
-
Below is the list of your scheduled tasks:
34
-
@foreach(\$tasks as \$task)
35
-
@if(empty(\$task->trigger))
36
-
- {{ \$task->id }}. {{ \$task->name }}: {{ \$task->task }} ({{ \$task->readableCron() }}). @if(!empty(\$task->last_email_sent_at))The last notification has been sent at {{ \$task->last_email_sent_at }}.@endif
37
-
@else
38
-
@if(\$task->cron === '* * * * *')
39
-
- {{ \$task->id }}. {{ \$task->name }}: {{ \$task->task }} when {{ \$task->trigger }}. @if(!empty(\$task->last_email_sent_at))The last notification has been sent at {{ \$task->last_email_sent_at }}.@endif
40
-
@else
41
-
- {{ \$task->id }}. {{ \$task->name }}: {{ \$task->task }} when {{ \$task->trigger }} ({{ \$task->readableCron() }}). @if(!empty(\$task->last_email_sent_at))The last notification has been sent at {{ \$task->last_email_sent_at }}.@endif
42
-
@endif
43
-
@endif
44
-
@endforeach
45
-
@endif
27
+
@php
28
+
\$tasks = collect(\$result['tasks'] ?? [])->map(fn(array \$task) => (new \App\Models\ScheduledTask())->forceFill(\$task));
29
+
@endphp
30
+
@if(\$tasks->isEmpty())
31
+
No scheduled tasks found.
32
+
@else
33
+
Below is the list of your scheduled tasks:
34
+
@foreach(\$tasks as \$task)
35
+
@if(empty(\$task->trigger))
36
+
- {{ \$task->id }}. {{ \$task->name }}: {{ \$task->task }} ({{ \$task->readableCron() }}). @if(!empty(\$task->last_email_sent_at))The last notification has been sent at {{ \$task->last_email_sent_at }}.@endif
37
+
@else
38
+
@if(\$task->cron === '* * * * *')
39
+
- {{ \$task->id }}. {{ \$task->name }}: {{ \$task->task }} when {{ \$task->trigger }}. @if(!empty(\$task->last_email_sent_at))The last notification has been sent at {{ \$task->last_email_sent_at }}.@endif
40
+
@else
41
+
- {{ \$task->id }}. {{ \$task->name }}: {{ \$task->task }} when {{ \$task->trigger }} ({{ \$task->readableCron() }}). @if(!empty(\$task->last_email_sent_at))The last notification has been sent at {{ \$task->last_email_sent_at }}.@endif
Copy file name to clipboardExpand all lines: app/Http/Procedures/VulnerabilitiesProcedure.php
+29-29Lines changed: 29 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -55,35 +55,35 @@ public function counts(JsonRpcRequest $request): array
55
55
"if the request is 'quelles sont les vulnérabilités de criticité moyenne du serveur 192.168.1.1 ?', the input should be '{\"asset\":\"192.168.1.1\",\"level\":\"medium\"}'",
56
56
],
57
57
ai_result: "
58
-
@foreach(\$result as \$key => \$value)
59
-
@if(!empty(\$value))
60
-
@php
61
-
\$alerts = collect(\$value ?? [])->map(fn(array \$event) => (new \App\Models\Alert())->forceFill(\$event));
62
-
@endphp
63
-
# Vulnerabilities of {{ \$key }} severity
64
-
@foreach(\$alerts as \$alert)
65
-
@php
66
-
if (empty(\$alert->cve_id)) {
67
-
\$cve = '';
68
-
} else {
69
-
\$cve = '**Note.** Cette vulnérabilité a pour identifiant [' . \$alert->cve_id . '](https://nvd.nist.gov/vuln/detail/' . \$alert->cve_id . ').';
**Actif concerné.** L'actif concerné est {{ \$alert->asset()?->asset }} pointant vers le serveur {{ \$alert->port?->ip }}. Le port {{ \$alert->port?->port }} de ce serveur est ouvert et expose un service {{ \$alert->port?->service }} ({{ \$alert->port?->product }}).
77
-
78
-
**Description détaillée.** {{ \$vulnerability }}
79
-
80
-
**Remédiation.** {{ \$remediation }}
81
-
82
-
{{ \$cve }}
83
-
84
-
@endforeach
85
-
@endif
86
-
@endforeach
58
+
@foreach(\$result as \$key => \$value)
59
+
@if(!empty(\$value))
60
+
@php
61
+
\$alerts = collect(\$value ?? [])->map(fn(array \$event) => (new \App\Models\Alert())->forceFill(\$event));
62
+
@endphp
63
+
# Vulnerabilities of {{ \$key }} severity
64
+
@foreach(\$alerts as \$alert)
65
+
@php
66
+
if (empty(\$alert->cve_id)) {
67
+
\$cve = '';
68
+
} else {
69
+
\$cve = '**Note.** Cette vulnérabilité a pour identifiant [' . \$alert->cve_id . '](https://nvd.nist.gov/vuln/detail/' . \$alert->cve_id . ').';
**Actif concerné.** L'actif concerné est {{ \$alert->asset()?->asset }} pointant vers le serveur {{ \$alert->port?->ip }}. Le port {{ \$alert->port?->port }} de ce serveur est ouvert et expose un service {{ \$alert->port?->service }} ({{ \$alert->port?->product }}).
0 commit comments