How to test malware interface on KATA Sandbox [KATA/KEDRE]
Second part of this article is also applicable to KSB 2.0, details about it below.
It's rather hard to understand if malware channel works on KATA Sandbox or not. Here's a simple and reliable way of doing it.
Step-by-step guide
-
Create a .bat script with commands that you would normally execute in console to check internet connection - like
ping
ortracert
, - and redirect commands output to file. Here's the example of such script. -
Upload this script to Storage and wait for it to be scanned:
- After the scan completes, download debug info with scan results.
- Unpack scan results using the password 'infected' without quotes.
-
In folder
task0
or foldertask1
, rename the fileinternal_tracing_report
tointernal_tracing_report.zip
and unpack it.
-
Open the file
files.list
with notepad and note the name of file that you used for commands output redirection (results.txt
in our example script)
-
Open the file with notepad to see the command results:
-
Done! You will see the output of
ping/tracert
commands. In our example,ping
command succeeded, buttracert
failed with DNS problems, which means malware channel does not work properly and detection rate will be significantly decreased.
How to test DNS on malware channel
There is also an option to test DNS without running samples in Sandbox. Sandbox server uses core DNS servers in the wild web, not the ones specified in WebUI. DNS servers are accessed by VMs via local unbound
server, which attempts to run DNS queries via internet interface.
Interface namespace may be different, so in order to identify yours execute (after identifying proper dom* name execute command above):
cd /var/run/netns
ll
|
Example:
First, you need to jump to internet interface's namespace:
/opt/kaspersky/sandbox/bin/ns_exec /var/run/netns/dom1 /bin/bash
|
Then, test name resolution via local DNS server:
dig @127 .0. 0.1 google.com
|
Example:
You can also test pings same way:
/opt/kaspersky/sandbox/bin/ns_exec /var/run/netns/dom1 /bin/ping -c 3 8.8 . 8.8
|
exit
command!
0 Comments
Recommended Comments
There are no comments to display.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now