[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116259":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":17,"topics":19,"createdAt":9,"pushedAt":27,"updatedAt":28,"readmeContent":29,"aiSummary":30,"trendingCount":12,"starSnapshotCount":12,"syncStatus":31,"lastSyncTime":32,"discoverSource":33},116259,"azure-php-scout","saeid-adz\u002Fazure-php-scout","saeid-adz","Self-hosted Azure PHP and WordPress discovery with version-based advisory triage and offline HTML reports.",null,"Python",6,0,1,3,40,"MIT License",false,"main",[20,21,22,23,24,25,26],"azure","fastapi","php","security","self-hosted","vulnerability-scanner","wordpress","2026-11-19 10:23:28","2026-11-20 01:45:55","# Azure PHP Scout\n\nFind Azure services that may need a PHP or NGINX security update. Azure PHP Scout\ncombines read-only Azure inventory, TCP\u002FHTTP discovery, and source-linked PHP and\nNGINX version assessment in a self-hosted dashboard and CLI.\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fsaeid-adz\u002Fazure-php-scout\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fsaeid-adz\u002Fazure-php-scout\u002Factions\u002Fworkflows\u002Fci.yml)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg)](LICENSE)\n\n![Azure PHP Scout with synthetic findings](docs\u002Fdashboard.png)\n\n## What it does\n\n- Discovers VMs, App Services, deployment slots, and Static Web Apps across the\n  enabled subscriptions visible to Azure CLI, including delegated subscriptions\n  where access is available.\n- Finds open VM ports and checks them for HTTP\u002FHTTPS, including nonstandard ports.\n  Managed applications are checked on their default\u002Fcustom hostnames on 80\u002F443.\n- Identifies PHP\u002FWordPress signatures and keeps runtime evidence separate from\n  Azure configuration settings.\n- Identifies NGINX and whether it negotiates HTTP\u002F2, and checks it against the\n  tracked NGINX HTTP\u002F2 advisories. Choose PHP, NGINX, or both per scan.\n- Prioritizes potentially affected PHP and NGINX versions, upstream end-of-life branches,\n  and services whose runtime version needs verification.\n- Runs scans in a persistent, cancellable queue with live coverage, history,\n  isolated artifacts, and offline HTML\u002FCSV\u002FJSON exports.\n- Optionally inspects PHP inside Windows\u002FLinux VMs across all accessible\n  subscriptions, one selected subscription, or specific VMs, including\n  private VMs, using fixed Azure Run Command scripts.\n\nThe bundled catalog tracks **CVE-2026-109618** and **CVE-2026-109619** (PHP core,\nreviewed 21 October 2026) and **CVE-2026-123633** and **CVE-2026-123007** (NGINX\nHTTP\u002F2, reviewed 19 November 2026). It is deliberately scoped to those advisories;\nit is not a complete vulnerability database. A version match\nis a triage finding. Verify the serving runtime, deployment conditions, package\nbuild, and vendor backports before deciding a service's actual patch status.\n\n## Quick start\n\nRequirements: Python 3.11+; Azure CLI and its Resource Graph extension for live\nAzure inventory. CSV\u002Fmanual scans and the synthetic demo work without Azure CLI.\n\n```sh\ngit clone https:\u002F\u002Fgithub.com\u002Fsaeid-adz\u002Fazure-php-scout.git\ncd azure-php-scout\npython3 -m venv .venv\n. .venv\u002Fbin\u002Factivate\npip install .\nazure-php-scout serve\n```\n\nOn Windows, activate with `.venv\\Scripts\\Activate.ps1`.\n\nOpen **http:\u002F\u002F127.0.0.1:8000**, then obtain the service token in another terminal:\n\n```sh\nazure-php-scout token\n```\n\nPaste it into the sign-in form. The browser keeps it for the lifetime of its tab.\nUse **Explore demo** to see synthetic findings without making network requests,\nor **New scan** to choose Azure, individual targets, or an inventory CSV.\n\nThe service defaults to a local listener and stores its token, SQLite history,\nand run artifacts in `.scout\u002F`. `--data-dir` or `SCOUT_DATA_DIR` changes that folder.\nUse the same directory for `serve` and `token`. Keep it private and backed up.\n\n## Connect Azure\n\nOn the service host:\n\n```sh\naz login\naz extension add --name resource-graph\n```\n\nThe identity needs permission to read the selected resources, typically the\nReader role on the subscriptions being scanned. Resource Graph queries are\nexplicitly scoped, grouped by tenant, and paginated. The UI can list available\nsubscription IDs; leaving that selection empty includes all enabled subscriptions\nvisible to the CLI session.\n\nAzure CLI credentials stay on the operator's host. The application does not ask\nfor Azure passwords in the browser. For a self-hosted worker in Azure with an\nassigned managed identity, authenticate its CLI session with `az login --identity`\nbefore scanning. See [deployment guidance](docs\u002FDEPLOYMENT.md).\n\n## CLI workflows\n\nDiscover Azure resources and scan common web ports:\n\n```sh\nazure-php-scout scan --azure -o results.csv\n```\n\nScan the complete VM TCP range, then fingerprint open services:\n\n```sh\nazure-php-scout scan --azure --vm-ports all -o full-scan.csv\n```\n\nFull range means **1–65535 TCP ports per public VM address** and can take hours.\nThe default common profile contains 127 candidate ports. Both the terminal and\nreport show the selected scope; the common profile never claims full coverage.\nApp Service and Static Web App addresses are not subjected to fleet port sweeps.\n\n```sh\n# Restrict Azure scope; repeat --subscription for more IDs.\nazure-php-scout scan --azure --subscription SUBSCRIPTION-ID --running-only\n\n# A custom VM discovery range.\nazure-php-scout scan --azure --vm-ports 80,443,3000-3010,8000-9000\n\n# Choose the technology to check: php, nginx, or both (default).\nazure-php-scout scan --azure --stack nginx\n\n# A named website pinned to an IP, with explicit port checks.\nazure-php-scout scan --ip 203.0.113.10 --host www.example.com --ports 80,443,8080,8443\n\n# Import inventory; no Azure API access is required.\nazure-php-scout scan -i inventory.csv --vm-ports web\n\n# Validate scope without making endpoint connections.\nazure-php-scout scan --azure --dry-run\n\n# Re-assess existing scanner results offline.\nazure-php-scout assess results.csv -o reviewed.csv\n\n# Convert saved scanner results and adjacent coverage JSON to HTML.\nazure-php-scout scan --report-from results.csv\n```\n\n`--dry-run --azure` still performs read-only Azure inventory, while omitting output\nfiles and endpoint connections. CLI scans save their inventory beside the run's\nworking directory; each service run uses its own directory. No local inventory is\nimplicitly loaded into a new scan.\n\nCSV inventories need `publicIp`, `ip`, or `hostname`. Optional fields such as\n`subscription`, `vm`, `app`, `resourceGroup`, and `resourceType` preserve ownership.\nA row containing both IP and hostname uses that IP with the hostname for HTTP Host\nand TLS SNI. See [examples\u002Finventory.csv](examples\u002Finventory.csv). Explicit targets\nand `-i` inputs can be repeated.\n\nControl work with `--workers`, `--timeout`, `--port-workers`, `--port-rate`, and\n`--port-timeout`. Pending HTTP work and TCP sockets are bounded. Redirects stay on\nthe original connect address; new DNS hostnames change Host\u002FSNI. Redirects to a\ndifferent literal IP or an unselected port are recorded instead of followed.\n\n## Inspect PHP inside Windows and Linux VMs\n\nTo continue after an interrupted scan or expired Azure sign-in, run `az login`\non the service host, select the previous run in the dashboard, and click\n**Retry remaining VMs**. The new run targets only failed, timed-out, cancelled, and\nunsubmitted VMs, without a 50-VM limit. Successful, incomplete-but-inspected, and\nskipped VMs are excluded; the original report stays unchanged. The retry has its\nown report. Review Azure before retrying timeouts because an accepted command\nmay still be running. Expired\u002Finteractive-sign-in errors now stop further guest\nsubmissions and preserve the rest as unsubmitted, ready for another retry.\n\nThe dashboard shows the current VM, inspection phase, and seconds spent in that\nphase. Local Azure CLI timeout\u002Fcancellation cleanup also stops launcher children\nand has bounded waits, so an inherited output pipe cannot freeze the next VM.\nThe Run Command wait and metadata requests have separate time limits; stopping\nthe local CLI does not cancel a script already accepted by Azure.\n\n```sh\naz login\nazure-php-scout guest --retry-from previous-results.csv --dry-run\nazure-php-scout guest --retry-from previous-results.csv -o retried-results.csv\n```\n\nIn **New scan**, select **VM guest inspection (Windows \u002F Linux)**, then **All\naccessible subscriptions (automatic)**. Start the inspection without entering\nsubscription or VM IDs. The service refreshes the host Azure CLI account's\nsubscriptions, discovers VMs across tenants, and runs the fixed inspection scripts.\nWindows and Linux VMs with or without public IPs are included, with no 50-VM limit.\nOne HTML report combines findings and coverage by subscription, including empty,\ndisabled, inaccessible, and partially inspected subscriptions. A failure in one\nsubscription or VM does not stop the rest.\n\nYou can also choose **All VMs in one subscription** and select or paste one\nsubscription ID. Previewing the VM inventory and reviewing both bundled scripts\nis optional; neither step is required to start an automated scan.\n\nFor a smaller scope, choose **Selected VM resource IDs** and browse or paste up to\n50 IDs. Normal external scans never submit guest commands automatically.\n\n```sh\n# Automatically discover and inspect all accessible subscriptions; create one report.\nazure-php-scout guest --all-subscriptions -o account-php.csv\n\n# Preview subscription coverage and the command plan without executing guest scripts.\nazure-php-scout guest --all-subscriptions --dry-run\n\n# Discover all VMs in one subscription and preview the command plan.\nazure-php-scout guest --subscription SUBSCRIPTION-ID --dry-run\n\n# Inspect the subscription and create subscription-php.html, .csv and .coverage.json.\nazure-php-scout guest --subscription SUBSCRIPTION-ID -o subscription-php.csv\n\n# Preview a selected VM without submitting a guest command.\nazure-php-scout guest --vm-id \u002Fsubscriptions\u002FSUBSCRIPTION-ID\u002FresourceGroups\u002FMY-RG\u002Fproviders\u002FMicrosoft.Compute\u002FvirtualMachines\u002FMY-VM --dry-run\n\n# Inspect a selected VM; repeat --vm-id to include Windows and Linux VMs together.\nazure-php-scout guest --vm-id \u002Fsubscriptions\u002FSUBSCRIPTION-ID\u002FresourceGroups\u002FMY-RG\u002Fproviders\u002FMicrosoft.Compute\u002FvirtualMachines\u002FMY-VM -o guest-results.csv\n```\n\nThis is a separate, opt-in execution mode. Azure Run Command executes the fixed\ninspection scripts as **root on Linux \u002F SYSTEM on Windows**. The scripts do not\ninstall packages or change application configuration; Azure still creates Run\nCommand agent\u002Fextension artifacts and logs. The identity needs Run Command\npermission in addition to read access; **Reader alone is insufficient**.\n\nLinux inspection checks common PHP\u002FFPM\u002FCGI binary paths, Debian\u002FRPM core packages,\nand PHP process presence. Windows checks common PHP locations, running PHP process\npaths, and IIS FastCGI mappings, reading executable version metadata without\nexecuting `php.exe`. Guest evidence is labeled separately from HTTP evidence.\nInstalled package\u002Ffile versions do not prove which runtime is executing web\nrequests, and vendor backports require verification.\n\nPrivate VMs need a running, ready Azure VM Agent and its outbound connectivity;\nthey do not need a public IP, SSH, or RDP. VMs are inspected sequentially. Stopping\na run prevents further submissions and stops waiting, but **cannot cancel a guest\nscript already submitted to Azure**. Timeouts and incomplete output remain visible.\nSee [guest inspection and permissions](docs\u002FGUEST-INSPECTION.md) for limits,\nsupported locations, and the exact authorization required.\n\n## Docker\n\nThe image includes Azure CLI and Resource Graph, runs as a non-root user, and uses\n`\u002Fdata` for persistent state. Generate an API token and start the local Compose\nservice:\n\n```sh\npython3 -c \"import secrets; print('SCOUT_API_TOKEN=' + secrets.token_urlsafe(32))\" > .env\ndocker compose up --build -d\n```\n\nOpen http:\u002F\u002F127.0.0.1:8000 and sign in with the token from `.env`. To authenticate\nAzure CLI inside the container:\n\n```sh\ndocker compose exec scout az login --use-device-code\n```\n\nUse `az login --identity` in an Azure environment configured for managed identity.\nThe named volume persists CLI state and scan history. `docker compose down` stops\nthe service; deleting the volume also deletes its saved data.\n\nFor remote hosting, set a random `SCOUT_API_TOKEN`, set `SCOUT_ALLOWED_HOSTS` to the\nservice hostname, and place the service behind TLS and a restricted ingress. The\nbuilt-in token is a single-operator credential. This release is not a multi-tenant\nSaaS platform. Run **one service worker per data directory**.\n\n## Understanding findings\n\n| Assessment | Meaning | Action |\n| --- | --- | --- |\n| Potentially affected | Observed upstream version matches a tracked CVE range. | Verify package\u002Fbackports and update the serving runtime. |\n| Upstream end of life | Branch is outside recorded upstream security support. | Upgrade or verify an appropriate vendor support arrangement. |\n| Verify runtime version | PHP\u002FWordPress evidence lacks a complete, unambiguous runtime version, or branch coverage is unavailable. | Confirm the runtime serving traffic and its build. |\n| Configuration only | Azure exposes PHP configuration without runtime version evidence. | Check whether the setting is used by the deployed app. |\n| Outside tracked ranges | Observed version does not match this catalog's ranges. | Continue checking vendor advisories; this is not a clean bill of health. |\n| Undetermined | Evidence is insufficient to assess a PHP runtime. | Investigate as needed; absence of a signature does not prove absence of PHP. |\n\nThe reviewed upstream fixed releases for both bundled CVEs are **8.2.35**,\n**8.3.36**, **8.4.27**, and **8.5.12**. Version comparisons are branch-specific;\nprereleases do not count as the stable fixed release. Distribution and LTS vendors\nmay ship backported fixes under older upstream version numbers. Older branches\nare flagged for support\u002Fvendor verification rather than asserting identical\nexploitability for every historical PHP release.\n\nUpdating an application or WordPress does not establish that its underlying PHP\nruntime is patched. Apply the appropriate PHP package\u002Fimage\u002Fplatform update,\nrestart or redeploy serving workers, and verify the runtime handling web requests.\nThe app provides guidance and official links; it does not run remediation commands.\n\nSources: [PHP security announcement](https:\u002F\u002Fwww.php.net\u002Farchive\u002F2026.php#2026-10-21-5),\n[OOM corruption advisory](https:\u002F\u002Fgithub.com\u002Fphp\u002Fphp-src\u002Fsecurity\u002Fadvisories\u002FGHSA-w8hw-w9fx-j79w),\n[stale global state advisory](https:\u002F\u002Fgithub.com\u002Fphp\u002Fphp-src\u002Fsecurity\u002Fadvisories\u002FGHSA-6wmf-4rv5-p3rp),\n[PHP support lifecycle](https:\u002F\u002Fwww.php.net\u002Fsupported-versions.php).\n\n## NGINX HTTP\u002F2 checks\n\n`--stack` (or the dashboard's **Technology to check** menu, or `\"stack\"` in the API) selects\n`php`, `nginx`, or `both` (default). NGINX is identified from the `Server` header or the\ndefault error page; OpenResty is reported as a probable NGINX without a version. For TLS\nendpoints one extra ALPN handshake records whether HTTP\u002F2 is negotiated; no HTTP\u002F2 frames\nor exploit traffic are sent. Findings compare the version with CVE-2026-123633 and\nCVE-2026-123007 (see [docs\u002FADVISORIES.md](docs\u002FADVISORIES.md)). Hidden versions\n(`server_tokens off`), distribution backports, plain-HTTP\u002Fh2c listeners and HTTP\u002F2 on other\nports cannot be confirmed from the outside and are reported as verification tasks. VM guest\ninspection remains PHP-only.\n\n## Coverage and limits\n\n- This is an external scan of directly attached VM public IPs and managed app\n  hostnames. Private\u002FNAT-only VMs appear as skipped. Supply a reachable target and\n  run from an appropriate network to assess internal services.\n- Azure access failures, expired tenant sessions, skipped resources, TCP timeouts,\n  and selected ranges remain visible. A timeout is not proof a port is closed.\n- Name-based virtual hosts and hidden runtime headers limit fingerprinting. Known\n  hostnames improve coverage. Static exports\u002FCDNs can retain WordPress markers.\n- WordPress implies possible PHP use, while configured PHP values remain separate.\n  The scanner does not derive PHP versions from WordPress or plugin asset versions.\n- Static Web App default\u002Fcustom production hostnames and App Service slots are\n  included when returned by Resource Graph. Static preview environments are not\n  separately enumerated. DNS\u002Fingress can route outside the Azure resource itself.\n- The probe uses HTTP GETs for `\u002F` and limited WordPress discovery paths. It does\n  not send exploit payloads, crawl arbitrary pages, or request PHP diagnostics.\n- TLS certificate checks default off for bare IP\u002Fself-signed endpoints; use\n  `--verify-tls` when trusted certificate matching is required. The scan does not\n  assess TLS security. Response and decompression limits are 300 KB.\n- Assessment reflects the bundled reviewed catalog, not a continuously updated\n  vulnerability feed. See [advisory maintenance](docs\u002FADVISORIES.md).\n\n## Development and community\n\n```sh\npip install -e '.[dev]'\npython -m pytest -q\npython -m build\n```\n\nTests use synthetic Azure records and local TCP\u002FHTTP\u002FHTTPS fixtures. CI also builds\nthe container. Neither automatically scans a developer's Azure estate. Review\n[CONTRIBUTING.md](CONTRIBUTING.md), [SECURITY.md](SECURITY.md),\n[API documentation](docs\u002FAPI.md), and [architecture](docs\u002FARCHITECTURE.md).\n\nPlease keep real inventories, report files, credentials, and tenant identifiers\nout of issues and pull requests. The repository contains only synthetic examples.\nLicensed under [MIT](LICENSE).\n","Azure PHP Scout 是一个自托管的安全扫描工具，用于识别 Azure 环境中运行 PHP 或 NGINX 的服务（如虚拟机、App Service、静态 Web 应用等），并基于已知安全通告（如特定 PHP 和 NGINX HTTP\u002F2 CVE）进行版本级风险分级。它结合 Azure 资源图读取、端口探测、HTTP 指纹识别与运行时版本检测，支持离线 HTML\u002FCSV\u002FJSON 报告生成，并可通过 CLI 或 FastAPI 驱动的 Web 仪表盘交互操作。适用于云安全团队、DevSecOps 工程师在合规审计、版本治理或漏洞响应场景中，对 Azure 托管的 PHP\u002FWordPress\u002FNGINX 服务开展轻量级、可追溯的运行时安全评估。",2,"2026-11-24 04:53:20","CREATED_QUERY"]