Installation¶
Multiple ways to install BSOT depending on your needs.
pip (Recommended)¶
The easiest way to install BSOT is via pip:
This installs BSOT and all dependencies.
Upgrade¶
Uninstall¶
Standalone Binary¶
Pre-built binaries are available for systems without Python.
macOS¶
# Download
curl -LO https://github.com/yourusername/bsot/releases/latest/download/bsot-macos
# Make executable
chmod +x bsot-macos
# Move to PATH
sudo mv bsot-macos /usr/local/bin/bsot
# Verify
bsot --version
Linux¶
# Download
curl -LO https://github.com/yourusername/bsot/releases/latest/download/bsot-linux
# Make executable
chmod +x bsot-linux
# Move to PATH
sudo mv bsot-linux /usr/local/bin/bsot
# Verify
bsot --version
Windows¶
- Download
bsot.exefrom GitHub Releases - Move to a directory in your PATH
- Open Command Prompt and run
bsot --version
From Source¶
For development or the latest features:
# Clone repository
git clone https://github.com/yourusername/bsot.git
cd bsot
# Create virtual environment (optional but recommended)
python -m venv venv
source venv/bin/activate # Linux/macOS
# or
.\venv\Scripts\activate # Windows
# Install in development mode
pip install -e .
# Verify
bsot --version
Docker¶
Run BSOT in a container:
# Pull image
docker pull yourusername/bsot:latest
# Run
docker run --rm -it yourusername/bsot bsot --help
# With file access
docker run --rm -it -v $(pwd):/data yourusername/bsot bsot file hash /data/sample.exe
Dependencies¶
BSOT requires these Python packages (installed automatically):
click- CLI frameworkrich- Terminal formattinghttpx- HTTP clientpyyaml- YAML parsingpython-magic- File type detectionpefile- PE file analysisyara-python- YARA scanningssdeep- Fuzzy hashing
Optional dependencies:
openai- AI-powered analysisanthropic- Claude AI integration
Troubleshooting¶
"Command not found"¶
Ensure the installation directory is in your PATH:
# Check where pip installs scripts
python -m site --user-base
# Add to PATH (Linux/macOS)
export PATH="$PATH:$(python -m site --user-base)/bin"
# Add to shell config for persistence
echo 'export PATH="$PATH:$(python -m site --user-base)/bin"' >> ~/.bashrc
Permission errors¶
Use a virtual environment or install for your user only:
python-magic issues on macOS¶
Install libmagic:
python-magic issues on Windows¶
Download the DLL from python-magic-bin: