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

2026-12-01来源 dev.toEnglish
I Built a Zero-Dependency Offline Python Scanner for Dec 1 AI API Retirements & Active CISA KEVs

PatchPulse Weekly CVE, Breaking-Change & AI-SDK Radar

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:

  • Today (Nov 30): OpenAI retires Hosted Evals and Anthropic retires claude-sonnet-4-5-20250929 (plus Claude Opus 4.8 Fast mode).
  • Tomorrow (Dec 1): OpenAI deprecates 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 Gemini 4 Carbon & Argon ($2/$10 -> $4/$20 per 1M tokens).
  • Active Critical CVEs (Nov 18–30): CISA added Drupal Core (CVE-2026-136716), BerriAI LiteLLM (CVE-2026-40217), VMware vCenter (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.

Run It in 2 Seconds (100% Offline)

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 . 

Flags Built for CI / CD

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

Example Terminal Output

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

What scan.py v1.1.0 Checks Locally

  1. AI API Sunsets & Price Doublings (FINOPS):
    • claude-sonnet-4-5, claude-opus-4-8, gemini-2.5-pro, gemini-2.5-flash (Nov 30 / Dec 1)
    • gemini-4-carbon, gemini-4-argon (Dec 1 2x rate increase)
    • gpt-image-1-mini, gpt-image-1.5, chatgpt-image-latest (Dec 1 OpenAI image retirements)
    • gpt-5, gpt-5-mini, o3, o3-pro, gpt-4o, gpt-4.1 (Dec 11 / Jan 14)
  2. Active CISA KEVs & Supply-Chain CVEs (CRITICAL):
    • Microsoft PyPI agent-framework (1.26.1–1.26.2 .pth credential stealer)
    • BerriAI litellm (CVE-2026-40217 /guardrails/test_custom_code sandbox escape)
    • Drupal Core (CVE-2026-136716 remote site takeover)
    • NGINX HTTP/2 (CVE-2026-123007 nginx2root Docker container escape)
    • PHP phpAfterShell (CVE-2026-126714) & Ruby ruby2shell (CVE-2026-132825) Docker images
    • PostgreSQL 14 EOL (postgres:14) & Node.js unpatched 22.x/24.x/26.x Docker base tags
  3. Web Frameworks & CI/CD (HIGH):
    • Exact package.json semver check for Next.js < 15.5.29 / < 16.4.5 (GHSA-mfr8-8qww-v76h) + unstable_cache / 'use cache' usage
    • Deprecated & secret-exposing cloudflare/pages-action (CVE-2026-11325) in .github/workflows/*.yml

Drop Into GitHub Actions in 10 Seconds

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 

Links & Weekly Monday Updates

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!

原文:https://www.a8q9.cn/en/article/i-built-a-zero-dependency-offline-python-scanner-for-dec-1-ai-api-retirements-ac-69ff25.html

相关文章