LEGION 0.8.1

* Portability fixes adopted from Denys Kolomiiets' macOS port (pull request #53): tool processes never inherit Legion's stdin (katana and httpx blocked forever on a piped stdin), nmap plans leave out OS detection when raw sockets are unavailable instead of failing (root, Windows nmap.exe under WSL and `NMAP_PRIVILEGED=1` count as privileged, `NMAP_UNPRIVILEGED=1` denies it, and the dropped detection is logged), the nmap HTML stylesheet is found under Homebrew as well as /usr/share, katana uses the repeated `-kf` form modern releases require and a 5-minute crawl cap (`-ct 300`, seconds, so older katana builds accept it too), importing the loggers no longer creates a cache directory (so a read-only home does not stop Legion from starting), tool paths default to bare names resolved from PATH (ntlmrelayx defaults to the `impacket-ntlmrelayx` package name and the relay tools fall back to whichever variant is installed), `exec-in-shell` works without getent, and `.dockerignore` keeps projects and secrets out of images.
* Five database modules (three entities and two repositories) still imported `six`, which 0.8.0 dropped from the requirements, so a clean install only started because pandas happened to pull it in; they use `str` now and the Debian package no longer depends on python3-six. The requirements accept SQLAlchemy 1.4 through 2.1 and the suite passes on both: the SQLite engine now pins its connection pool (QueuePool), without which Save As on 1.4 left the source project's repositories pointing at an empty database. The urllib3 1.x and selenium 4.9.1 pins are lifted. flake8 and pip-audit moved to `requirements-dev.txt`.
* Removed the embedded Shodan API key from `scripts/python/pyShodan.py`; the script takes `SHODAN_API_KEY` from the environment. Anyone who used that key should consider it exposed and rotate it. The `pyshodan-api-key` entry in legion.conf was never read by anything (the Shodan integration key lives in the scheduler settings, keyring or `SHODAN_API_KEY`), so it is removed from shipped and upgraded configs; a real value found there is reported in the log so it can be moved to the scheduler integration settings. The script imports only the `pyShodan` module the PyPI package ships; the lowercase fallback import adopted from the port had no legitimate target.

LEGION 0.8.0

* Removed the legacy Qt desktop UI. `python legion.py` now starts the web interface; the headless CLI and MCP server are unchanged. PyQt6, qasync and the X11/xvfb packages are no longer dependencies, and the Nmap importer no longer needs Qt.
* Dropped the unused `asyncio` backport and `six` from the requirements.
* Fixed `legion.py --mcp-server`, which started the MCP server with its stdin and stdout discarded (so it could never answer) and then fell through to the UI; it now serves JSON-RPC on the invoking process's stdio. The first-run copy of `legion.conf` no longer depends on the current directory.
* Web security: state-changing requests from other origins (cross-site form posts, pages on other local ports, rebound DNS names) are rejected, uploads are capped, and API errors are always JSON.
* Scheduler: nmap `*-brute` scripts and `unsafe=1` script arguments are classified as risky (they ran without approval under every preset), an AI plan whose candidates are all filtered out falls back to deterministic planning instead of re-admitting blocked actions, approved actions re-check the current policy before running, rejecting an executed approval no longer rewrites the decision log, tool JSON with non-numeric counters no longer aborts a run, and non-object provider responses are reported as provider errors.
* Scheduler performance: the evidence-graph sync is skipped when a host's target state has not changed, execution records share artifact nodes with the state sync instead of duplicating them, and the approval, decision-log and execution tables are indexed by host (indexes are added after the column migrations, so projects from older releases open cleanly).
* Web runtime: credential-capture listeners (Responder, ntlmrelayx) are no longer killed after 300 s of silence, hiding a running process stops it, switching projects waits for every running job, project bundles archive a consistent database snapshot, a cancelled scan is recorded as cancelled, scan history no longer shows finished imports as queued, deleting a host removes its evidence-graph nodes, restored bundles live in Legion's temp folder, and an invalid legion.conf is rejected instead of written.
* Web UI: cancelled jobs end their wait immediately, the hosts/services tables are no longer overwritten by the capped snapshot, credential captures refresh live, project switches clear every filter, the live socket reconnects with backoff and detects a silent connection, double clicks no longer queue duplicate jobs, and modals manage keyboard focus.
* Importer and parsers: a `<host>` without an address is skipped instead of aborting the import, vulners results for products without a CPE are imported, host scripts are no longer hidden by same-named port scripts, and a hand-edited or non-UTF-8 `legion.conf` (duplicate sections, malformed rows) falls back to defaults instead of crashing every entry point.
* Headless CLI scans the same normalised targets it imports (URLs become hostnames) and uses the configured nmap path; tool install plans never block on a sudo password and no longer rely on a login shell that resets PATH.
* Database: deleting a host removes its ports, services, scripts, CVEs, notes and OS rows; keyword filters treat `%` and `_` literally; process-repository queries always release their session and use standard SQL quoting.
* Web UI workflow: every data table sorts by clicking a header and filters by typing, pending approvals have Approve All and Reject All, confirmation dialogs replace browser prompts, status messages are toasts, the Services panel and graph are visible by default, Font Awesome is bundled for offline labs, and the Running/Finished process table shows start time and elapsed time.
* Host Detail: CVSS scores map to severity bands, CVE rows show the Exploit-DB reference and a clickable source, database ids are hidden, IPs, CVE ids and manual-test commands have copy buttons, the operator note is edited in place, and every port has a Run Tool button that pre-fills the manual tool picker.
* Bulk and batch operations: host rows have checkboxes with Rescan, Dig Deeper, Screenshots, Run Tool and Remove for the selection (`POST /api/workspace/hosts/bulk-action`), the manual tool picker can run one tool against every listed target (`targets[]` on `/api/workspace/tools/run`), and Submitted Scans rows can be re-run with their recorded settings (`POST /api/scans/history/<id>/rerun`).
* Import and projects: nmap XML and target lists can be uploaded from the browser (`/api/nmap/import-xml-upload`, `/api/targets/import-upload`), nmap `.gnmap` and masscan XML, JSON and list reports are converted and imported through the same path (web, headless and MCP), the Open Workspace picker lists, renames and deletes saved projects (`/api/project/rename`, `/api/project/delete`), and Save As suggests known project paths.
* Exports: Export JSON/CSV export the whole project (down hosts, every service, process and decision) instead of the capped UI snapshot, and every table has its own CSV/JSON download (`/api/export/table/<name>.<csv|json>`).
* Scheduler UI: execution traces (Logging > Executions), findings (Misc > Findings), a plan preview in the manual tool picker, and the pre-approved and blocked command families with per-family clear/block controls (`POST /api/scheduler/family-policy`) are reachable from the ribbon.
* Tools: the Tools panel lists every configured port action (not a fixed whitelist) and marks which executables are installed; vulners CVSS scores are stored as severities.
* Security: `--web-token` / `LEGION_WEB_TOKEN` protect the UI and API (login page, cookie, `Authorization: Bearer`); a token is generated and printed automatically when `--web-bind-all` is used without one. Saving legion.conf reports whether the running instance reloaded it.
* Headless CLI: `--discovery` and `--staged-scan` work again and run the `[StagedNmapSettings]` stages, `--nmap-args` is appended to every stage, `--nmap-xml` imports reports without scanning, and `--project` works inside an existing or new `.legion` file.
* MCP server: speaks the MCP protocol over stdio (`initialize`, `tools/list`, `tools/call`) and exposes host and service inventory, scans, imports, tool runs, scheduler runs, jobs, processes and scan history alongside the existing graph, findings and report tools.
* Interface: optional light theme (Interface Settings, stored per browser), host and service filters are remembered per project across reloads, and the import, open and save dialogs remember the last paths used.
* Documentation: the REST API is documented in docs/api.md; the README lists `LEGION_TMPDIR`, `LEGION_PIPETTES_PATH`, `LEGION_WEB_TOKEN` and `/health`; dead legion.conf sections (`BruteSettings`, `GUISettings`, `PortTerminalActions`) are gone.

LEGION 0.7.1

* Fixed the desktop UI failing to start (missing imports after the module split) and segfaulting on exit; Qt objects are now torn down in order on every exit path.
* Fixed nmap import crashes: an import error or a bad XML no longer aborts the application, overlapping imports are queued instead of silently dropped, cancel state is per import, and a malformed or missing XML fails the import instead of reporting success.
* Fixed data-loss paths around Save As: the replace prompt appears again, a refused or cancelled save no longer discards the project, saving a temporary project onto its own path keeps it, importers follow the reopened project, and scans still running across a Save As are imported.
* Fixed CVE handling: a partial vulners re-scan no longer wipes CVEs for other ports or manually added entries, old-version CVEs are dropped after an upgrade, OS accuracy is stored and compared numerically, and MAC/vendor/uptime are filled on re-import.
* Fixed per-host reports including other hosts' findings and credentials, the detection-risk policy setting having no effect, and approval lookups matching the wrong approval number.
* Hardened process handling: a killed tool is reported as killed whatever its exit code, stale PIDs from a crashed session are never signalled, interrupted rows are reset when a project opens, user kills no longer show a crash dialog, and the process queue no longer leaks slots or timers.
* Web runtime: tool output survives non-UTF-8 bytes, output polling and previews return only the requested slice, the host view reads each process output once, N+1 queries in the workspace views are batched, duplicate jobs are prevented, failed restores clean up, and RFC1918 sweeps survive a bad chunk.
* Scheduler: Claude truncation retry and non-JSON handling, LM Studio reasoning output and model-cache invalidation, race-safe graph upserts with unique keys on legacy tables, stale screenshot/artifact nodes pruned, per-host locking for state updates, a per-engine schema cache, and indexed evidence lookups.
* Importer and CLI: Exploit-DB lookups are offline (no git pull during imports) and work with both pyexploitdb and pyExploitDb package names; hostname targets are updated in place when resolved; headless mode handles nmap failures, leaves no temp folders and exports every CVE column; commits are batched and hot columns are indexed.
* MCP server survives malformed or oversized requests and starts with a temporary project; governed discovery adds to the open project instead of replacing it.
* Test suite grows from 723 to 937 tests, exits cleanly, and the fixtures that were never committed (ignored by `*.xml`) are restored.
* README rewritten and shortened; pipette documentation moved to docs/pipettes.md.

LEGION 0.7.0

* Continued the web-first replatform by splitting the Flask surface into domain route modules, adding service/schema boundaries, and shrinking `WebRuntime` into focused project, scan, scheduler, graph, workspace, process, report, artifact, and settings modules.
* Hardened high-risk control paths: bind-all now has safer handling, public tool execution no longer accepts arbitrary shell overrides, approval execution is idempotent, and MCP state/approval paths stay aligned with the governed runtime contracts.
* Added local secret-store support for provider and integration credentials, keeping AI/provider keys out of the plaintext scheduler preference file when an OS-backed or encrypted local store is available.
* Improved project bundle fidelity with stricter artifact export/restore handling, safer restore staging before swapping the active project, path rebasing for restored workspaces, and clearer restore failure behavior for legacy or damaged `.legion` projects.
* Expanded workspace analysis with service/open-port filtering, service port visibility, graph filtering tied to host filters, improved host/service selection sync, stronger OS enrichment from service evidence, and phone/OOB/device category classification improvements.
* Added bundled pipettes: Cisco Smart Install exposure checks, internal SMTP discovery and optional SPF review, Windows SMB/RDP discovery, and IPMI/iDRAC/iLO out-of-band management discovery.
* Improved scan/runtime reliability with unique Nmap output prefixes, screenshot target selection fixes, artifact cleanup paths, process/tool execution extraction, and Responder/NTLMRelay workspace handling.
* Expanded route, schema, pipette, bundle, scheduler, MCP, workspace, graph, and tooling tests to lock down cross-surface behavior as the web/runtime split continues.

LEGION 0.6.0

* Introduced the shared orchestrator core across web, headless, MCP/API, and remaining Qt compatibility surfaces so planning, approvals, execution, observation, and reporting use the same governed path.
* Added normalized scheduler models (`ActionSpec`, `PlanStep`, `ExecutionRecord`) and expanded the shared action registry so deterministic and AI modes use the same governed execution language and fallback behavior.
* Added first-class engagement policy presets, richer risk taxonomy, auditable approval decisions, family-level approval controls, and policy-aware plan blocking.
* Added shared target-state persistence, project evidence graph storage, graph export/query APIs, a browser-based graph workspace, and graph-backed reporting.
* Expanded graph workspace capabilities with large-graph handling, floating/docked detail inspection, contextual node actions, layout controls, exports, host/graph selection sync, and better screenshot/artifact preview handling.
* Promoted the web UI to the primary operator workflow with a ribbon-driven dashboard, compact project/process trays, logging modals, host filtering/export, submitted scan history, and a broader set of graph/workspace controls.
* Added strategy packs, optional runner abstraction, expanded MCP/API coverage, report generation from graph and execution ledger, and a regression corpus for rollout hardening.
* Broadened governed action coverage with deeper web follow-up and safer internal enumeration, including `whatweb`, `dirsearch`, `ffuf`, `enum4linux-ng`, `smbmap`, and `rpcclient-enum`.
* Hardened execution details across 0.6.0: Nmap `--stats-every 15s` plus `-vv`, improved Nuclei stats/silent handling, duplicate-action suppression, scheme-aware web targeting, intent-based retry, URL normalization, screenshot TLS bypass behavior, and workspace bundle restore path rebasing.
* Added web launch flags such as `--web-bind-all` and `--web-opaque-ui`, updated side-by-side install guidance, and refreshed the documentation around the web-first 0.6.0 workflow.

LEGION 0.5.2

* Easy mode host discovery now defaults to `-Pn` so hosts that block ping probes are still scanned/imported.
* Easy mode adds explicit `Stealth` and `Include UDP` toggles, with stealth behavior tied to `-sS` and fragmentation (`-f`) only when stealth is enabled.
* Easy mode adds `Broad RFC1918 Discovery (Balanced)` with selectable canary sample sizes (`16`, `32`, `64`, `128`) and automatic RFC1918 target defaults (`10/8`, `172.16/12`, `192.168/16`) when broad mode is selected.
* Broad discovery now runs in controlled canary/full chunks to provide progressive imports and avoid sparse, long-gap updates during very large subnet sweeps.
* Hard mode defaults the Port Scan Options selection to `TCP SYN` (`-sS`).
* Improved process/database hardening to reduce shutdown/load edge-case crashes (including descriptor pressure and transient SQLite operational failures).
* Added a dedicated Responder / Relay tab for launching Responder or NTLMRelay sessions with live output and easy stop/start controls.
* Captured hashes and relayed credentials are now parsed and stored in-project, with a new results table to review activity per host.
* Hardened SQLite operations with integrity checks, consistent backups, and a standalone repair script to recover corrupted project files.
* Expanded smoke-test coverage (scan import, save/load, credential capture) and enabled headless Qt execution for CI environments.

LEGION 0.5.1

* Added an OS tab (with centralized OS classifier) so Hosts and OS views share consistent labels/icons.
* Introduced process status filtering and per-process run time to make busy queues easier to manage.
* Allow manual port addition/removal to work reliably for host entries keyed by hostnames.
* Update bundled `snmpbrute.py` for modern Python, fixing bytes handling and subprocess output.

LEGION 0.5.0

* Harden the Nmap importer to gracefully skip missing hosts and ports instead of aborting staged imports.
* Wrap direct SQL statements with SQLAlchemy `text()` to keep CVE refreshes working across SQLAlchemy releases.
* Expand importer logging and safeguards so long-running scans recover cleanly from unexpected edge cases.

LEGION 0.4.9

* Screenshooter now prefers hostnames (with HTTPS detection fix) and uses IP only as fallback
* Tool tabs offer save/export functionality for text and screenshots
* Process table shows only key columns with improved layout; hostname lookups fixed in tool hosts
* UI fixes for screenshot tab restoration and consistent tab saving

LEGION 0.4.8

* Restore tool tabs safely when loading existing projects and ensure Tools tab entries deduplicate correctly
* Prevent broken screenshot popups by displaying a placeholder image when files are missing
* Add optional IPv6 scanning support with validation, automatic flag filtering, and connectivity fallback
* Streamline process list view by hiding unused columns
* Add a context-menu save option for tool results and screenshots
* Screenshooter now prefers hostnames (with IP fallback) for cleaner captures

LEGION 0.4.7

* Fix Unix/Windows path problem
* Rollback Selenkum to aboid breaking eyewitness

LEGION 0.4.6

* Dockerfiles updated
* Dependancies for Eyewitness (mainly geckodriver and xvfb) will be checked and installed
* Minor fixes related to data structures

LEGION 0.4.5

* Added CLI (headless) mode: Run Legion without a GUI for automation and scripting. Supports input/output files, discovery scans, staged scans, and automated actions.
* Introduced MCP (Model Context Protocol) server: Enables programmatic and AI integration with Legion via JSON-RPC. The MCP server exposes tools such as project listing and automated discovery scans, returning structured results for external consumption. See README for detailed usage and examples.

LEGION 0.4.4

* Major overhaul of screenshotting subsystem: asynchronous operation, EyeWitness integration, deterministic filenames, and UI improvements for screenshot management.
* Enhanced CVE mapping: CVEs now include ExploitDB IDs and direct links, with improved association to services and hosts.
* Numerous quality of life improvements: better context menus, tab management, error handling, configurability, and expanded test coverage.

LEGION 0.4.3

* Revise NMAP import process
* Fix import progress calculations
* Doubleckick to copy hostname (Linux only)
* Script to generate huge bogus NMAP XML imports for testing.

LEGION 0.4.2

* Tweak the screenshooter to use eyewitness as suggested by daniruiz
* Add a Wsl check before running unixPath2Win
* Include Revision by daniruiz to tempPath creation routine
* Revise to monospaced font to improve readability as suggested by daniruiz
* Revise dependancies to resolve missing PhantomJs import
* Set log level to Info
* Eliminate some temporary code, debug lines, and other cleanup
* Revise screenshooter to use schema://ip:port when url is a single node
* Fix typo in startLegion.sh

LEGION 0.4.1

* Add checkXserver.sh to help users troubleshoot connections to X
* Fix a few missing dependencies

LEGION 0.4.0

* Refactored to Python 3.8+
* Refactored to PyQt 6
* Database calls migrated to sessions (dramatically improves performance, reliability and huge memory reductions)
* Refactored Logging
* General cleanup
* Screenshot tool revised to use PhantomJs webdriver (other webdrivers coming soon)
* Simplify startup scripts, dependancy installations scripts, etc
* Eliminate support for distributions other than Kali 2022 and later or Ubuntu 20.04 or later
* Improved WSL support (handling of path conversions for calling the Windows NMAP installation from the program)

LEGION 0.3.9

* Start time message box ensuring run as root
* Start time message box to help users resolve NMAP v7.92 segfaults
* Bug fixes for edge cases
* Screenshot tool revisions
* Default config revisions
* Open maximized
* Don't open with top of window off screen
* Stage module revisions (nothing hard coded anymore, adds option to specify any NSE script for any stage)
* Ensure pyExploiutDb is updated at all times

LEGION 0.3.8

* Bug fixes
* Preparation to move to postgresql backend

LEGION 0.3.7

* Bug fixes for several edge cases
* Screenshot fixes
* Service version data overwrite bug fixed
* Stale service version data bug fixed
* Refactor of docker base image

LEGION 0.3.6

* Significant code refactoring

LEGION 0.3.5

* Bug Fixes
* Copy from tables using double click
* CVE -> ExploitDB redesign using pyExploitDb and bugfixes

LEGION 0.3.4

* Depnendancy polish
* Minor UI and schedule changes

LEGION 0.3.3

* Fix hydra 8.7+ issues
* Fix minor UI update issues

LEGION 0.3.2

* Stage 3 is now vulners scan
* Former stages 3, 4 and 5 are respectively 4, 5 and 6 now
* Config editor dialog

LEGION 0.3.1

* UI polish everywhere (element sizing, scaling, icons, tooltips, etc.)
* Code cleanup
* UI performance improvements
* More port actions

LEGION 0.3.0

* UI polish everywhere (element sizing, scaling, icons, etc.)
* Code cleanup
* Highly configurable host addition dialog
* Stability improvements
* Docker image of preconfigured application published to DockerHub

LEGION 0.2.4

* Open SPRT and Legion files
* Resolve file open/save access issue
* Consolidate lower panel

LEGION 0.2.3

* Bug fixes for edge cases
* Elapsed and estimated remaining time for processes
* Host 1-M CVE UI element added
* Service 1-M CVE UI element added
* CVE object model revised
* Improved UI performance

LEGION 0.2.2

* Bug fixes for edge cases
* In UI Logging panel
* Thread safe logging
* Add AzureCveQuery Plugin
* Setup to use AsyncIO
* Dep installer fixes
* Addition of .justcloned to re-initalize on cloning / pull to update

LEGION 0.2.1

* Fixed DB relationships
* Removed X requirement for screen captures
* Revised HTTP/HTTPS detection
* Fixed Host panel columns
* Fixed process lanuches for discovered services
* Fixed context menus so they show applicable actions for context
* Fixed note unique keys

LEGION 0.2.0

* Port to PyQt6
* Handle process output encoding issues
* Added dependancy installer

LEGION 0.1.1

* Support for WSL (Windows Subsystem for Linux)
* Removed Elixir
* Converted to Python3.5+
* Process handeling ensures dead processes are shown as crashed or finished
