# Neton | Tool For Getting Information From Internet Connected Sandboxes

**URL:** <https://onehack.st/t/neton-tool-for-getting-information-from-internet-connected-sandboxes/229417>\
**Category:** Tools & Scripts\
**Tags:** tools, hacking\
**Created:** [December 5, 2022, 8:24pm UTC](https://onehack.st/t/neton-tool-for-getting-information-from-internet-connected-sandboxes/229417 "2022-12-05T20:24:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [December 5, 2022, 8:24pm UTC](https://onehack.st/t/neton-tool-for-getting-information-from-internet-connected-sandboxes/229417/1 "2022-12-05T20:24:38Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/d/a/da33f048167c417d9a6fa3aa6854af2662065206.png)

**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.

## Images

[![](https://github.com/Aetsu/Neton/raw/main/img/2022-10-27-10-38-29.png)](https://github.com/Aetsu/Neton/blob/main/img/2022-10-27-10-38-29.png) [![](https://github.com/Aetsu/Neton/raw/main/img/2022-10-27-10-04-51.png)](https://github.com/Aetsu/Neton/blob/main/img/2022-10-27-10-04-51.png) [![](https://github.com/Aetsu/Neton/raw/main/img/2022-10-27-10-05-10.png)](https://github.com/Aetsu/Neton/blob/main/img/2022-10-27-10-05-10.png) [![](https://github.com/Aetsu/Neton/raw/main/img/2022-11-13-23-17-36.png)](https://github.com/Aetsu/Neton/blob/main/img/2022-11-13-23-17-36.png) [![](https://github.com/Aetsu/Neton/raw/main/img/2022-10-27-10-05-47.png)](https://github.com/Aetsu/Neton/blob/main/img/2022-10-27-10-05-47.png)

## Deployment

### NetonWeb

1. Install (with virtualenv):

```auto
python3 -m venv venv
source venv/bin/activate
pip3 install -r requirements.txt

```

1. Configure the database:

```auto
python3 manage.py migrate
python3 manage.py makemigrations core
python3 manage.py migrate core

```

- Create user:

```auto
python3 manage.py createsuperuser

```

# Launch (test)

```auto
python3 manage.py runserver

```

# Launch (prod)

- Generate the certificates and store them in the _certs folder_:

```auto
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout server.key -out server.crt

```

Launch _gunicorn_:

```auto
./launch_prod.sh

```

# Agent

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. [![](https://github.com/Aetsu/Neton/raw/main/img/2022-10-28-08-16-57.png)](https://github.com/Aetsu/Neton/blob/main/img/2022-10-28-08-16-57.png)

## Sample data

In the **sample data** folder there is a [sqlite database](https://github.com/Aetsu/Neton/blob/main/Sample%20data/db.sqlite3) 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`

## Extra info

- Slides (ES): [https://github.com/Aetsu/Presentaciones/blob/master/Sandbox%20fingerprinting%20-%20Evadiendo%20entornos%20de%20analisis.pdf](https://github.com/Aetsu/Presentaciones/blob/master/Sandbox%20fingerprinting%20-%20Evadiendo%20entornos%20de%20analisis.pdf)
- Video (ES): [https://www.youtube.com/watch?v=AyVgIttiUpQ](https://www.youtube.com/watch?v=AyVgIttiUpQ)
- Video (EN): [https://www.youtube.com/watch?v=KzwEddl80OQ](https://www.youtube.com/watch?v=KzwEddl80OQ)

## Credits

- **SharpEDRChecker** : [https://github.com/PwnDexter/SharpEDRChecker](https://github.com/PwnDexter/SharpEDRChecker)
- **Pafish** : [https://github.com/a0rtega/pafish](https://github.com/a0rtega/pafish)
- **Al-Khaser** : [https://github.com/LordNoteworthy/al-khaser](https://github.com/LordNoteworthy/al-khaser)
- **OffensiveCSharp → HookDetector** : [https://github.com/matterpreter/OffensiveCSharp/tree/master/HookDetector](https://github.com/matterpreter/OffensiveCSharp/tree/master/HookDetector)
- **OffensiveCSharp → DriverQuery** : [https://github.com/matterpreter/OffensiveCSharp/tree/master/DriverQuery](https://github.com/matterpreter/OffensiveCSharp/tree/master/DriverQuery)

## GitHub:

> **[GitHub - Aetsu/Neton: Neton is a tool for getting information from...](https://github.com/Aetsu/Neton)**
>
> Neton is a tool for getting information from Internet connected sandboxes
