Deployment¶
Usage matrix¶
| Scenario | System and software | Hardware |
|---|---|---|
| Analyze XML with Phronesis | Windows, Linux or macOS x64; Python 3.10 or later (3.11 tested); PyTorch; dependencies from requirements.txt; model weights |
A capable CPU, GPU optional |
| Active scan on Linux | Everything above plus native Nmap | Network access to the authorized target |
| Active scan on Windows | Native Nmap on the PATH, or WSL with Nmap in the distribution | Network access from the host or from WSL |
| Serve the GGUF | llama.cpp with --jinja |
CPU or GPU depending on the llama.cpp build |
Model and disk space¶
- Safetensors: about 988 MB, used by the wrapper.
- GGUF Q8_0: about 506 MB, for llama.cpp.
- NSE library: about 25 MB, in
nse-library/. - Plan for space for the model, the NSE catalog and the scan results.
You don't need a GPU to analyze XML. On CPU, the current version takes a median of 2.5 s per decision with Safetensors and 1.7 s with GGUF. Available memory must cover the model and the context you send.
Installation¶
Install PyTorch separately, then the project dependencies:
The model is provided under ship/hf/, with model/ as a fallback. For another location, use --model-dir. The NSE library is provided in nse-library/; for another library root, use the Phronesis --datadir option.
Library and NMAPDIR¶
The wrapper passes NMAPDIR=nse-library/ to the Nmap process that runs the script. This lets Nmap find the bundled scripts and nselib while keeping its installed data files. Don't pass Nmap's own --datadir option instead: it would also replace Nmap's data files, not just the scripts.
On Windows, Phronesis uses the Nmap on the PATH; if it goes through WSL, the path is converted to /mnt/....
Offline use¶
Once the model is in place, analyzing XML needs no network access. It doesn't launch Nmap and sends nothing to a remote service.
Windows and WSL¶
On Windows, the wrapper uses the Nmap on the PATH and only falls back to WSL. If that happens, install Nmap in the WSL distribution you use and make sure the paths can be converted: the wrapper converts the model and script paths to /mnt/....
Verification¶
or, without installing the command:
This command loads the model, shows a suggestion and runs no script.