cd /news/ai-tools/i-built-a-zero-dependency-offline-py… · home › topics › ai-tools › article
[ARTICLE · art-178840] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

I Built a Zero-Dependency Offline Python Scanner for Dec 1 AI API Retirements & Active CISA KEVs

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.

key 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.

by read2 min views5 publishedNov 30, 2026

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:

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). Rather 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.

You can inspect the entire plain-text source directly at https://patchpulse-radar.netlify.app/scan.py before running it:

curl -sSL https://patchpulse-radar.netlify.app/scan.py -o patchpulse-scan.py && python3 patchpulse-scan.py .

--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.

PatchPulse Local Repo Scanner v1.1.0  (100% offline, 0 telemetry)
Target: /workspace/my-saas-app  |  Files scanned: 184  |  Rules: 15
--------------------------------------------------------------------------
[CRITICAL] Microsoft PyPI 'agent-framework' supply-chain hijack (v1.26.1 / v1.26.2 .pth stealer)
  Location: requirements.txt:14  |  Deadline: Immediate
  Action:   Verify installed version is NOT 1.26.1 or 1.26.2, purge CI caches, and rotate tokens.

[HIGH] Vulnerable Next.js version (^16.4.2) affected by GHSA-mfr8-8qww-v76h cache disclosure
  Location: package.json:1  |  Deadline: Immediate
  Action:   Upgrade Next.js to >= 16.4.5 or >= 15.5.29 immediately.

[FINOPS] Google Gemini 4 Carbon & Argon pay-as-you-go rates double Dec 1 ($2/$10 -> $4/$20)
  Location: src/ai/router.ts:28  |  Deadline: 2026-12-01
  Action:   Recalculate December budgets before Dec 1; benchmark GPT-6.2 Sol ($2/$10).

scan.py v1.1.0 Checks Locally 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 tagspackage.json semver check for Next.js < 15.5.29 / < 16.4.5 (GHSA-mfr8-8qww-v76h) + unstable_cache / 'use cache' usagecloudflare/pages-action (CVE-2026-11325) in .github/workflows/*.yml

name: PatchPulse Weekly Exposure Audit
on:
  push:
    branches: [main]
  schedule:
    - cron: '0 8 * * 1'
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Run PatchPulse Offline Scanner
        run: |
          curl -sSL https://patchpulse-radar.netlify.app/scan.py -o patchpulse-scan.py
          python3 patchpulse-scan.py . --strict

Every rule links straight to its primary vendor advisory (cisa.gov, developers.openai.com, nodejs.org, nextjs.org, blog.cloudflare.com, postgresql.org).

What CVE, deprecated GitHub Action, or expiring AI model should I add to scan.py v1.2.0 next Monday? Drop it below!

── more in #ai-tools 4 stories · sorted by recency
── more on @patchpulse 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-built-a-zero-depen…] indexed:0 read:2min 2026-11-30 · —