Skip to content
spk-cPublic

About

Cross-platform security reconnaissance for Windows and Kali/Linux, with 12 scanner adapters, optional local AI, and HTML/PDF/JSON/SARIF reports.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

290 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PenX cross-platform security reconnaissance for Windows and Kali Linux

PenX

Cross-platform security reconnaissance · Local AI · Evidence-based reporting

Open-source security assessment CLI for Windows, Kali Linux, Debian and Ubuntu. Combine Nmap, Nuclei, HTTPx, ffuf, Katana and more with optional local AI review.

Latest GitHub release Main branch CI Linux packaging CI MIT license Windows 10 and 11 Kali Linux, Debian, Ubuntu

Download · Quick start · Scanners · Local AI · Reports · Docs

Important

Authorized assessments only. PenX makes real network requests. Scan only systems you own or have explicit permission to test. Scanner evidence, AI recommendations and CVE candidates are not proof of an exploitable vulnerability.

Download

Latest published release: PenX v0.6.0 — ready-to-run builds for Windows and Linux amd64.

Platform Edition Download
Windows 10/11 (x64) Installer (recommended) PenX-Setup-x64.exe
Windows (x64) Portable ZIP PenX-Windows-x64.zip
Kali / Debian / Ubuntu (amd64) Debian package penx_0.6.0_amd64.deb
Linux (x86-64) Portable TAR.GZ PenX-Linux-x86_64.tar.gz

Verify downloads: Windows SHA-256 checksums · Linux SHA-256 checksums · Full release notes.

Note

GitHub's automatically generated Source code (zip/tar.gz) files are not the packaged application. External scanner binaries, Npcap and AI models are not bundled. Prebuilt ARM64 binaries are not available. The Windows installer is not Authenticode-signed and may trigger SmartScreen.

Why PenX?

Capability What it does
12 scanner adapters Coordinate port, service, web, DNS, registration, subdomain and TLS reconnaissance
Windows + Linux Native Windows installer/portable app and Linux amd64 Debian/portable builds
Optional local AI Connect to a compatible OpenAI-style endpoint running your own model
Evidence-based findings Review raw scanner observations, limitations, CVE candidates and human corrections
Scope and consent Passive-only preset, bounded active scans with confirmation, separate opt-in endpoint mapping
Reports and history Saved assessments, comparisons, HTML/PDF reports, JSON and SARIF 2.1.0 exports

PenX is a terminal/CLI application, not a graphical dashboard, exploitation framework or vulnerability guarantee. It is an independent cross-platform adaptation of the MIT-licensed METATRON project.

Quick start

Windows: installer or portable

  1. Download the Windows installer or ZIP above, and verify its SHA-256.
  2. Install PenX, or extract the entire ZIP, keeping PenX.exe and the _internal directory together.
  3. Start PenX and follow the optional scanner setup. Some dependencies require internet, winget, or UAC approval (for example Npcap).
  4. Optionally connect a local AI endpoint; no model is included.
  5. Choose [1] New Scan, supply a target you are authorized to assess, then choose tools and review evidence.

Useful Windows commands (from the extracted PenX folder):

.\PenX.exe --version
.\PenX.exe --setup-status  # Local status; does not scan
.\PenX.exe --check         # Diagnostics
.\PenX.exe --llm-setup     # Optional local AI configuration

Installer data is stored separately under %LOCALAPPDATA%\PenX. Portable installations keep their data next to the extracted application. See the Windows installation and troubleshooting guide.

Kali Linux / Debian / Ubuntu: Debian package

Download penx_0.6.0_amd64.deb and verify its checksum first:

sudo apt install ./penx_0.6.0_amd64.deb
penx --version
penx --setup-status
penx --check
penx --setup             # Create private per-user configuration
penx                     # Open the terminal application

Or extract the portable Linux archive and run ./PenX/PenX. The system package does not install third-party scanners, start a service or download models. Follow LINUX.md for optional scanner installation, supported distros, glibc compatibility, XDG paths and known limitations.

From source (Windows or Linux)

PenX supports Python 3.10–3.13 for source installation (3.13 recommended).

git clone https://github.com/spk-c/PenX.git
cd PenX
# Linux / Kali:
bash ./install-linux.sh
.venv/bin/penx --version

On Windows instead, run install-windows.bat, followed by start-windows.bat. For scanners on supported apt-based distributions, bash ./install-linux.sh --with-scanners is an explicit opt-in and may request sudo. Never run scanners against unauthorized targets.

Further CLI workflows: guided mode, headless JSON/SARIF, scanner configuration, named project scopes, evidence traceability, and verified backup/restore.

How PenX works

Authorized target
      |
      v
Select scope + scanners  -->  Collect evidence
                                     |
                           Optional local AI / CVE research
                                     |
                                     v
                           Human review and corrections
                                     |
                                     v
                       Saved history / scan comparison
                                     |
                              HTML / PDF / JSON / SARIF

Illustrated PenX workflow

Illustration only; the demo can generate synthetic reports without a live scan.

Supported scanners

12 scanner adapters, plus [e] endpoint mapping as a separate opt-in workflow. Missing tools, permission errors and incomplete results are reported explicitly rather than marked successful.

Key Scanner Purpose
1 Nmap Ports, services and product/CPE evidence
2 WHOIS Registration metadata
3 WhatWeb Web technology fingerprints
4 HTTP headers HTTP and security header inspection
5 DNS DNS record lookups
6 Nikto Web-server assessment checks
7 Nuclei HTTP/TLS template checks with consent
8 ProjectDiscovery HTTPx HTTP probing and technology details
9 ffuf Bounded path discovery
s Subfinder Passive subdomain inventory
c Katana Bounded crawling
d TLS check Certificate and TLS handshake checks
e Endpoint mapping (separate) Same-origin Katana → ffuf workflow

Presets: 0 passive-only, a standard (tools 1–5), n standard + Nikto, x full (12 adapters, active-scan consent). Endpoint mapping is not included in the full preset. Passive providers can still contact external lookup services; "passive" does not mean offline.

Scanning, scope and safety details · Scanner dependency configuration.

Local AI and privacy

PenX connects to an OpenAI-compatible model endpoint you configure, such as Ollama, LM Studio, llama.cpp, NInfer, vLLM, SGLang or another compatible server. Local models are optional and are not included.

  • Local inference is not automatically fully offline. Dependency installation, active scanners, optional WHOIS/RDAP/CVE/web lookups and some provider integrations contact external services.
  • CVE matching is research assistance, not verified exploitation or remediation. Review product/version context and authoritative advisories.
  • Sensitive data stays your responsibility. SQLite/MariaDB history, .env and reports may contain identifiers or secrets. Exports can contain sensitive values even with --redact.
  • Missing scanner evidence must not be replaced by model guesses. Review the original evidence and limitations before acting.

Local AI setup and CVE research · Human review workflow · Offline AI finding fixture benchmark (PX-403).

Reports and exports

After a committed assessment, PenX can produce HTML and PDF reports; saved sessions support JSON and SARIF 2.1.0 exports. Use [2] View History to review findings, regenerate reports and manage saved assessments, or [9] Scan Diff & Trends for comparisons.

From an installed source environment on Linux:

.venv/bin/penx --export-session 32 --format json --redact
.venv/bin/penx --export-session 32 --format sarif --redact

Replace 32 with an actual saved session ID. --redact masks selected fields only; inspect reports before sharing. For synthetic HTML/PDF examples without scanning or AI calls, run python scripts/generate_demo_report.py.

Reports and exports · Sample report demo.

PHP2Shell advisory: non-exploiting checks

PenX can compare already observed PHP version evidence against published upstream PHP security fixes and report a cautious PHP2Shell release-posture assessment. It can also review previously collected local PHP configuration/log evidence. These checks do not execute an exploit, prove RCE, or establish that a vendor-patched or backported installation is vulnerable. Report statuses include POTENTIALLY_VULNERABLE and UNVERIFIED; neither substitutes for authenticated server-side verification.

Detection scope and known limitations · Non-destructive lab guide.

Safety and limitations

Caution

PenX is intended for authorized defensive research only. Automation and AI suggestions are not substitutes for independent verification. Independent field acceptance is NOT SIGNED OFF for all Windows/Npcap hardware, real-world upgrades, external services, distributions and recovery scenarios.

The v0.6.0 release passed Windows and Kali build/packaging tests, including controlled scanner-adapter checks on Kali. These do not establish accuracy or reliability for arbitrary live hosts. See the Kali acceptance record and maintenance status. Scoop and WinGet manifests are drafts, not community registry listings.

Documentation

Guide Covers
Windows Setup, installer, portable data, updates and troubleshooting
Linux / Kali Debian package, portable archive, dependencies and XDG storage
Scanning & reporting Scanner behavior, scope, evidence and reports
Backup & restore Verified backups, restore preview and user-approved restore
Local AI & CVE Model endpoints, candidate advisories and provider limits
Demo Illustrative workflow and safe synthetic sample reports
Development Architecture, tests and CI
Development roadmap 36 prioritized features, architecture targets and acceptance criteria for Codex
Codex execution guide First sprint, small PR workflow and test checklist
Packaging Verified GitHub assets, draft Scoop/WinGet/PyPI workflow
Maintenance Released versions, CI evidence and acceptance limits
Contributing Changes, tests and PR guidelines
Security policy Authorized use and private vulnerability reporting

Contributing and license

Contributions are welcome. Please read CONTRIBUTING.md and run python offline_tests.py. Do not submit customer data, scan records, private keys or model credentials. Report PenX vulnerabilities privately via SECURITY.md.

PenX is licensed under MIT and is an independent cross-platform adaptation of METATRON by Soorya Thejas, not an official upstream release. Third-party scanners have their own licenses.

Find PenX useful? Star the project · Releases · Report an issue

About

Cross-platform security reconnaissance for Windows and Kali/Linux, with 12 scanner adapters, optional local AI, and HTML/PDF/JSON/SARIF reports.

Topics

Resources

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages