Code IntelligencePR Security Scanner

Only the replay counts as evidence.

Construct

Construct scans every pull request in your GitHub org for security bugs. A GitHub App sends PR events to one central service, which runs a short chain of agents on the change: triage, hypothesise, static verify, skeptic, dynamic. Bugs that survive are replayed against the PR’s own app, so a finding arrives already proven. Dev teams change nothing in their CI.

construct · scan #42 · acme/api PR 318 SCANNING
Scan pipeline
Triage FULL
Hypothesise 4 HYPOTHESES
Static verify 2 CONFIRMED
Skeptic 1 REFUTED
Dynamic REPRODUCED
Replays · H2 SQL injection
PR head · run 1 FIRED
PR head · run 2 FIRED
Base branch DID NOT FIRE
Verdict INTRODUCED BY THIS PR
09:14:02 [triage] full — new endpoint reads a query parameter
09:15:40 [static_verify] ✓ citations match reports/views.py:88
09:16:11 [skeptic] H3 dropped — value is cast to int upstream
09:19:27 [dynamic] env up: app + postgres + mock login
09:21:03 [replay] ✗ reproduced 2/2 on PR, 0/1 on base → SARIF

Every stage, hypothesis, and replay lands on a live timeline you can follow as the scan runs.

A scanner that has to prove it.

Nothing to install per repo

One GitHub App, read-only permissions, one central service. Every PR in the org is scanned on open and on push. Findings come out as SARIF and on an AppSec dashboard; nothing is written back to the PR.

Citations checked by code

Every file:line and quote an agent cites is matched against the real source after the stage ends. A citation that does not match drops the hypothesis, so a hallucinated location never reaches you.

Agent-free replay

The agent writes a declarative PoC. Code then replays it in fresh environments, twice on the PR and once on the base branch, with fresh canaries each time. An oracle never passes on a value the PoC itself sent.

Isolated by construction

Each agent runs in its own container on a per-scan internal network. The running app can reach mock services and a DNS sink that records everything else. Only a small launcher service holds the Docker socket.

Three hypotheses, three labels.

A finding gets exactly one label, and the label says how much proof stands behind it. Pick a hypothesis to see where it ends up and why.

construct · sandbox LIVE
Pick a hypothesis — click one
Outcome
Labelreproduced
MeansEvery replay on the PR fired through the app’s real HTTP entry point.
Introduced by the PR?Yes — the base replay did not fire.

reproduced · likely · inconclusive — and an inconclusive always carries its reason.

Any harness, any model, per stage.

AppSec owns a central policy.yaml that picks the agent harness, model, time limit, and dollar budget for each stage; repos cannot override it from a branch. Harnesses only ever see model aliases and a short-lived key minted per task, and the judge runs on a different model family from the agent it reviews to reduce correlated mistakes. The methodology itself is nine harness-neutral skills, measured against a labelled eval corpus on every change.

Claude CodeCodexOpenCodepiLiteLLM gatewaySARIFPostgresDocker ComposeOIDC dashboard

The intelligence half of the loop.

Today

Construct reads each change, forms hypotheses about impact and abuse cases, verifies them against the code, and proves the survivors in an ephemeral environment built from the PR branch.

Next

Its hypotheses, new routes, and trust-boundary changes flow into Source, where Agent-Smith retrieves them as prioritized targets for runtime testing against staging.

Run the tests, then scan a PR.

terminal
$ git clone [email protected]:0x0pointer/Construct.git && cd Construct
$ python3.12 -m venv .venv && .venv/bin/pip install -e '.[dev]'
$ make test && make test-e2e # the full pipeline, with a scripted agent
 
$ cp .env.example .env && make images && make up # the whole org, on one VM
 
✓ open a PR and follow the scan with prsec-trace <scan id> --follow

Three paths: run the tests, scan a real PR from your laptop, or deploy for the whole org.

Put Construct on your pull requests.

Open source under GPL v3.0 and self-hosted. Your code goes to the model provider you choose and nowhere else.