Answers for the TryHackMe Threat Hunting With YARA

The TryHackMe Threat Hunting With YARA room is a free room available to all users. It can be accessed at: https://tryhackme.com/r/room/threathuntingwithyara

1.1 What technique does ID T1134 describe?

Answer: Access Token Manipulation

1.2 What does the detection rule M_APT_Dropper_Rootsaw_Obfuscated detect?

Answer: Detects obfuscated ROOTSAW payloads

2.1 Which threat hunting style is proactive and uses indicators of attack and TTPs?

Answer: structured hunting

2.2 In which phase of the threat hunting process, tools like YARA or Volatility are used?

Answer: Investigation

2.3 You have received a threat intelligence report consisting only of Indicators of Compromise. What threat hunting style do you recommend to use?

Answer: unstructured hunting

3. Apart from the rule name, which other section is also required in a YARA rule?

Answer: condition

4.1 What modifier should be used if you want to search for 2-byte encoded characters?

Answer: wide

4.2 What condition should be used if you want to exclude the defined strings from the matching process?

Answer: none of them

5. What option do you need to pass to ensure you scan all directories recursively?

Answer: -r

6. What does DAIR stand for?

Answer: Dynamic Approach to Incident Response

7.1 What is the flag found in exercise 1?

Answer: THM{Threathuntingisawesome}


rule Exercise1 {
    meta:
        Description = "Searches for the string tryhackme"
        Author = Simon Taplin"
       

    strings:
        $1 = /THM\{/

    condition:
       $1
       
 }

7.2 What is the filename found in exercise 2? (Format: filename.extension)

Answer: file10.txt

rule Exercise2 {
    meta:
        Description = "Searches for the string tryhackme"
        Author = Simon Taplin"
       

    strings:
        $1 = "Yet another" wide
	$2 = "Ridiculous acronym" wide

    condition:
       all of them
       
 }

7.3 What is the filename found in exercise 3? (Format: filename.extension)

Answer: file13.txt

 rule Exercise3 {
    meta:
        Description = "Searches for the string tryhackme"
        Author = Simon Taplin"
       

    strings:
        $1 = "THM{This was a really fun exercise}" base64

    condition:
       $1
       
 }

7.4 What was the XOR key used for encryption in exercise 4?

Answer: 0x01

 Question 4
 rule Exercise4 {
    meta:
        Description = "Searches for the string tryhackme"
        Author = Simon Taplin"
       

    strings:
        $1 = "THM{FoundSomethingHidden}" xor

    condition:
       $1
       
 }

use command yara64 -X

7.5 What encrypted string did you find in exercise 4?

Answer: UILzGntoeRnlduihofIheedo|

use command yara64 -s

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.