Installation and configuration of Mulval attack graph tool environment under Kali

tags: information security

Reference page:

Mulval is a commonly used network security analysis tool that uses a vulnerability scanner to scan for network vulnerabilities, and then generates attack graphs for security analysis. The tool has been tested for normal operation under Mac and Linux, and its official website is as follows:

http://people.cs.ksu.edu/~xou/argus/software/mulval/readme.html

Its normal operation depends on mysql, xsb, and graphviz. So install these software first.

1. Install xsb

xsb is used for logical reasoning and deduction. The download URL is as follows:

http://xsb.sourceforge.net/downloads/downloads.html

I downloaded the linux version, namely

XSB.tar.gz

After the download is complete, create a tools folder in the /home directory, unzip the file, and then run the following commands in sequence:

cd /home/tools/XSB/bulid
./configure
./makexsb

After displaying "Now you can run XSB...." successfully compiled, add system environment variables:

export PATH=/home/paris/tools/XSB/bin:$PATH

At this point, the xsb configuration is complete.

2. Install graphviz tool

graphviz is a graphics software for drawing pictures. Used to draw the final attack map. The installation method is as follows:

sudo apt-get install graphviz graphviz-doc

3. Install mariadb (that is, an open source compatible version of mysql)

Since mysql was acquired by Oracle, Kali has gradually reduced its support. So I installed the basically compatible "sister version" of mariadb.

apt-get install mariadb-client
apt-get install mariadb-server

Then the configuration file

 vi /etc/mysql/my.cnf

The main code is as follows:

[client-server]
default-character-set=utf8
port = 3306
socket    = /tmp/mysql.sock
[mysql]
[mysqld]
basedir=/usr/local/mysql/
datadir=/usr/local/mysql/data/mysql
#character-set-server=utf8

The configuration is complete.

4. Install Mulval

The installation instructions are inhttp://people.cs.ksu.edu/~xou/argus/software/mulval/readme.html

After decompressing in the same folder as xsb, run the following commands to set environment variables:

export MULVALROOT=/home/paris/tools/mulval
export PATH=$MULVALROOT/bin:$MULVALROOT/utils:$PATH

5. Test

After the installation is complete, test (preferably in the installation folder):

cd /home/tools/mulval
make

start testing:

cd /home/tools/mulval/utils
chmod u+x graph_gen.sh
cd /home/tools/mulval/testcases/3host
graph_gen.sh input.P -v -p

Finally, if an AttachGraph.eps file is successfully generated, that is, an example attack graph:

Intelligent Recommendation

Simple configuration of subdomain blasting tool Sublist3r under kali/parrot

Project address: https://github.com/aboul3la/Sublist3r Download to local: cd /opt Install the corresponding module Parameter explanation: -d Domain -b Bruteforce -p Designated ports (ports) -v Show de...

arp poisoning attack using kali under ettercap tool to view other people browse image info experiments

Prepare a kali linux open terminal command to open the non-graphical input ettercap ettercap -i eth0 -T -q -M arp:remote /xxx.xxx.xxx.xxx// /// (ip behind their own gateway address can query cmd below...

NoSql graph database under Windows ☞ Neo4j installation + environment variable configuration + service registration + access

1. The JVM virtual machine that depends on Java, therefore, ensure that the JDK is installed in the system 2. Download the compressed version of the Windows community version from the official website...

General tool installation and environment configuration

Various Android development tools download collection:http://www.androiddevtools.cn Android development tool Do not take space or Chinese in the installation path JDK and JRE JDK and JRE are the first...

Kali Learning | Password Attack: 6.3 Ettercap Tool

Kali Learning | Password Attack: 6.3 Ettercap Tool Introduction to Ettercap Ettercap analysis password Introduction to Ettercap Ettercap is a powerful deception tool under Linux, and it is also suitab...

More Recommendation

Kali Learning | Password Attack: 6.1 Hydra Tool

Kali Learning | Password Attack: 6.1 Hydra Tool Hydra introduction Steps Hydra introduction Hydra is a very powerful brute force password cracking tool. This tool supports online password cracking of ...

Radis installation under kali

(1) Open the shell, wget http://download.redis.io/releases/redis-5.0.8.tar.gz Download the installation package, the speed is slow, wait patiently. . . . . . . . . (2) Unzip tar xzf redis-5.0.8.tar.gz...

Installation of Teamviewer under Kali

1. InOfficial website downloadThen, make the corresponding selection according to whether your kali system is 32-bit or 64-bit, as shown below: 2. After downloading, the file is in deb format, we ente...

Study notes_Linux installation, environment configuration, VMware Tool installation and virtual machine cloning under virtual machine

This installation uses VMware, CentOS-6.4 image files In this study, 3 virtual machines need to be installed. In order to facilitate later operations, they are named master, slave01, slave02. All of t...

kali foundation environment configuration

1. Install VMware Tools or 2, the update source (update error may be the source of network problems) leafpad /etc/apt/sources.list 3, Chinese input method 4, a network speed netspeed https://extension...

Copyright  DMCA © 2018-2023 - All Rights Reserved - www.programmersought.com  User Notice

Top