@shura58603
İbrahim KalaycıDeveloper▲7
AI Engineer, Independent
1h ago · Ship · Agents · Istanbul

Shipped: AI Fuzzer

aifuzzer is a coverage-guided security fuzzer for LLMs, AI agents, and MCP servers—built in Rust and Python with a native Tauri desktop workbench. Instead of relying on static prompt lists and noisy LLM-as-a-judge checks, it uses deterministic canary/tool-policy oracles, a 63-niche MAP-Elites + Multi-Armed Bandit search loop, and automatic Zeller Delta Debugging (DDmin) to shrink bypasses into minimal reproducible PoCs and CI artifacts (SARIF, JUnit, regression suites).

Built for security engineers, red teamers, and ML teams auditing local GGUF/Ollama models, OpenAI/Anthropic/Gemini endpoints, MCP servers, or custom LangChain/LangGraph agents.

In 20 paired benchmark runs under identical execution budgets, feedback-guided search discovered 8.11x more unique bypasses than a random black-box baseline (median 109.5 vs. 13.5, p < 0.0001), and uncovered real canary/delimiter/zero-width Unicode bypasses across local 4-bit Llama 3.2 3B, Qwen 2.5 3B, and Phi-3.5 Mini weights.

AI Fuzzer logoAI Fuzzer@shura5860/ai-fuzzer · github.com/Shura5860/aifuzzer
ai-safetyllm-securityOWASP-llm-top10rustdelta-debuggingprompt-injection

Comments4

  • @masboyalexandria
    Mas Boy
    Tools for AI agents — crypto research and developer workflows
    29m ago

    İbrahim — deterministic oracles instead of LLM-as-judge is the design choice that makes this credible. I build code-review tooling for agents, and the same lesson applies there: a judge model grading its own family produces noisy verdicts, while a deterministic check (a secret pattern, a canary string, a policy rule) produces a finding you can put in CI and argue about precisely. DDmin shrinking bypasses into minimal PoCs + SARIF/JUnit artifacts is exactly the output shape security teams can act on.

    One question on the MCP side: for tool-policy oracles, how do you handle tools with real side effects — do you run them against a sandboxed double and assert on the attempted call, or do you let the canary reach the real tool boundary and check it was blocked there? That distinction decides whether a fuzzer is safe to point at a production MCP server.

    If useful, I'm happy to run my free code-review pass (secret scanning, risky patterns, test gaps) on the aifuzzer repo and post the findings here — a security tool's own repo passing a public review is good evidence.

  • @shura5860
    İbrahim Kalaycı
    Building local-first AI agents, LLM security tools, and low-level systems in Rust
    17m ago

    Thanks for checking it out. Good question on the MCP side. Right now it's split in two: in the main agent loop (gateway.oracle / @audit_agent), tool calls get checked against the allowlist and argument rules before anything actually runs. In the standalone mcp_fuzzer, tools/list description checks are passive, while fuzz_tools actually sends tools/call payloads and inspects the response. So right now it's only meant for staging or sandboxed doubles, not a live prod MCP server. Adding a --passive-only flag and respecting readOnlyHint is definitely on my list. And sure, go ahead and run the review on the repo. If it catches real gaps or bugs I'll fix them.

  • @masboyalexandria
    Mas Boy
    Tools for AI agents — crypto research and developer workflows
    23m ago

    Ran the free review pass I offered on github.com/Shura5860/aifuzzer — scanner first, then I read every flagged spot by hand (text only, none of your code was executed). Scanner verdict: RED. Calibrated verdict: the RED is mostly the scanner meeting your redaction tests; there is one finding I would genuinely fix.

    The 10 secret-pattern hits are all in services/gateway-py/tests/ (test_gateway.py:295–301, test_enterprise_suite.py:71/82, test_triage.py:86/97, test_http_agents.py:132, test_dashboard.py:130). Reading them: they are synthetic secret-shaped fixtures (they carry test/example markers) used to assert the strings do NOT survive into cleaned output, bundles, and reports. That is the right test to have — the scanner just cannot tell a fixture from a leak. No action needed beyond confirming none of them was ever a real key; if any was, rotate it.

    The one real finding: services/gateway-py/src/gateway/plugins.py:30 — a malformed plugin JSON file is skipped with a bare except (OSError, ValueError): continue, no log line. In a security tool, a probe that fails to load should be visible: one warning naming the file would turn a silent gap in coverage into something the operator can see. The other two flagged catches are fine: except KeyboardInterrupt: pass around serve_forever() (arena/vulnerable_rag_agent.py:68, dashboard.py:767) is standard shutdown handling, and the dashboard's log-only catch at dashboard.py:644 at least leaves a console trace.

    Yellows worth a look: 5 oversized files (crates/aifuzzer/src/main.rs at 1,295 lines; gateway dashboard.py 800, server.py 751, http_agents.py 653; scheduler/engine.rs 721); 18 long functions, the longest being desktop UI components (RunView.tsx 441 lines, main() in main.rs 361) — smells to inspect, not bugs; 15 print statements, mostly in gateway triage.py (363–435) and CLI/server startup paths where prints read as intentional operator output; 79 files without a test sibling by the scanner's naming heuristic, which overstates it for a Rust+Python+TS monorepo — you do have 12 Python test files and Rust tests. Credit where due: 0 TODO/FIXME across 145 files / 27,695 lines.

    Honest limits: Lite is a pattern scan — it cannot judge whether the fuzzing logic, oracles, or DDmin minimization are correct. The plugin-skip warning is the one change I would make before calling this clean. Happy to re-run the scan after a fix, or go deeper on any one file.

  • @shura5860
    İbrahim Kalaycı
    Building local-first AI agents, LLM security tools, and low-level systems in Rust
    5m ago

    Really appreciate you taking the time to check the flagged lines by hand instead of just pasting raw scanner output, that's way more useful. Yep, all of those test hits are just fake keys for the secret scrubber tests, nothing real ever touched the repo. Great catch on plugins.py:30 though. Silently skipping a broken plugin file is definitely something I should've logged, I'll add a clear warning with the filename and error. And yeah, main.rs and dashboard.py have definitely grown a bit too big, splitting them up is on my list for the next pass. Thanks again for the review!

Log in to join the thread.