Neton is a tool for getting information from Internet connected sandboxes. It is composed by an agent and a web interface that displays the collected information.
The Neton agent gets information from the systems on which it runs and exfiltrates it via HTTPS to the web server.
Some of the information it collects:
- Operating system and hardware information
- Find files on mounted drives
- List unsigned microsoft drivers
- Run SharpEDRChecker
- Run Pafish
- Run Al-Khaser
- Detect hooks
- Take screenshots of the desktop
All this information can be used to improve Red Team artifacts or to learn how sandboxes work and improve them.
- Install (with virtualenv):
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt
- Configure the database:
python3 manage.py migrate
python3 manage.py makemigrations core
python3 manage.py migrate core
- Create user:
python3 manage.py createsuperuser
python3 manage.py runserver
- Generate the certificates and store them in the certs folder:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout server.key -out server.crt
Launch gunicorn:
./launch_prod.sh
Build solution with Visual Studio. The agent configuration can be done from the Program.cs class.
- url variable: Url where the information will be exfiltrated (NetonWeb's).
- sandboxId variable: Identifier of the sandbox where the samples are uploaded.
- wave variable: Way of organising the different times the samples are sent. muestras.
In the sample data folder there is a sqlite database with several samples collected from the following services:
- Virustotal
- Tria.ge
- Metadefender
- Hybrid Analysis
- Any.run
- Intezer Analyze
- Pikker
- AlienVault OTX
- Threat.Zone
To access the sample information copy the sqlite file to the NetonWeb folder and run the application.
Credentials:
- User:
raccoon
- Password:
jAmb.Abj3.j11pmMa
- Slides (ES): https://github.com/Aetsu/Presentaciones/blob/master/Sandbox%20fingerprinting%20-%20Evadiendo%20entornos%20de%20analisis.pdf
- Video (ES): https://www.youtube.com/watch?v=AyVgIttiUpQ
- Video (EN): https://www.youtube.com/watch?v=KzwEddl80OQ
- SharpEDRChecker: https://github.com/PwnDexter/SharpEDRChecker
- Pafish: https://github.com/a0rtega/pafish
- Al-Khaser: https://github.com/LordNoteworthy/al-khaser
- OffensiveCSharp -> HookDetector: https://github.com/matterpreter/OffensiveCSharp/tree/master/HookDetector
- OffensiveCSharp -> DriverQuery: https://github.com/matterpreter/OffensiveCSharp/tree/master/DriverQuery