mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
417 lines
12 KiB
Cheetah
417 lines
12 KiB
Cheetah
{{ define "enroll" -}}
|
|
{
|
|
"enroll_secret": "{{ .EnrollSecret }}",
|
|
"host_details": {
|
|
"os_version": {
|
|
"build":"22000",
|
|
"major":"10",
|
|
"minor":"0",
|
|
"name":"Microsoft Windows 11 Enterprise",
|
|
"patch":"",
|
|
"platform":"windows",
|
|
"platform_like":"windows",
|
|
"version":"10.0.22000"
|
|
},
|
|
"osquery_info": {
|
|
"build_distro": "10",
|
|
"build_platform": "windows",
|
|
"config_hash": "09d7386d20179cb1b725ed88f38c98e3b2e72c90",
|
|
"config_valid": "1",
|
|
"extensions": "inactive",
|
|
"instance_id": "caa2dc5b-f33f-4c57-a138-e4b96e8787cc",
|
|
"pid": "9072",
|
|
"platform_mask": "2",
|
|
"start_time": "1660223255",
|
|
"uuid": "{{ .UUID }}",
|
|
"version": "5.4.0",
|
|
"watcher": "-1"
|
|
},
|
|
"platform_info": {
|
|
"address": "",
|
|
"date": "1601-01-01",
|
|
"extra": "",
|
|
"revision": "255.255",
|
|
"size": "",
|
|
"vendor": "Microsoft Corporation",
|
|
"version": "139.3982.768",
|
|
"volume_size": ""
|
|
},
|
|
"system_info": {
|
|
"computer_name": "{{ .CachedString "hostname" }}",
|
|
"cpu_brand": "Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz",
|
|
"cpu_logical_cores": "8",
|
|
"cpu_physical_cores": "4",
|
|
"cpu_subtype": "-1",
|
|
"cpu_type": "x86_64",
|
|
"hardware_model": "Surface Laptop 2",
|
|
"hardware_serial": "{{ .SerialNumber }}",
|
|
"hardware_vendor": "Microsoft Corporation",
|
|
"hardware_version": "-1",
|
|
"hostname": "{{ .CachedString "hostname" }}",
|
|
"local_hostname": "{{ .CachedString "hostname" }}",
|
|
"physical_memory": "17179869184",
|
|
"uuid": "{{ .UUID }}"
|
|
}
|
|
},
|
|
"host_identifier": "{{ .UUID }}",
|
|
"platform_type": "2"
|
|
}
|
|
{{- end }}
|
|
|
|
{{ define "fleet_detail_query_network_interface_windows" -}}
|
|
[
|
|
{
|
|
"address":"fe80::8cb:112d:ff51:1e5d%en0",
|
|
"mac":"f8:2d:88:93:56:5c"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_os_version" -}}
|
|
[
|
|
{
|
|
"name":"Microsoft Windows 11 Enterprise",
|
|
"version":"10.0.22000",
|
|
"major":"10",
|
|
"minor":"0",
|
|
"patch":"",
|
|
"build":"22000",
|
|
"platform":"windows",
|
|
"platform_like":"windows",
|
|
"codename":"Microsoft Windows 11 Enterprise",
|
|
"arch":"x86_64",
|
|
"install_date":"1667847179"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_os_version_windows" -}}
|
|
[
|
|
{
|
|
"name":"Microsoft Windows 11 Enterprise",
|
|
"display_version":"21H2",
|
|
"release_id":"2009"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_os_windows" -}}
|
|
[
|
|
{
|
|
"name":"Microsoft Windows 11 Enterprise",
|
|
"platform":"windows",
|
|
"arch":"x86_64",
|
|
"kernel_version":"10.0.22000.1098",
|
|
"display_version":"21H2",
|
|
"release_id":"2009"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_osquery_flags" -}}
|
|
[
|
|
{
|
|
"name":"config_refresh",
|
|
"value":"{{ printf "%.0f" .ConfigInterval.Seconds }}"
|
|
},
|
|
{
|
|
"name":"distributed_interval",
|
|
"value":"{{ printf "%.0f" .QueryInterval.Seconds }}"
|
|
},
|
|
{
|
|
"name":"logger_tls_period",
|
|
"value":"99999"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_osquery_info" -}}
|
|
[
|
|
{
|
|
"build_distro": "10",
|
|
"build_platform": "windows",
|
|
"config_hash": "09d7386d20179cb1b725ed88f38c98e3b2e72c90",
|
|
"config_valid": "1",
|
|
"extensions": "inactive",
|
|
"instance_id": "caa2dc5b-f33f-4c57-a138-e4b96e8787cc",
|
|
"pid": "9072",
|
|
"platform_mask": "2",
|
|
"start_time": "1660223255",
|
|
"version": "5.5.1",
|
|
"watcher": "-1",
|
|
"uuid":"{{ .UUID }}",
|
|
"instance_id":"{{ .UUID }}"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_system_info" -}}
|
|
[
|
|
{
|
|
"hostname":"{{ .CachedString "hostname" }}",
|
|
"computer_name": "{{ .CachedString "hostname" }}",
|
|
"cpu_brand": "Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz",
|
|
"cpu_logical_cores": "8",
|
|
"cpu_physical_cores": "4",
|
|
"cpu_subtype": "-1",
|
|
"cpu_type": "x86_64",
|
|
"hardware_model": "Surface Laptop 2",
|
|
"hardware_serial": "{{ .SerialNumber }}",
|
|
"hardware_vendor": "Microsoft Corporation",
|
|
"hardware_version": "-1",
|
|
"local_hostname": "{{ .CachedString "hostname" }}",
|
|
"physical_memory": "17179869184",
|
|
"uuid":"{{ .UUID }}"
|
|
}
|
|
]
|
|
{{- end }}
|
|
{{ define "fleet_detail_query_uptime" -}}
|
|
[
|
|
{
|
|
"days":"0",
|
|
"hours":"4",
|
|
"minutes":"38",
|
|
"seconds":"11",
|
|
"total_seconds":"16691"
|
|
}
|
|
]
|
|
{{- end }}
|
|
|
|
{{/* all hosts */}}
|
|
{{ define "fleet_label_query_6" -}}
|
|
[
|
|
{
|
|
"1": "1"
|
|
}
|
|
]
|
|
{{- end }}
|
|
|
|
{{/* All macOS hosts */}}
|
|
{{ define "fleet_label_query_7" -}}
|
|
[]
|
|
{{- end }}
|
|
|
|
{{/* All Ubuntu hosts */}}
|
|
{{ define "fleet_label_query_8" -}}
|
|
[]
|
|
{{- end }}
|
|
|
|
{{/* All CentOS hosts */}}
|
|
{{ define "fleet_label_query_9" -}}
|
|
[]
|
|
{{- end }}
|
|
|
|
{{/* All Windows hosts */}}
|
|
{{ define "fleet_label_query_10" -}}
|
|
[
|
|
{
|
|
"1": "1"
|
|
}
|
|
]
|
|
{{- end }}
|
|
|
|
{{/* All Red Hat hosts */}}
|
|
{{ define "fleet_label_query_11" -}}
|
|
[]
|
|
{{- end }}
|
|
|
|
{{/* All Linux distributions */}}
|
|
{{ define "fleet_label_query_12" -}}
|
|
[]
|
|
{{- end }}
|
|
|
|
{{ define "fleet_detail_query_windows_update_history" -}}
|
|
[
|
|
{
|
|
"date": "1660227583",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.373.144.0)"
|
|
},
|
|
{
|
|
"date": "1660227566",
|
|
"title": "Windows Malicious Software Removal Tool x64 - v5.104 (KB890830)"
|
|
},
|
|
{
|
|
"date": "1660173924",
|
|
"title": "2022-08 Cumulative Update for Windows 11 for x64-based Systems (KB5016629)"
|
|
},
|
|
{
|
|
"date": "1660169290",
|
|
"title": "2022-08 Security Update for Windows 11 for x64-based Systems (KB5012170)"
|
|
},
|
|
{
|
|
"date": "1660147454",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.373.94.0)"
|
|
},
|
|
{
|
|
"date": "1660102200",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.373.70.0)"
|
|
},
|
|
{
|
|
"date": "1660016612",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1673.0)"
|
|
},
|
|
{
|
|
"date": "1660016594",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1607.0)"
|
|
},
|
|
{
|
|
"date": "1659811407",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1544.0)"
|
|
},
|
|
{
|
|
"date": "1659713853",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1482.0)"
|
|
},
|
|
{
|
|
"date": "1659672608",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1459.0)"
|
|
},
|
|
{
|
|
"date": "1659643463",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1429.0)"
|
|
},
|
|
{
|
|
"date": "1659545734",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1359.0)"
|
|
},
|
|
{
|
|
"date": "1659498651",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1323.0)"
|
|
},
|
|
{
|
|
"date": "1659409977",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1261.0)"
|
|
},
|
|
{
|
|
"date": "1659409929",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1186.0)"
|
|
},
|
|
{
|
|
"date": "1659330382",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1186.0)"
|
|
},
|
|
{
|
|
"date": "1659330368",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1186.0)"
|
|
},
|
|
{
|
|
"date": "1659329478",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1089.0)"
|
|
},
|
|
{
|
|
"date": "1659207465",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1089.0)"
|
|
},
|
|
{
|
|
"date": "1659207451",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1089.0)"
|
|
},
|
|
{
|
|
"date": "1659121021",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.1046.0)"
|
|
},
|
|
{
|
|
"date": "1659057815",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.986.0)"
|
|
},
|
|
{
|
|
"date": "1658879639",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.884.0)"
|
|
},
|
|
{
|
|
"date": "1658685407",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.745.0)"
|
|
},
|
|
{
|
|
"date": "1658602293",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.677.0)"
|
|
},
|
|
{
|
|
"date": "1658557946",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.656.0)"
|
|
},
|
|
{
|
|
"date": "1658507073",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.607.0)"
|
|
},
|
|
{
|
|
"date": "1658420173",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.550.0)"
|
|
},
|
|
{
|
|
"date": "1658286565",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.455.0)"
|
|
},
|
|
{
|
|
"date": "1658197038",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.400.0)"
|
|
},
|
|
{
|
|
"date": "1658090554",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.323.0)"
|
|
},
|
|
{
|
|
"date": "1658089986",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.312.0)"
|
|
},
|
|
{
|
|
"date": "1658037571",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.279.0)"
|
|
},
|
|
{
|
|
"date": "1658030188",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.279.0)"
|
|
},
|
|
{
|
|
"date": "1658030178",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.279.0)"
|
|
},
|
|
{
|
|
"date": "1657935991",
|
|
"title": "2022-07 Cumulative Update for Windows 11 for x64-based Systems (KB5015814)"
|
|
},
|
|
{
|
|
"date": "1657935299",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.203.0)"
|
|
},
|
|
{
|
|
"date": "1657935289",
|
|
"title": "Windows Malicious Software Removal Tool x64 - v5.103 (KB890830)"
|
|
},
|
|
{
|
|
"date": "1657757470",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.115.0)"
|
|
},
|
|
{
|
|
"date": "1657650109",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.44.0)"
|
|
},
|
|
{
|
|
"date": "1657641156",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.371.16.0)"
|
|
},
|
|
{
|
|
"date": "1657641137",
|
|
"title": "9NCBCSZSJRSB-SpotifyAB.SpotifyMusic"
|
|
},
|
|
{
|
|
"date": "1657557959",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.369.1148.0)"
|
|
},
|
|
{
|
|
"date": "1657500736",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.369.1114.0)"
|
|
},
|
|
{
|
|
"date": "1657393149",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.369.1040.0)"
|
|
},
|
|
{
|
|
"date": "1657249086",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.369.928.0)"
|
|
},
|
|
{
|
|
"date": "1657077995",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.369.852.0)"
|
|
},
|
|
{
|
|
"date": "1656996720",
|
|
"title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.369.788.0)"
|
|
}
|
|
]
|
|
{{- end }}
|