{"slug": "i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements", "title": "I Built a Zero-Dependency Offline Python Scanner for Dec 1 AI API Retirements & Active CISA KEVs", "summary": "A developer released scan.py v1.1.0, a single-file, zero-dependency Python 3 scanner that audits local repositories in under two seconds for deprecated AI API models, expiring model retirements, CISA KEV vulnerabilities, and supply-chain issues, with zero network calls and zero telemetry. The tool checks 15 rules covering items such as Claude and Gemini model retirements, a December 1 Gemini price increase, a Microsoft PyPI agent-framework .pth stealer, and a Next.js cache disclosure, and offers --json, --strict, and --no-color flags for CI integration.", "body_md": "Tomorrow (**December 1, 2026**) is one of the highest-risk 48-hour cutover windows of the year for engineering teams running AI APIs alongside web infrastructure:\n\n`claude-sonnet-4-5-20250929` (plus Claude Opus 4.8 Fast mode).`gpt-image-1-mini`, `gpt-image-1.5`, and `chatgpt-image-latest`, Google begins silently auto-routing `gemini-2.5-pro` / `2.5-flash`, AND Google doubles standard pay-as-you-go pricing for `$2/$10` -> `$4/$20` per 1M tokens).`CVE-2026-136716`), `CVE-2026-40217`), `CVE-2026-123890`), and a 10-CVE wave across HPE Session Smart, Mitel MiCollab, and Vates Xen Orchestra—right alongside Microsoft's PyPI `agent-framework` (`1.26.1`–` 1.26.2`) `.pth` stealer, F5's NGINX `nginx2root` (`CVE-2026-123007`), PHP `phpAfterShell` (`CVE-2026-126714`), and Ruby `ruby2shell` (`CVE-2026-132825`).\nRather than manually grepping 15 repositories every Monday morning, I built **`scan.py` (v1.1.0)** — a single-file, zero-dependency Python 3 scanner that audits any local repo in under 2 seconds with **zero network calls and zero telemetry**.\n\nYou can inspect the entire plain-text source directly at [https://patchpulse-radar.netlify.app/scan.py](https://patchpulse-radar.netlify.app/scan.py) before running it:\n\n```\ncurl -sSL https://patchpulse-radar.netlify.app/scan.py -o patchpulse-scan.py && python3 patchpulse-scan.py .\n```\n\n`--json` — emits a structured JSON report for Slack bots, Jira/Linear automation, or security dashboards.`--strict` — exits with status code `2` whenever any `CRITICAL` or `HIGH` finding is detected (drop straight into GitHub Actions).`--no-color` — clean plain-text output for CI logs.\n\n```\nPatchPulse Local Repo Scanner v1.1.0  (100% offline, 0 telemetry)\nTarget: /workspace/my-saas-app  |  Files scanned: 184  |  Rules: 15\n--------------------------------------------------------------------------\n[CRITICAL] Microsoft PyPI 'agent-framework' supply-chain hijack (v1.26.1 / v1.26.2 .pth stealer)\n  Location: requirements.txt:14  |  Deadline: Immediate\n  Action:   Verify installed version is NOT 1.26.1 or 1.26.2, purge CI caches, and rotate tokens.\n\n[HIGH] Vulnerable Next.js version (^16.4.2) affected by GHSA-mfr8-8qww-v76h cache disclosure\n  Location: package.json:1  |  Deadline: Immediate\n  Action:   Upgrade Next.js to >= 16.4.5 or >= 15.5.29 immediately.\n\n[FINOPS] Google Gemini 4 Carbon & Argon pay-as-you-go rates double Dec 1 ($2/$10 -> $4/$20)\n  Location: src/ai/router.ts:28  |  Deadline: 2026-12-01\n  Action:   Recalculate December budgets before Dec 1; benchmark GPT-6.2 Sol ($2/$10).\n```\n\n`scan.py` v1.1.0 Checks Locally\n`FINOPS`):` claude-sonnet-4-5`, `claude-opus-4-8`, `gemini-2.5-flash` (Nov 30 / Dec 1)`gemini-4-carbon`, `gemini-4-argon` (Dec 1 2x rate increase)`gpt-5`, `gpt-5-mini`, `o3`, `o3-pro`, `gpt-4o`, `gpt-4.1` (Dec 11 / Jan 14)`litellm` (`/guardrails/test_custom_code` sandbox escape)`postgres:14`) & Node.js unpatched `22.x`/` 24.x`/` 26.x` Docker base tags`package.json` semver check for Next.js `< 15.5.29` / `< 16.4.5` (`GHSA-mfr8-8qww-v76h`) + `unstable_cache` / `'use cache'` usage`cloudflare/pages-action` (`CVE-2026-11325`) in `.github/workflows/*.yml`\n\n```\nname: PatchPulse Weekly Exposure Audit\non:\n  push:\n    branches: [main]\n  schedule:\n    - cron: '0 8 * * 1'\njobs:\n  audit:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n      - name: Run PatchPulse Offline Scanner\n        run: |\n          curl -sSL https://patchpulse-radar.netlify.app/scan.py -o patchpulse-scan.py\n          python3 patchpulse-scan.py . --strict\n```\n\nEvery rule links straight to its primary vendor advisory (`cisa.gov`, `developers.openai.com`, `nodejs.org`, `nextjs.org`, `blog.cloudflare.com`, `postgresql.org`).\n\nWhat CVE, deprecated GitHub Action, or expiring AI model should I add to `scan.py` v1.2.0 next Monday? Drop it below!", "url": "https://wpnews.pro/news/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements", "canonical_source": "https://dev.to/jakov_2cd9d0cede4f1de860e/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements-active-cisa-kevs-253a", "published_at": "2026-11-30 20:08:35+00:00", "updated_at": "2026-11-30 20:14:33.161169+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-infrastructure", "mlops", "ai-safety"], "entities": ["PatchPulse", "Google", "Anthropic", "Microsoft", "Cloudflare", "Next.js", "CISA", "GitHub Actions"], "also_reported_by": [], "takeaway": "A single-file, zero-dependency Python scanner can flag deprecated AI model IDs, expiring API retirements and CISA KEV CVEs across a repo in under two seconds with no network calls, and its --strict flag exits with code 2 on CRITICAL/HIGH findings for CI gating.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements", "markdown": "https://wpnews.pro/news/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements.md", "text": "https://wpnews.pro/news/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements.txt", "jsonld": "https://wpnews.pro/news/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements.jsonld"}}