-
Notifications
You must be signed in to change notification settings - Fork 12
/
openvuln.j2
20 lines (13 loc) · 1.12 KB
/
openvuln.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Security posture via Cisco PSIRT OpenVuln API
*Scanned {{ host_list | length }} devices at {{ now().strftime("%Y-%m-%d %H:%M:%S") }}*
**Unreachable:** [{{ groups['all'] | difference(host_list | map(attribute='host') | list) | join(' ') }}]
{% for os_loop in adv_list | map(attribute='os') | list | unique -%}
## {{ os_loop }}
Tags: {% for item in host_list | selectattr('os', 'equalto', os_loop) | map(attribute='tag') | list | unique %}`{{ item | default ('') }}` {% endfor %}
{{ host_list | selectattr('os', 'equalto', os_loop) | map(attribute='host') | list | length }} device(s) affected, visit openvuln.cvs for details.
| Advisory-ID | Impact | CVSS | CVE | Fixed with | Known advisory / countermeasure |
| ----------- | ------ | ---- | --- | ---------- | ------------------------------- |
{% for adv_loop in adv_list | selectattr('os', 'equalto', os_loop) | sort(attribute='cvss', reverse = True) %}
| [{{ adv_loop.id }}]({{ adv_loop.url }})| {{ adv_loop.sir }} | {{ adv_loop.cvss }} | {{ adv_loop.cve | join(' ') }} | {{ adv_loop.fixed | join('') }} | {{ known_vuln[adv_loop.id] | default('') }} |
{% endfor%}
{% endfor%}