NetBase or Network Baseline is a Powershell script to make a baseline of network connections.
Netbase will create a baseline of the processes establishing a TCP connection with the remote IP address and remote port. The format of the csv file is :
"Remote IP","Remote Port","Path","timestamp"
Run the script with admin privileges.
.\NetBase.ps1 -b
to create a baseline or update the current one.
.\NetBase.ps1 -l C:\path\
to choose the location of the csv files.
.\NetBase.ps1 -t
to add a timestamp to suspect connections.
.\NetBase.ps1
normal mode. It will compare current established connections with the baseline.
You can create a scheduled task to run .\NetBase.ps1
every 5 minutes to update suspect.csv"
You can use this script to find malicious IPs, reverse shells and programs that are not supposed to connect to a certain port.
Add an option to append suspect.csv to baseline.csv. For now you can copy manually.
Add the API of AbuseIPDB and block malicious IPs in the firewall