Skip to content

BugPoCer

BugPoCer is an AI-powered internal audit tool that automates end-to-end vulnerability exploitation for smart contracts on Solidity, Rust (Anchor/Solana), and Cairo (StarkNet) — moving beyond static warnings to deliver concrete, verifiable Proof-of-Concept (PoC) exploits.


Built on Olympix’s proprietary Intermediate Representation (IR) and symbolic execution engine, BugPoCer combines results from multiple analysis engines to identify confirmed security issues. For each vulnerability, it automatically generates a ready-to-run PoC test in the project’s native framework — Foundry (.t.sol), Rust cargo test (.rs), or Starknet Foundry snforge (.cairo) — that reproduces the exploit under realistic attack conditions.

  • Automated Vulnerability Detection — AI-driven protocol scanning
  • Project Context and Invariant Building — Approve inferred project context
  • PoC Generation — Automatically creates Foundry test files that demonstrate exploits
  • Interactive Analysis — Ask follow-up questions about findings


BugPoCer runs as a multi-stage pipeline. The analysis itself happens server-side, so most stages are asynchronous — you can close the CLI between stages and reconnect whenever an email tells you it’s your turn again.

#StageWhat happensSession stateEmail sent
1Start sessionYou run olympix bug-pocer, pick a project, name the session, select scope, and optionally attach additional documentation. Nothing is committed server-side until you press Enter to submit the documentation step — at that point the session is created, transitions to ChatStarted, and the Scan Started email fires. Cancelling during scope selection or the documentation step leaves no session behind.— → ChatStartedBugPoCer Scan Started
2Context buildingServer scans your uploaded code (including any documentation found in the repo) and infers project identity, intent, core functions, design goals, patterns, invariants, and security assumptions.ChatStarted
3Context validationYou review and correct the inferences the engine isn’t confident about.ValidationRequested[Action Required] Validate Project Context (or the …(Partial) variant if some context agents fell short). You have 72 hours to respond; if you don’t, reminder emails fire inside the window and the session is killed when it expires.
4Initial scanValidated context is fed into the vulnerability scan and PoC generation.ValidationCompleted
5Findings reviewReconnect, browse findings, mark verdicts, export reports.InitialScanCompletedBugPoCer Initial Scan Complete

After the initial scan you can also ask follow-up questions, which cycles the session between QuestionReceived and QuestionAnswered.


  1. Log in (once): olympix login -e <email> — or olympix login-sso -e <email> for SSO orgs.

  2. Start a scan from your project root: olympix bug-pocerStart new session → name it → pick scope → (optionally) attach documentation → press Enter to submit. Your session is created at submission.

  3. Wait for the validation email (subject: [Action Required] Validate Project Context).

  4. Validate: run olympix bug-pocer again, reopen the session, confirm or correct each inference, then submit.

  5. Wait for the scan-complete email (subject: BugPoCer Initial Scan Complete).

  6. Review findings, record your verdicts, and export results (Markdown / PDF / PoC .sol files).


From your project root:

Available options:

OptionDescription
-w, --workspace-pathRoot project directory path (default: current directory)
-env, --include-dot-envInclude .env file for fork testing secrets (RPC URLs, API keys, etc.)
--env-filePath to a custom .env file (requires -env)
-ext, --extensionAdditional file extensions to include (can be used multiple times)

Running olympix bug-pocer on a project with existing sessions shows the session picker:

  • Start a new session — begin a fresh scan.
  • Return to an active session — continue an in-progress scan.
  • Reconnect to a past session — review results from a completed scan.
KeyAction
/ Navigate sessions
EnterOpen the selected session
nNew session
rRefresh
qQuit
StatusMeaning
ChatStartedSession created, context building in progress
ValidationRequestedWaiting for you to validate project context
ValidationCompletedContext approved, initial scan running
InitialScanCompletedScan finished, findings available for review
QuestionReceivedProcessing a follow-up question
QuestionAnsweredResponse ready

When you start a new session, the CLI displays an interactive scope picker so you can decide which files BugPoCer analyzes. The tree is pre-filtered by the default ignore list (see Scope and ignore config) and by any BugPocerScopePaths / BugPocerIgnorePaths in your olympix-config.json.

KeyAction
EnterExpand/collapse the selected item
iInclude item
xExclude item
SpaceToggle include/exclude
/Search
aExpand all
zCollapse all
hHide/show excluded items
eExclude all
uInclude all
bBrowse more (add items not shown by default)
sSave and continue
EscCancel

In addition to the interactive picker, you can pre-seed scope with a config file at the project root:

{
"BugPocerScopePaths": [
"src/core/",
"src/vaults/vault.sol"
],
"BugPocerIgnorePaths": [
"src/examples/",
"src/mocks/mock.sol"
]
}
OptionDescription
BugPocerScopePathsPositive scoping — if defined, BugPoCer will ONLY consider files whose paths start with one of these entries. Leave empty or omit to consider all files.
BugPocerIgnorePathsPaths to exclude. Any file whose path starts with one of these entries is ignored.

BugPoCer automatically excludes common non-production paths. For Solidity projects, files whose path contains any of the following are always ignored:

node_modules, test, mock, example, dependencies, forge-std, openzeppelin, solmate, solady, prb-math, prb-test, murky, permit2, v3-core, v3-periphery, v2-core, v2-periphery

Rust and Cairo projects use language-specific exclusion sets instead (typical directories like tests, target, vendor, .snfoundry_cache, fixtures, benches, examples).


After you save scope, BugPoCer gives you a chance to attach additional documentation — material that lives outside the repository and wouldn’t otherwise reach the engine.

KeyAction
nAdd free-text notes
lAdd a documentation link (URL)
fLoad a local file (any readable text file — common picks: .md, .sol, .txt)

All attached documentation shares a combined budget of roughly 100,000 tokens; the UI shows how much headroom is left as you add items.

Press Enter to submit. This is the point at which your session is created server-side (ChatStarted) and the BugPoCer Scan Started email fires. If you quit before this step, no session is created.


Once the server has built its understanding of your project, you’ll receive the [Action Required] Validate Project Context email. Reconnect with olympix bug-pocer, open the session, and walk through the items the engine wants you to confirm.

BugPoCer infers eight categories of context:

  • Identity — what the project is (name, type)
  • Intent / Description — what the project does
  • Core Functions — each key piece of functionality (one item per function)
  • Design Goals — each intended design goal (one item per goal)
  • Patterns — architectural and code patterns detected
  • Invariants — properties that must always hold (one item per invariant)
  • Design Decisions — documented intentional behaviors and known limitations (one item per decision)
  • Security Assumptions — trust boundaries and assumptions about external entities

Inferences the engine is already confident about are auto-confirmed and don’t appear in the validation queue. You only see the items the engine is unsure of.

Each validation item shows the engine’s inference, a confidence score, and up to three suggested alternatives.

KeyAction
yConfirm the inference is correct
nReject — then enter a custom replacement
13Pick one of the suggested alternatives
0Enter a custom answer from scratch
eExpand / collapse the alternative options
/ Navigate between items
dDownload the context as Markdown
EnterSubmit all validations (enabled once every item has an answer)

Alongside the per-item TUI, BugPoCer writes the full project context object to your workspace so you can read or edit the whole thing in one place:

FilePurpose
.opix/project-context.jsonThe complete context object — identity, intent, patterns, invariants, security assumptions, etc. Edit this file directly to mutate the context; your edits are picked up next time you open the session.
.opix/.project-context-state.jsonValidation progress for the current request (which items you’ve confirmed, selected alternatives, custom values).

Both files persist across CLI restarts. If you close the CLI mid-validation, the next time you open the session within the 72-hour window you’ll see a “Found existing validation progress (X of Y items validated). Resume?” prompt and pick up exactly where you left off. If you’ve already answered every item, you’ll drop straight into the final review phase before submission.

Once you submit, the session transitions to ValidationCompleted and the initial scan begins. You can close the CLI — the BugPoCer Initial Scan Complete email will tell you when results are ready.


When the scan completes, reopen the session from the picker. You’ll land on a menu:

OptionAction
[0]Display Findings (interactive pager)
[1]Generate and Save PDF Report
[2]Save Findings (Markdown)
[3]Save PoCs (one file per finding)
[4]Back to Sessions

There are two distinct classifications attached to every finding: what the engine thinks, and what you think.

Engine classification — determined by the engine and whether it could machine-verify the exploit:

  • True Positive (TP) — the engine confirmed the bug and its generated PoC compiled and reproduced the exploit.
  • Unverified — the engine flagged the issue but the PoC did not compile (or the Foundry build failed). Exploitability isn’t machine-verified, so these still warrant a human look.
  • False Positive — the PoC compiled but did not reproduce the bug.

User verdict — your own verdict on each finding, displayed beside the engine badge in the pager as VERDICT: TP / VERDICT: NON-TP / VERDICT: — (unset). User verdicts are stored independently of the engine’s classification.

KeyAction
/ Navigate findings / page
/ Previous / next page
EnterExpand / collapse a finding
oView the generated PoC full-screen
yMark as true positive (prompts for an optional reason)
nMark as false positive (prompts for an optional reason)
SpaceCycle user verdict
BackspaceClear user verdict
tToggle TP-only filter
vToggle filter source (engine verdict vs. user verdict)
dDownload currently displayed findings / context as Markdown
bBack to menu
qQuit the findings view

Every export option (the PDF, Markdown, and PoC files exports) walks you through a two-stage filter dialog first.

Stage 1 — finding category (Space toggles, Enter confirms):

  • True Positives (default: on)
  • Unverified (default: on)
  • False Positives (default: off)

Stage 2 — severity (Space toggles, Enter confirms):

  • High (default: on)
  • Medium (default: on)
  • Low (default: on)

At least one category and at least one severity must be selected.

Markdown export — lightweight per-category report

Section titled “Markdown export — lightweight per-category report”

The Markdown export is a stripped-down version, not the full audit report. It’s meant for sharing a filtered list of findings without the full methodology/scope/invariants/assumptions wrapper.

It writes one file per selected category (so you may get up to three files in a single export):

  • true_positives_<sessionId>_<timestamp>.md
  • unverified_<sessionId>_<timestamp>.md
  • false_positives_<sessionId>_<timestamp>.md

Each file contains:

  • A title and scan metadata (session ID, scan start/complete times, report generation time, repository, commit short SHA, branch)
  • Total finding count and a Foundry-build-failure disclaimer if relevant
  • Per-finding blocks ordered by severity, each with the severity badge, vulnerability name, unit name, location, description, your user verdict (if set) with optional reason, and the PoC summary

The PoC code itself is not inlined in the Markdown export — use the PoC export to get the PoCs as standalone files, or use the PDF export for a single document that includes everything. Files are written to your current working directory.

This export produces an audit-style PDF suitable for handing to stakeholders or clients. It’s generated server-side from the same underlying scan data and includes everything the Markdown export leaves out.

The PDF contains:

  • Cover page — Olympix branding, repository org (when available), and the scan’s completed/partial status
  • Table of contents — auto-generated
  • About — methodology, disclaimer (with a Foundry-build-failure note if relevant), and project overview drawn from your validated context
  • Scope — repository, commit short SHA, branch, scanned-unit count, and the list of units analyzed
  • Summary — scan start/complete/generation times, a High/Medium/Low severity table for true positives, a pie chart of TP findings by severity, and severity-level definitions
  • True Positive Findings, grouped by severity, each with vulnerability name, unit, location, description, your user verdict + reason (if set), PoC summary, and the full PoC Solidity code with syntax highlighting
  • Unverified Findings, same structure, for engine-flagged issues whose PoC didn’t compile
  • False Positive Findings, same structure

Saved to your current working directory as BugPoCer_<sessionId>_<timestamp>.pdf.

One file per finding that has a compilable PoC, written under your workspace so you can drop it straight into your test suite. Extension is inferred from the PoC contents: .t.sol for Foundry tests, .rs for Rust / Anchor tests, .cairo for Starknet Foundry tests.


There is no “Ask a question” menu option. To reach the Q&A prompt:

  1. From the post-scan menu, choose Display Findings.

  2. Navigate the findings pager as usual, then exit the pager (press q).

  3. The CLI prints:

    You can ask questions to BugPocer or enter nothing to exit:>
  4. Type your question and press Enter. Press Enter on an empty line to finish.

Example questions:

  • “Explain the reentrancy vulnerability in more detail”
  • “How can I fix the access control issue in Vault.sol?”
  • “Are there any other functions affected by this pattern?”

Questions cycle the session through QuestionReceivedQuestionAnswered.


Each finding in the BugPoCer scan report includes:

  • Description — what the vulnerability is and how it can be exploited
  • Severity — risk level (High, Medium, or Low)
  • Location — affected file and line numbers
  • PoC Test — a ready-to-run Foundry test that reliably triggers the issue
  • Test Location — path to the generated test file
  • Summary — explanation of how the PoC demonstrates the vulnerability

If you encounter any issues or have questions, reach out:

Email: contact@olympix.ai