Strix AI Automated Pentesting in Practice: Installation, Configuration, and Vulnerability Discovery
Strix AI Automated Pentesting in Practice: Installation, Configuration, and Vulnerability Discovery
Section titled “Strix AI Automated Pentesting in Practice: Installation, Configuration, and Vulnerability Discovery”What Is Strix?
Section titled “What Is Strix?”Let’s talk security — Xiaozao InfoSec here. Today we’re looking at how the Strix agent performs black-box and white-box vulnerability discovery. Strix is an open-source AI penetration testing tool, available on GitHub at usestrix/strix. It can take a URL and run a black-box scan through its agents, take a source directory or GitHub repository address and run a white-box scan, or combine both — source plus URL — so that issues found in the code can then be validated black-box.
Environment Setup
Section titled “Environment Setup”Strix is best deployed on Linux. My machine runs Windows, so I’ll use the Ubuntu instance in WSL2 that ships with the OS. Strix also needs an isolated sandbox for vulnerability validation, which means Docker — so Docker must be installed on Windows too (installing Docker Desktop is enough).
Because Docker needs a Linux kernel, Docker on Windows relies on a Linux VM. WSL2 is a lightweight Linux VM built into Windows and is more stable and faster than traditional Hyper-V, so we’ll use WSL2 as Docker’s engine.
Open Docker Desktop and check under Settings → General that WSL2 is selected as the runtime engine.

Then go to Settings → Resources → WSL integration. This is the WSL integration panel, and the option to enable integration needs to be checked.
WSL is a virtual machine and Ubuntu runs inside it. Once Docker integration is enabled, Ubuntu can call the host’s Docker directly — no separate Docker installation inside Ubuntu is needed.

Use wsl -l -v to list the distributions on the WSL VM, and -d to specify a distribution name and enter it:

Once inside, Docker commands work. To avoid permission issues later when Strix calls Docker, I added the current user to the docker group:
# Add the current user to the docker groupsudo usermod -aG docker $USER# Refresh the user's group credentials immediatelynewgrp docker# Verify permissions — this lists containers running on the host's Dockerdocker ps
The environment is now ready.
Deploying Strix
Section titled “Deploying Strix”Strix provides a one-line install script. Run the following in Ubuntu:
curl -sSL https://strix.ai/install | bashYou may run into a few issues along the way. Some notes:
Issue 1: Network problems can occur during installation. You can configure HTTP and HTTPS proxies for the terminal. Since I’m inside WSL and the proxy runs on the host, the proxy address must be the WSL gateway IP. Make sure the proxy application on the host allows LAN connections. The configuration commands are:
# Get the gateway IPexport HOST_IP=$(ip route | grep default | awk '{print $3}')# Set the proxiesexport http_proxy="http://${HOST_IP}:7890"export https_proxy="http://${HOST_IP}:7890"# Check whether external networking workscurl -I https://google.comIssue 2: The Docker sandbox image pull may fail during installation. It will output a manual pull command — just run that by hand.

Issue 3: If the proxy doesn’t work after configuration, Windows Firewall may be blocking it. Add an inbound rule to allow the proxy port.
The official docs also provide another installation route via pip, pipx, or uv — pick whichever you prefer:
pip install strix-agentpipx install strix-agentuv tool install strix-agentAfter installation you need to configure the LLM key. Strix supports multiple providers; here we’ll use DeepSeek as an example. Edit ~/.bashrc and add the configuration as environment variables:
export STRIX_LLM="deepseek/deepseek-chat"export LLM_API_KEY="YOUR_API_KEY"You don’t need to supply a model endpoint — Strix matches it internally from the model name. Refresh the environment variables after configuring:
source ~/.bashrcStrix is now deployed. There aren’t many commonly used options; you can review them yourself:
strix -hStrix Black-Box Mode
Section titled “Strix Black-Box Mode”Let’s start with black-box mode. You only need to provide a URL via the target parameter. For convenient testing, I had a model write a simple e-commerce app in Python — you can have GPT or Doubao generate one in chat, zip it up, download and run it, and ask it to deliberately leave a few vulnerabilities in place.
strix --target http://127.0.0.1:5000You can see that it completes the testing task through multiple agents, starting with reconnaissance and invoking the tools it has integrated.

When the task finishes, it prints an overall result summary and creates a strix_runs folder in the directory where the strix command was run, containing the vulnerability reports.

You can also add a prompt with the instruction parameter, which gets passed to the agent. This has many use cases — for example, if the target platform requires login, you can pass the credentials through the prompt like this:
strix --target http://127.0.0.1:5000 --instruction "The platform login account is admin and the password is AdminDemo123!"Strix also provides a web view. The view parameter starts a web service you can open in a browser, showing the agents and vulnerabilities involved:
strix view
Strix White-Box Mode
Section titled “Strix White-Box Mode”Source code scanning also uses the target parameter — point it at a local source directory or a GitHub address, for example:
strix --target /mnt/c/Users/Administrator/Desktop/storeSource scanning worked well. It found every vulnerability deliberately left in the code, plus several additional ones. Of course, these findings come purely from static code analysis — they don’t necessarily reproduce successfully.

Strix writes a separate report for each vulnerability, and the reports are very detailed — covering description, impact, exploitation, PoC, remediation, and more.

Strix Hybrid Mode
Section titled “Strix Hybrid Mode”In white-box mode Strix reported many vulnerabilities, but they don’t all necessarily exist. We can use hybrid mode to have Strix validate the vulnerabilities it found in the source. This uses two -t parameters (still target): one for the source and one for the URL, as shown below:
strix -t /mnt/c/Users/Administrator/Desktop/store -t http://127.0.0.1:5000Summary
Section titled “Summary”Whether black-box, white-box, or hybrid, Strix is driven through the single target parameter. After completing a task, Strix usually asks some follow-up questions — for example, whether you have additional information to provide. If you want it fully automated, add the -n flag — short for non-interactive, meaning it runs without interaction. Note that many login flows involve graphical CAPTCHAs, human-verification challenges, or SMS codes, which require your involvement. Once you’ve logged in, you can pass cookies and other authentication details into the instruction parameter for the agent to use.
From the tests above, having source code available gave the best results, followed by black-box testing with credentials, and finally black-box testing without credentials.
Xiaozao InfoSec: focused on cybersecurity, covering agent security, LLM security, vulnerability discovery, red/blue team operations, application security, AI for cybersecurity, and related areas.