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

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
雷峰网
雷峰网
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
腾讯CDC
T
Tailwind CSS Blog
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
T
The Blog of Author Tim Ferriss
G
Google Developers Blog
The Cloudflare Blog
D
DataBreaches.Net
Recent Announcements
Recent Announcements
Engineering at Meta
Engineering at Meta
B
Blog
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
月光博客
月光博客
博客园 - 司徒正美
MongoDB | Blog
MongoDB | Blog
Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research

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 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
GitHub - kpolley/redai: AI-driven vulnerability discovery...
kpolls · 2026-04-23 · via Hacker News - Newest: "AI"

npm license bun

A terminal workbench for AI-driven vulnerability discovery and live validation.

RedAI terminal UI screenshot

Most "AI security" tools stop at flagging code that looks vulnerable. RedAI goes further: after scanner agents produce candidate findings, validator agents work inside a live environment — a running instance of the target, plus whatever tools they need to interact with it — and try to prove or disprove each finding before it ever shows up in the report. They click through the UI, hit endpoints, write PoC scripts, host helper servers, and save the evidence.

The environment is a plugin. RedAI ships with two — a real Chrome browser and an iOS Simulator — and you can write your own (a Linux VM, an Android emulator, a Kubernetes cluster, an embedded device shim) by implementing a small interface.

At the end of a run you get a detailed report (Markdown, HTML, and JSON) with severity-ranked findings, per-finding reproduction steps, the validator's verdict (confirmed, disproved, or unable to test), and the actual evidence the agents collected — PoC scripts, HTTP transcripts, logs, and screenshots — so every confirmed finding comes with proof, not just a claim. See examples/webapp/example-report.md or examples/iosapp/example-report.md for real ones.

Authorized use only. Use RedAI on software and environments you own or are authorized to assess. Agent output can be incomplete or wrong — review findings and evidence before acting on them.

Try it in 60 seconds

The repo ships two intentionally-vulnerable demo apps so you can see RedAI end-to-end without pointing it at your own code: examples/webapp for the Browser environment and examples/iosapp for the iOS Simulator environment.

# 1. install RedAI
bun install -g @kpolley/redai

# 2. start the demo target in one terminal
cd examples/webapp && bun run dev      # http://localhost:3000

# 3. start RedAI in another terminal
redai

In RedAI, create a Browser environment pointed at http://localhost:3000, sign in once with exampleuser / examplepassword, mark it ready, then start a scan against examples/webapp. Watch the validators drive Chrome to confirm real findings.

The full report from a real scan of this app lives at examples/webapp/example-report.md — GitHub renders it inline so you can see what RedAI produces without running it.

Install

From npm:

bun install -g @kpolley/redai
redai

Or from a local checkout:

git clone https://github.com/kpolley/redai.git
cd redai
bun install
bun run redai

Requirements

Scope Requirement
Core Bun ≥ 1.2, a readable source directory
Scanner (pick one) Claude: ANTHROPIC_API_KEY, CLAUDE_CODE_USE_BEDROCK, or CLAUDE_CODE_USE_VERTEX — or — Codex: OPENAI_API_KEY or CODEX_API_KEY
Browser validator Chrome, agent-browser, .agents/skills/agent-browser in the target workspace
iOS validator macOS, Xcode command line tools, xcrun simctl, a simulator-compatible app (or installed bundle ID), .agents/skills/ios-simulator-skill in the target workspace

RedAI reads .env from the working directory when credentials are needed; existing shell environment variables take precedence.

Only one scanner key is required — set whichever matches the scanner you plan to use.

# Claude (pick one)
ANTHROPIC_API_KEY=...
# or Codex
OPENAI_API_KEY=...

Scan your own code

A scan needs two things: a source directory and a ready validation environment — whatever live target the validator agents will interact with (one of the bundled environments, or one you've added).

  1. In RedAI, create an environment that matches your target and complete its setup — log in, navigate to the right initial state, install the app, whatever the environment requires. Mark it ready.
  2. Create a scan, choose your source directory and the ready environment, pick a scanner agent (Claude Code or Codex), and start it.

Scanner agents triage and probe the source; validator agents take confirmed-looking findings and run them against the live environment. The report writes to ~/.redai/runs/<runId>/report.md (and .html) when the scan finishes.

See src/tui/README.md for keyboard shortcuts.

How live validation works

Each scan moves through three phases:

  1. Discover. RedAI threat-models the project, prioritizes files by likely security relevance, splits them into bounded analysis units, and runs scanner agents over each unit to produce candidate findings.
  2. Validate. For every candidate finding, a validator agent plans a test, then drives the prepared environment to execute it — clicking the UI, sending requests, writing PoC scripts, capturing screenshots and logs. Each finding ends up confirmed, unable-to-test, or disproved.
  3. Report. Confirmed findings, evidence, and artifacts are written to ~/.redai/runs/<runId>/.

For the full nine-stage pipeline (preflight, threat model, file prioritization, analysis units, unit scan, finding aggregation, validation plan, validation execution, reporting), see src/pipeline/README.md.

Validation environments

A validation environment is whatever a validator agent needs to interact with a running instance of the target. RedAI treats environments as plugins: each one implements the small interface in src/validators/validator-plugin.ts, handles its own setup/teardown, and exposes whatever tools the agent should have inside it.

New scans can only use environments marked ready. Once a scan starts, validators do whatever the plan calls for — drive the UI, run shell commands, write PoC scripts, host helper servers, collect logs, save screenshots. All of it lands under ~/.redai/runs/<runId>/artifacts/.

RedAI validating a Firefox iOS pentest in a live simulator

Two environments ship in the box as reference implementations:

Want to validate against a Linux VM, an Android emulator, a remote staging cluster, or something more exotic? Add a plugin — same interface as the bundled two.

Data and artifacts

RedAI writes local state under ~/.redai/ (override with REDAI_HOME). These files may contain source-derived prompts, agent transcripts, reports, evidence, credentials, browser profiles, and simulator metadata.

For the directory layout, see src/pipeline/README.md.

Contributing

Commands, code organization, and project conventions live in AGENTS.md. For pipeline internals see src/pipeline/README.md; for adding a new validator environment see src/validators/validator-plugin.ts.

License

MIT — see LICENSE.