The OSQuery Room is a subscriber only room from TryHackMe. The room is available at: https://tryhackme.com/r/room/osqueryf8
In this room we learn what OSQuery is and how to use it to create SQL queries to find data in databases.
1.1 How many tables are returned when we query “table process” in the interactive mode of Osquery?
Answer: 3

1.2 Looking at the schema of the processes table, which column displays the process id for the particular process?
Answer: pid

1.3 Examine the .help command, how many output display modes are available for the .mode command?
Answer: 5

2.1 In Osquery version 5.5.1, how many common tables are returned, when we select both Linux and Window Operating system?
Answer: 56

2.2 In Osquery version 5.5.1, how many tables for MAC OS are available?
Answer: 180

2.3 In the Windows Operating system, which table is used to display the installed programs?
Answer: programs

2.4 In Windows Operating system, which column contains the registry value within the registry table?
Answer: data

3.1 Using Osquery, how many programs are installed on this host?
Answer: 19

3.2 Using Osquery, what is the description for the user James?
Answer: Creative Artist

3.3 When we run the following search query, what is the full SID of the user with RID ‘1009’?
Query: select path, key, name from registry where key = ‘HKEY_USERS’;
Answer: S-1-5-21-1966530601-3185510712-10604624-1009

3.4 When we run the following search query, what is the full SID of the user with RID ‘1009’?
Query: select path, key, name from registry where key = ‘HKEY_USERS’;
Answer: C:\Windows\System32\ieframe.dll

3.5 When we run the following search query, what is the full SID of the user with RID ‘1009’?
Query: select path, key, name from registry where key = ‘HKEY_USERS’;
Answer: Wireshark 3.6.8 64-bit

4.1 Which table stores the evidence of process execution in Windows OS?
Answer: userassist
Watch John Hammonds video for this answer
4.2 One of the users seems to have executed a program to remove traces from the disk; what is the name of that program?
Answer: DiskWipe.exe

4.3 Create a search query to identify the VPN installed on this host. What is name of the software?
Answer: ProtonVPN
Use Query: select name,install_location from programs where name like ‘%VPN%’;

4.4 How many services are running on this host?
Answer: 214
Use Query: select count(name) from services;

4.5 A table autoexec contains the list of executables that are automatically executed on the target machine. There seems to be a batch file that runs automatically. What is the name of that batch file (with the extension .bat)?
Answer: batstartup.bat
User query: select name from autoexec where name like ‘%.bat’;

4.6 What is the full path of the batch file found in the above question? (Last in the List)
Answer: C:\Users\James\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\batstartup.bat
Use query: select name,path from autoexec where name like ‘%.bat’;

Hello.
Task 5 – wireshark 4.4.9 x64
Task 6 215
LikeLike