ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 353 - CAS-004 discussion

Report
Export

A systems administrator was given the following IOC to detect the presence of a malicious piece of software communicating with its command-and-control server:

post /malicious. php

User-Agent: Malicious Tool V 1.0

Host: www.rcalicious.com

The IOC documentation suggests the URL is the only part that could change. Which of the following regular expressions would allow the systems administrator to determine if any of the company hosts

are compromised, while reducing false positives?

A.
User-Agent: Malicious Tool. *
Answers
A.
User-Agent: Malicious Tool. *
B.
www\. malicious\. com\/malicious. php
Answers
B.
www\. malicious\. com\/malicious. php
C.
POST /malicious\. php
Answers
C.
POST /malicious\. php
D.
Hose: [a-2] *\.malicious\.com
Answers
D.
Hose: [a-2] *\.malicious\.com
E.
malicious. *
Answers
E.
malicious. *
Suggested answer: D

Explanation:

A regular expression (regex) is a sequence of characters that defines a search pattern for matching text. A regex can be used to detect the presence of a malicious piece of software communicating

with its command-and-control server by matching the indicators of compromise (IOC) in the network traffic.

In this case, the systems administrator should use the regex Host: [a-z]*.malicious.com to determine if any of the company hosts are compromised, while reducing false positives, because this regex

would:

Match the Host header in the HTTP request, which specifies the domain name of the command-andcontrol server.

Allow any subdomain under the malicious.com domain, by using the character class [a-z]*, which matches zero or more lowercase letters.

Escape the dot character in the domain name, by using the backslash , which prevents it from being interpreted as a wildcard that matches any character.

Not match any other parts of the IOC that could change, such as the URL path, the User-Agent header, or the HTTP method.

asked 02/10/2024
Kaniamuthan K
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first