惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Forbes - Security
Forbes - Security
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
GbyAI
GbyAI
B
Blog RSS Feed
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
小众软件
小众软件
The Last Watchdog
The Last Watchdog
W
WeLiveSecurity
Webroot Blog
Webroot Blog
S
Security @ Cisco Blogs
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
月光博客
月光博客
博客园 - 聂微东
F
Fortinet All Blogs
H
Hacker News: Front Page
A
About on SuperTechFans
Application and Cybersecurity Blog
Application and Cybersecurity Blog
C
Check Point Blog
V
V2EX
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
N
News | PayPal Newsroom
Cisco Talos Blog
Cisco Talos Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
The Cloudflare Blog
P
Privacy & Cybersecurity Law Blog
N
Netflix TechBlog - Medium
C
CXSECURITY Database RSS Feed - CXSecurity.com
Recorded Future
Recorded Future
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
大猫的无限游戏
大猫的无限游戏
美团技术团队
Security Latest
Security Latest
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
I
InfoQ
Recent Announcements
Recent Announcements
The GitHub Blog
The GitHub Blog
Google Online Security Blog
Google Online Security Blog
T
The Exploit Database - CXSecurity.com

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor GitHub - GenAI-Gurus/awesome-eu-ai-act: Curated tools, official sources, OSS, templates, and guides for EU AI Act compliance. Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders How to Switch AI Chatbots and Why You Might Want To GitHub - MattMessinger1/agentic_refund_guardrail: Safe refund policy layer for AI agents — Python + TypeScript. Same behavior, shared tests. Adam/papers/emergent_values_whitepaper.md at master · strangeadvancedmarketing/Adam Ask HN: How do you stop playing 20 questions with your AI coding tools How far can automation and AI support psychotherapy? - @theU GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits A Mac Studio for Local AI — 6 Months Later A History of the Early Years of AI at the University of Edinburgh Why AI Coding Tools Still Feel Stuck on Localhost MSN AI Datacenters Are Becoming Strategic Targets twitter.com Penn Researchers Use AI to Surface Unreported GLP-1 Side Effects in Reddit Posts Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 AI models are terrible at betting on soccer—especially xAI Grok GitHub - xialeistudio/echoic GitHub - HimashaHerath/github-dev-wrapped: AI-powered weekly GitHub activity reports deployed to GitHub Pages GitHub - alejandrobalderas/claude-code-from-source: Architecture, patterns & internals of Anthropic's AI coding agent — reverse-engineered from source maps AI and Tech brief: Ireland ascendant GitHub - Titovilal/context0: Context0 - Never Surrender Training for a Marathon with an AI Coach: What Worked and What Didn't Cyber Pulse: Agentic Intel - Apps on Google Play I Built an AI PR Reviewer That Catches Bugs by Not Looking for Bugs Gen Z workers are so fearful AI will take their job they’re intentionally sabotaging their company’s AI rollout | Fortune How AI Is Reimagining the Game of Golf–For Both Players and Courses GitHub - nattergabriel/reseed: A CLI tool for managing and distributing agent skills across projects Is SVG the final frontier? My AI workflow evolved from prompts to a near-autonomous workflow MLSharp Help - 3DGS Viewer & Generator I put my cognitive field based AI's runtime on GitHub Is Numble the first AI-proof game? A3: Kubernetes for autonomous AI agent fleets | Emergent Principles Deepali Vyas ("The Elite Recruiter") GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Unionized ProPublica staff are on strike over AI, layoffs, and wages Unleashing the Advantage of Quantum AI We're heading for an AI-fueled 'dementia crisis,' brain scientist warns The AI-Assisted Breach of Mexico's Government Infrastructure [pdf] GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. MSN GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs AI Code is Hollowing Out Open Source, and Maintainers are Looking the Other Way What leaked "SteamGPT" files could mean for the PC gaming platform's use of AI AI is the boss at this retail store. What could go wrong? GitHub - Wuzu11517/agentic-proxy: Local proxy meant to help reduce With Drones, Geophysics and ArtificiaI Intelligence, Researchers Prepare to Do Battle Against Land Mines A Single Operator, Two AI Platforms, Nine Government Agencies: The Full Technical Report 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - inevolin/resume-cli: Hit Claude usage limits? Resume any AI coding session elsewhere. Switch tools at zero friction. GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. How to Build a Secure AI PR Reviewer with Claude, GitHub Actions, and JavaScript This Startup Wants You to Pay Up to Talk With AI Versions of Human Experts Intel Arc Pro B70 Brings 32GB VRAM to Local AI for $949 WordPress 7.0: The Good, the AI, and the Still Missing AI on the couch: Anthropic gives Claude 20 hours of psychiatry IatroBench: Pre-Registered Evidence of Iatrogenic Harm from AI Safety Measures AI Agents Know About Supabase. They Don't Always Use It Right. The history and future of AI at Google, with Sundar Pichai Inside an AI‑enabled device code phishing campaign How Meta Used AI to Map Tribal Knowledge in Large-Scale Data Pipelines AI for Systems: Using LLMs to Optimize Database Query Execution Forecasting the Economic Effects of AI Introducing Tinker: Play with AI, bring your ideas to life AI sheds light on an ancient gaming mystery People really hate AI but not as much as Iran—or Democrats | Fortune What is an AI Product Engineer? Phoebe Gates wants her $185 million AI startup to succeed with 'no ties to my privilege or my last name': 'I have a chip on my shoulder' | Fortune
GitHub - mosidze/aiheal: GitHub-native self-healing CI with AI triage + HITL
mosidze · 2026-04-20 · via Hacker News - Newest: "AI"

License: Apache 2.0

GitHub-native self-healing CI with AI triage and a human-in-the-loop gate.

Six scanners find issues. An AI triages them. You click Approve. Another AI proposes the fix and opens a PR. The application code is off-limits — AI only touches Dockerfile, docker-compose.yml, and .github/workflows/*.

The repo ships with a small Go login API as a demo target. Break the Dockerfile, push, and watch the pipeline heal it.

Why this exists

CI/CD breakage is 80% the same small set of issues — stale base images, missing USER, deprecated actions, CVE-ridden packages, broken healthchecks. A one-shot LLM can write the fix, but naive "let AI push to main" pipelines lose on two fronts: prompt injection via runtime logs, and silent privilege escalation inside the workflow file itself.

This repo is the minimum viable architecture for doing it safely:

  • Scope fence — a structural allow-list restricts AI edits to infrastructure files. Go source, go.mod, and go.sum are never included in any plan.
  • Prompt injection defence — runtime logs are sanitized and wrapped in <untrusted> tags before they reach the model.
  • Workflow invariants — AI may not widen permissions:, add new secret references, or ship unpinned third-party actions. Violations are rejected before apply, not after.
  • HITL gate — when AI raises the gate to block, the bridge job routes through a GitHub Environment that requires reviewer approval before the heal runs.
  • Memory store — every heal writes a (findings, plan, outcome) record into artifacts/heal_history/, tracked inside the PR diff.

3-minute demo

  1. Fork the repo.
  2. In Settings → Secrets and variables → Actions, add the four AI secrets (Groq free tier works):
    • AI_API_KEY — any OpenAI-compatible key
    • AI_PROVIDERopenai-compatible
    • AI_BASE_URL — e.g. https://api.groq.com/openai/v1
    • AI_MODEL — e.g. llama-3.3-70b-versatile
  3. In Settings → Environments, create two environments:
    • aiheal-auto — no protection rules
    • aiheal-human — add yourself as Required reviewer
  4. Run make demo-break, commit the intentionally broken Dockerfile, and push.

Or: one-shot setup via gh CLI

# 1. fork + clone
gh repo fork mosidze/aiheal --clone && cd aiheal

# 2. secrets (Groq example — get a free key at console.groq.com)
gh secret set AI_API_KEY   --body "gsk_..."
gh secret set AI_PROVIDER  --body "openai-compatible"
gh secret set AI_BASE_URL  --body "https://api.groq.com/openai/v1"
gh secret set AI_MODEL     --body "llama-3.3-70b-versatile"

# 3. environments (the HITL gate). gh CLI cannot yet set "required reviewers",
#    so open each environment once in the UI and add yourself as reviewer on
#    aiheal-human. aiheal-auto stays unprotected.
gh api -X PUT "repos/:owner/:repo/environments/aiheal-auto"  >/dev/null
gh api -X PUT "repos/:owner/:repo/environments/aiheal-human" >/dev/null
echo "Now open https://github.com/$(gh repo view --json nameWithOwner -q .nameWithOwner)/settings/environments/aiheal-human and tick 'Required reviewers' → yourself."

# 4. trigger the demo
make demo-break
git add Dockerfile && git commit -m "demo: break the Dockerfile" && git push

# 5. watch
gh run watch

What you will see, in order:

  • devsecops workflow runs six scanners. All green.
  • ai-triage job emits gate=block (CVEs in the broken base image).
  • trigger-aiheal job pauses on the aiheal-human environment with a Review deployments button.
  • You click Approve.
  • aiheal-showcase workflow opens a PR with a heal: multi-stage build, non-root user, pinned base image, plus an artifacts/heal_history/<run_id>.json memory record.

approval gate screenshot placeholder

Architecture

                      ┌──────────────────────────────┐
                      │  devsecops workflow          │
                      │  ┌──────┐ ┌──────┐ ┌──────┐  │
                      │  │gosec │ │trivy │ │gitleaks│  │
                      │  └──────┘ └──────┘ └──────┘  │
                      │  ┌──────┐ ┌──────┐ ┌──────┐  │
                      │  │vuln  │ │trivy │ │ ZAP  │  │
                      │  │check │ │image │ │DAST  │  │
                      │  └──────┘ └──────┘ └──────┘  │
                      └──────────────┬───────────────┘
                                     │ 6× SARIF
                                     ▼
                         ┌───────────────────┐
                         │  AI triage        │
                         │  gate=allow|warn  │
                         │       |block      │
                         └─────┬─────────────┘
                               │ docker-scope handoff
                  ┌────────────┴────────────┐
                  │                         │
           gate=allow/warn            gate=block
                  │                         │
                  ▼                         ▼
         ┌─────────────────┐       ┌──────────────────┐
         │ aiheal-auto   │       │ aiheal-human   │
         │ (proceed)       │       │ (Approve → go)   │
         └────────┬────────┘       └────────┬─────────┘
                  │                         │
                  └────────────┬────────────┘
                               ▼
                  ┌───────────────────────┐
                  │ aiheal-showcase     │
                  │ diagnose → plan → fix │
                  │  → validate → verify  │
                  │  → PR + heal_history  │
                  └───────────────────────┘

The AI triage layer emits a gate and a consolidated docker-scope directive (not 40 raw CVEs — the planner does not need per-vuln detail, it needs "container image has N high-severity findings, bump the base image"). The aiheal planner receives that directive plus a deterministic findings payload from the local diagnose step, produces a plan targeting only files inside the allow-list, runs through hadolint / actionlint / docker compose config / workflow invariants, applies the change, re-verifies post-heal, and opens a PR.

What the pipeline won't do

This is a feature, not a limitation:

  • Touch Go source. *.go, go.mod, go.sum are rejected by the plan validator. Business logic is not AI's job.
  • Widen permissions: in a workflow. A structural invariant check compares the new workflow against the old one and rejects any widening (none → read, read → write, write-all anywhere).
  • Add new ${{ secrets.X }} references. Same invariant layer.
  • Ship unpinned third-party actions. Anything not under actions/* must be SHA-pinned.
  • Follow instructions found in runtime logs. All container output passed to the model is wrapped in <untrusted_runtime_log> and the system prompt instructs the model to treat it as opaque data.
  • Push straight to main. Heal always lands on a fresh aiheal/run-<id> branch via PR. No force-pushes.

Operator controls

  • AIHEAL_DISABLED=true as a repo variable disables the heal job globally while leaving diagnose running.
  • AI_* secrets are scoped only to the Generate remediation plan step — the post-heal verify step (which executes AI-generated Dockerfile/compose) runs without them.
  • Token usage and per-step latency are recorded in artifacts/ai_usage.jsonl.
  • Payload budget: AI triage trims to top-40 findings by severity with docker preference. If the payload still overflows, it chunks into 20-item batches. On persistent rate limits, the deterministic scanners still produce a report and the job exits 0 — the AI layer is additive.

Reviewing an aiheal PR

  • Diff is small and targeted to findings listed in PR body.
  • hadolint / actionlint / yamllint green in the lint-and-test job.
  • No widening of permissions: (look at the workflow diff).
  • No new ${{ secrets.* }} references.
  • Third-party actions pinned by 40-char SHA.
  • Heal history JSON file present under artifacts/heal_history/.

Local dev without an API key

Install Ollama, ollama pull llama3.1, copy .env.example to .env, set AI_PROVIDER=ollama, and run the scripts under scripts/ manually — no AI_API_KEY needed. The AI client auto-defaults to http://localhost:11434/v1.

Architecture decisions worth knowing

Decision Why
AI triage is advisory; eligibility is structural Groq llama-3.3 triages most base-image CVEs as needs_human. The bridge fires on path_scope=="docker" regardless. The allow-list downstream is the real gate.
Security handoff is consolidated, not per-CVE 40 individual CVE payloads blow through per-request token budgets. One directive ("bump base image") is what the planner actually needs.
HITL on block, auto on allow/warn Graduated autonomy — routine fixes proceed, high-risk ones wait for a human click. Implemented via GitHub Environments (native feature, no custom code).
Force-push replaced with PR + memory record in diff Reviewer sees what changed, what findings were addressed, and prior heal outcomes in the same diff.
Scanners over mock data Real Trivy / gosec / govulncheck / gitleaks / ZAP run every push — deterministic signal, AI is layered on top, not substituted for.

Stack

  • Scanners — gosec, govulncheck, gitleaks, Trivy (fs + image), OWASP ZAP baseline.
  • Linters / validators — hadolint, actionlint, yamllint, docker compose config, custom workflow-invariant checker.
  • AI layer — OpenAI-compatible API (tested with Groq llama-3.3-70b, OpenAI gpt-4o-mini, local Ollama llama3.1). Single-call triage, chunking on overflow.
  • GitHub surface — Code Scanning (SARIF upload), Environments (HITL gate), PR + labels + memory artifact.

About the demo app

A minimal Go login API (register, login, me, users) with Postgres. Endpoint details in APP.md. The app is a fixed target for the pipeline — its code is intentionally boring.

License

Apache License 2.0 — see LICENSE and NOTICE.