SecureVdetector utilizes docker containers to check the legitimacy of files and check its effects on a specific operating system.
It utilizes the docker api along with basic linux packages in order to measure 3 consequences of executing the file:
- Amount of memory and CPU consumption
- File I/O operations (increase in storage)
- Network usage
from secureVdetector import fileTester
# Check results from running a forkbomb on Ubuntu
testFile = fileTester.TestFile('testViruses/forkbomb.sh')
Example output given a forkbomb as input
# Both memory and cpu are consumed to their max potential
Max Memory Usage is 100.0%, Max CPU Usage is 100%
# Increase in FS is due to deb installs
Increase in Size of Filesystem: 3.66 MB
# Forkbomb does not affect network
Max Network Usage is 0 KB