- Create a Python 3.11 virtual environment
- Install required dependencies
- Launch Jupyter Notebook web interface
In this tutorial, you will install the required Python packages and launch a Jupyter Notebook.
For your convenience, this tutorial covers both local and containerized installations using conda.
Clone this repository from GitHub:
git clone https://github.com/secureworks/taegis-threat-hunting-tutorials.gitNavigate into the project directory:
cd taegis-threat-hunting-tutorialsThe recommend installing the dependencies for this tutorial in a container.
Alternative instructions have been provided for local installation using conda.
Requirements:
docker(orpodman) must be installed.podmanusers can replacedockerwithpodmanin the commands below.
Build the container using the Dockerfile:
docker build -t taegis-hunting-tutorials .Once the container has finished building, run the container:
docker run -it --rm -p 8888:8888 taegis-hunting-tutorials start-notebook.shOpen your browser and navigate to http://127.0.0.1:8888.
Requirements:
- Download and install
conda
Create a new conda virtual environment running Python 3.11:
conda create -y -n taegis-hunting-tutorials python=3.11 ipykernelActivate your conda environment:
conda activate taegis-hunting-tutorialsUse pip to install remaining dependencies:
python -m pip install -r requirements.txtUse ipykernel to register the named Jupyter kernel:
python -m ipykernel install --name taegis-hunting-tutorials --userFrom the project directory, launch Jupyter server:
jupyter notebookIf your browser does not automatically open, open your browser and navigate to http://127.0.0.1:8888.
Navigate the directory tree and open the next tutorial notebook.
Congratulations! You are up and running. Please carry on to the next tutorial.