├── Linux └── osquery.conf ├── wp.png ├── OIP.bmp ├── osquery.png ├── windows ├── Driver Profiling ├── Miscellaneous ├── Memory Analysis ├── Process Interrogation └── Persistence └── README.md /Linux/osquery.conf: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /wp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kirtar22/ThreatHunting_with_Osquery/HEAD/wp.png -------------------------------------------------------------------------------- /OIP.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kirtar22/ThreatHunting_with_Osquery/HEAD/OIP.bmp -------------------------------------------------------------------------------- /osquery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Kirtar22/ThreatHunting_with_Osquery/HEAD/osquery.png -------------------------------------------------------------------------------- /windows/Driver Profiling: -------------------------------------------------------------------------------- 1 | // Driver Profiling 2 | 3 | // Group By and Order By device_name 4 | 5 | select device_name,count(device_name) from drivers group by device_name order by count(device_name) DESC; 6 | 7 | // Group by and Order by description 8 | 9 | select description,count(description) from drivers group by description order by count(description) DESC; 10 | 11 | // Drivers without device_name 12 | 13 | select device_id,device_name from drivers where device_name=''; 14 | 15 | // Drivers without manufacturer name with sign status 16 | 17 | select device_id,device_name from drivers where manufacturer=''; 18 | select device_id,device_name,signed from drivers where manufacturer=''; 19 | 20 | // Unsigned drivers && Unsigned drivers with time and other details 21 | 22 | select device_id,device_name,signed from drivers where signed!=1 ; 23 | select d.device_id,d.device_name,d.manufacturer,d.service,d.image, DATETIME(d.date,'unixepoch') as time from drivers d, time where d.signed!=1; 24 | 25 | // Drivers with no service associated with sign status 26 | 27 | select device_id,manufacturar, signed from drivers where service=''; 28 | 29 | // Drivers Group by service and count by service 30 | 31 | select service,device_name,count(service),signed from drivers where service!='' group by service order by count(service) desc; 32 | 33 | -------------------------------------------------------------------------------- /windows/Miscellaneous: -------------------------------------------------------------------------------- 1 | // Miscellaneous 2 | 3 | // Files with mtime