AIO Apex
en
PUBLIC WORK / PRIMARY SOURCES
RESEARCH / OPEN SOURCE / SOFTWARE ENGINEERING

Engineering you can inspect.

AIO Apex is a public home for AI security research, inference infrastructure and open-source engineering by MO. Findings, code and contributions are linked to the original sources.

BUILT IN PUBLIC. | Reproducible benchmarks where available
ATTRIBUTED CLEARLY. | Clear distinction between research and upstream acceptance
AIO APEX / SYSTEM MAP 001
01 / DETECTPrompt Guard 2
Calibrated head
02 / DECIDECache policy
NLI entailment
03 / ROUTEKV-aware admission
TokenFlow
04 / CONTRIBUTEUpstream PRs
Public review
14Merged upstream pull requestsSIX EXTERNAL CODEBASES
99.9%Held-out injection recallHACKAPROMPT HOLD-OUT · 0.7% FPR · FROZEN PG2 HEAD
0.983Semantic cache F1959 ADVERSARIAL PAIRS
30,618Gateway cache-hit req/sBARE METAL / MOCK BACKENDS
Numbers reflect documented benchmark configurations, not independent certification or production throughput. Follow the project sources for methods and limitations.
ORIGINAL RESEARCH & ENGINEERING

Start with the work.

Public records, each with a concrete technical problem and an accessible primary source. Experimental performance is labelled as experimental; upstream proposals are not described as merged.

All public repositories ↗
01 / AI SECURITYOPEN SOURCEUPSTREAM PR OPEN

Prompt Guard 2: closing the injection-recall gap

A linear head trained on Prompt Guard 2's frozen embeddings caught 99.9% of held-out HackAPrompt injections at 0.7% false positives on benign prompts, and 59.6% on deepset's test split. The native classifier caught 22.8% of deepset's injections: a different test set, so this is not a before-and-after comparison.

99.9% held-out injection recall · 0.7% FPR
HACKAPROMPT + DOLLY HOLD-OUT · DIFFERENT TEST SET FROM THE 22.8% BASELINE · META PR #263 IS NOT MERGED
02 / LLM CACHINGPUBLIC TECHNICAL REPORT

Semantic Cache Policy Engine

Decides whether a cached answer is safe to reuse for a reworded prompt. A fast embedding stage retrieves candidates; bidirectional NLI checks whether their meaning is compatible, including negation and contradiction.

0.983 F1 · 0.972 precision / 0.994 recall
TWO-STAGE EVALUATION (PRE-FILTER OFF) · 959 ADVERSARIAL PAIRS · 0 FALSE APPROVALS ON 220 NEGATION TRAPS · NO PRODUCTION VALIDATION
03 / LLM INFRASTRUCTUREOPEN SOURCE

TokenFlow Gateway

A token-aware LLM gateway that admits requests against GPU KV-cache capacity instead of counting connections. Redis-backed reservations, queueing and routing prevent over-admission across workers.

30,618 cache-hit requests / second
GATEWAY-ONLY BENCHMARK · AMD EPYC · MOCK INFERENCE BACKENDS · NOT GPU GENERATION THROUGHPUT
04 / SECURITY DISCLOSUREVENDOR ADVISORY

Traefik ForwardAuth identity leakage

Reported a connection-pool issue that could transfer connection-bound NTLM/Negotiate authentication identity across clients. Traefik's published security advisory credits mosafariuk as the reporter.

7.0 CVSS v4 · HIGH severity
PUBLIC ADVISORY GHSA-hrpp-p4fc-wwf8 · SOURCE: VENDOR REPORTER CREDIT
EXTERNAL VALIDATION / MERGED CODE
14↗
MERGED PULL REQUESTS
ACROSS 6 OPEN-SOURCE PROJECTS

Reviewed outside my own repositories.

Open-source projects provide a different kind of signal: maintainers reviewed code, requested changes and merged it into software used beyond AIO Apex. These links lead directly to the individual GitHub pull requests.

vLLM

02 PRs

INFERENCE / DISTRIBUTED KERNELS

promptfoo

04 PRs

AI EVALUATION / RED TEAMING

PostHog

04 PRs

PYTHON AI OBSERVABILITY

Langfuse

01 PR

PYTHON TRACING / LANGCHAIN

Meridian Labs

02 PRs

INSPECT AI VIEWER / TOKEN USAGE

Inspect AI

01 PR

LLM EVALUATION / TOKEN LIMITS & COST

Verified upstream PRs

The 14 linked GitHub pull requests were recorded as merged by 22 November 2026. A consolidated acknowledgement or an upstream issue is not counted as an additional merged pull request. The separate Meta/PurpleLlama #263 proposal remains open.
SECURITY RESEARCH / COORDINATED DISCLOSURE

Public findings. Clear attribution.

Security research appears only after public disclosure. Non-public investigations, pending reports and embargoed vulnerabilities are deliberately absent.

HIGH · CVSS v4 7.0

Connection-bound authentication and shared connection pools

The Traefik ForwardAuth advisory documents how an authentication request using a connection-bound scheme could reuse identity associated with another client. The vendor lists mosafariuk as the reporter.

Inspect the vendor record ↗
SOURCE FIRST

The proof is the vendor record, not this website.

Publication dates, severity and credit come from the advisory. Product security should be assessed from the full disclosure and current vendor guidance.

REPORTER CREDIT / PRIMARY SOURCE ↗
PROJECTS / COMMUNITY

Useful tools. Shared knowledge.

AIO Apex is public-facing too. Open-source engineering leads; practical products and Persian-language AI education remain part of the story.

SELECTED LIVE PRODUCTS

Built for everyday use

Two examples of public-facing products, kept deliberately separate from the research and upstream contribution record.

AI PLUS / PERSIAN-LANGUAGE COMMUNITY

Technical ideas, explained accessibly

AI Plus shares practical learning about AI tools, model security, prompt caching and the systems behind modern AI. The community has a direct link rather than an unsupported audience claim.

PERSON BEHIND THE WORK

MO

SOFTWARE ARCHITECT · AI SECURITY RESEARCHER · OPEN-SOURCE CONTRIBUTOR · UK

Software engineer and technical leader working across payment systems, distributed infrastructure and AI security. AIO Apex brings together my public research, tools and upstream contributions. Where work was completed as part of an employer's team, I distinguish my individual role from the organisation's achievements.

Public repositories and third-party PRs are linked directly. Private employer systems, customer data and unpublished disclosures are not published here.