Skip to content
View Pyhroff's full-sized avatar

Highlights

  • Pro

Organizations

@zka19-team

Block or report Pyhroff

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Pyhroff/README.md

Praising Harris Ratnam

AI Systems Security Researcher & Runtime Defense Engineer

B.Tech CSE (Cybersecurity), IIIT Kottayam Β· Target: AI Systems / Security / Agent Engineering Internship

GitHub Profile Security Advisories Latest Research Release LinkedIn Email


πŸ›‘οΈ Core Focus & Research

AI Systems Security Researcher & Runtime Defense Engineer building formal verification provers, spectral weight forensics, and runtime defense proxies for autonomous agent architectures and large-scale model serving infrastructure. Active contributor to open-source AI infrastructure (LiteLLM, FastMCP, CrewAI).


πŸ›‘οΈ Featured AI Systems Security & Agent Tooling

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚                 AISEC-SUITE v2.2 (5-PLANE ARCHITECTURE)                    β”‚
  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  β”‚ Plane 1: Formal Tool Graphs        β”‚ Plane 2: Weight Spectral Forensics    β”‚
  β”‚ specprove-sec (Z3 SMT + Lean 4)    β”‚ weightspecter v2.0 (RMT + SVD Exise)  β”‚
  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  β”‚ Plane 3: Verifiable Inference      β”‚ Plane 4: Activation Refusal Firewall  β”‚
  β”‚ attestinfer v2.0 (Freivalds P≀2⁻¹⁢)β”‚ circuitshield v2.0 (SAE + Kalman)     β”‚
  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
  β”‚ Plane 5: Network Side-Channel Defense + Red-vs-Blue Wargame Arena          β”‚
  β”‚ tokenspecter v2.0 (Viterbi HMM + Ring Buffer Shaper: MI 1.985 β†’ 0.000 bits)β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  • aisec-suite v2.2 (12 Modules across 5 Mathematical Planes Β· 99/99 Tests Β· 4 SLSA-Signed PyPI Packages)
    Unified AI security suite, live Guard Proxy (aisec guard-proxy), and autonomous Red-vs-Blue Wargame Arena (aisec wargame) combining specprove-sec (Z3 SMT + Lean 4 non-interference certificates), weightspecter (Marchenko-Pastur RMT & BBP rank-1 backdoor excision), attestinfer (16-round Rademacher Freivalds matmul prover + Wald $z$-test speculative decoding audit), circuitshield (SAE monosemantic feature disentanglement + 2D Kalman Crescendo trajectory forecaster), tokenspecter (Viterbi HMM + Ring-Buffer token pacer), plus mcpaudit, memsentry, ragsentry, and trainsentry.
  • PromptStrike
    Automated adversarial red-teaming CLI for LLMs β€” PAIR/TAP/Crescendo/GCG jailbreak algorithms, live WebSocket dashboard, multi-model sweep comparison, and CI/CD safety gate.
  • ModelHawk
    Static opcode-stream analyzer detecting code-execution backdoors (pickle-deserialization RCE) in PyTorch/pickle ML model files without loading weights.
  • loopcheck & OSIRIS
    Zero-instrumentation waste auditor for agent loops (115 tests, on PyPI) and model-agnostic 8-provider agent runtime with automatic failover and profiled 10Γ— local-model latency fix (100 tests).

βš›οΈ Standalone Research: Quantum Machine Learning, Verifiable Compilation, QEC & Post-Quantum Cryptography

  • Q-MIND: Autonomous Quantum ML & Verifiable Fault-Tolerant Circuit Compilation Engine (20 SQLite Empirical DBs Β· 5,060 Verified Trials Β· 172 Passing Tests Β· 27 300-DPI Figures)
    Standalone empirical research framework investigating Fault-Tolerant Quantum Compilation, Variational Quantum Circuits, Riemannian geometry, and NISQ hardware noise:
    • Verifiable Fault-Tolerant Quantum Circuit Compilation (Kickmix Engine): Multi-pass compiler combining Gidney Measurement-Based Uncomputation ($4T$ compute / $0T$ uncompute), Low-Chuang SelectSwap QROM synthesis ($\lambda = 2^k$), and phase-polynomial fusion with a 64-bit SIMD bit-parallel Kickmix equivalence fuzz verifier ($486\text{M}$ gate-states/s, $100%$ pass rate), reducing fault-tolerant $T$-count by 58.5% and Toffoli count by 48.7% across Fusion Energy ($1/\sqrt{x}$ stopping power), Decoded Quantum Interferometry ($\mathrm{GF}(2^m)$ Berlekamp-Massey decoder), and FeMoCo Quantum Chemistry (DF-QROM).
    • Fubini-Study Quantum Natural Gradient (QNG): Pullback metric tensor $g_{ij}(\theta) = \text{Re}[\langle \partial_i \psi | \partial_j \psi \rangle - \langle \partial_i \psi | \psi \rangle \langle \psi | \partial_j \psi \rangle]$ converges in 15 steps vs 80+ for Euclidean Adam (5.3Γ— speedup) and escapes 8-qubit barren plateaus ($p = 0.0079$).
    • Barren Plateau Scaling & Mitigation: Verified McClean et al. exponential gradient decay from $N=4 \to 12$ qubits (slope $-0.822\text{ bits/qubit}, R^2 = 0.9968$) and restored 13.6Γ— gradient variance via Grant et al. identity-block + layerwise pretraining (94.19% loss reduction).
    • Tri-Mitigation Pipeline (REM + Richardson ZNE + Clifford Data Regression): Suppresses NISQ depolarizing + readout errors by 31.0% across $p \in [0.005, 0.05]$.
    • Honest Quantum-vs-Classical Boundary: Classical RBF-SVM beats VQC on 4D tabular data (96.0% vs 91.3%) due to $\mathcal{O}(1/\sqrt{S})$ shot noise, while Quantum Kernel SVM, QCNN, and $S_N$-Equivariant QGNN reach 99.33% and 100% on 8-qubit Transverse-Field Ising (TFIM) and $\mathbb{Z}_2 \times \mathbb{Z}_2$ SPT quantum phases.
  • QEC Lab & pqc-scanner
    Rotated surface-code simulator (Stim + PyMatching v2 reproducing the $p \approx 1%$ threshold and lattice surgery) and NIST FIPS 203/204/205 post-quantum cryptography static migration analyzer.

πŸ”¬ Engineering Philosophy

$$\text{Threat / Physical Model} \longrightarrow \text{Formal / Spectral Analysis} \longrightarrow \text{Empirical Harness} \longrightarrow \text{Regression Test} \longrightarrow \text{Upstream Patch}$$

  • Defense-in-Depth: I evaluate systems assuming the model layer is inherently untrusted. Security boundaries must live in the host process, AST/Z3 verifier, spectral weight auditor, and kernel/sandbox isolation layer.
  • Empirical Rigor: Report exact $p$-values, confidence intervals, and honest negative results backed by reproducible SQLite telemetry.

πŸ› οΈ Technical Arsenal

  • Languages: Python (Advanced AST/Asyncio/SciPy), Go, C/C++, Rust, TypeScript, SQL, Bash
  • AI Infrastructure & Security: LiteLLM, CrewAI, FastMCP, LangGraph, Z3 SMT Prover, Lean 4, Marchenko-Pastur RMT, Sparse Autoencoders (SAE), SARIF, OpenTelemetry, MITRE ATT&CK & ATLAS
  • Quantum Computing & Cryptography: PennyLane, Qiskit, Stim, PyMatching v2, Fubini-Study QNG, ZNE/CDR/REM Error Mitigation, NIST FIPS 203/204/205 (ML-KEM, ML-DSA, SLH-DSA), Schnorr ZKP
  • Cloud & Databases: AWS, GCP, Docker, Redis, PostgreSQL, SQLite, Neo4j

πŸ›‘οΈ Selected Upstream Security Contributions & Open PRs

Authored upstream security advisories, vulnerability disclosures, and runtime defense patches across production AI infrastructure (LiteLLM, FastMCP, CrewAI):

Project PR / Advisory Focus / Impact Status
LiteLLM PR #47105 BOLA Access Control Bypass with empty models list (CVSS 7.5) Open (CI Passed)
LiteLLM PR #47119 Fail-Open Prevention: Reject calls on unconfigured DB (CVSS 7.5) Open (Tested)
LiteLLM PR #46916 Budget reset & tier escalation prevention on key update (CVSS 6.5) Open (Tested)
LiteLLM PR #47107 Dual support & deduplication for model_names / model_ids Open (CI Passed)
FastMCP PR #5786 SSRF error handling in validate_url to stop 500 crashes Open
FastMCP ADV-2026-002 Async Monty sandbox boundary analysis & callback decoupling Audited
CrewAI PR #8240 Native MCP pagination cursor handling (nextCursor) Open
CrewAI PR #8244 Percent-encoded password decoding in REDIS_URL Open

Full list of 20+ upstream advisories & patches available at security-advisories.


πŸ“¬ Connect With Me

Pinned Loading

  1. aisec-suite aisec-suite Public

    Run static security scanners over AI-agent projects: MCP servers, agent memory files and RAG documents. SARIF output, baselines and reachability analysis.

    Python

  2. mcp-scan-study mcp-scan-study Public

    Empirical study of 135 public MCP-server repos: hand-labelled scanner findings with confidence intervals, and a measured false-positive reduction.

    Python

  3. soc-parallax soc-parallax Public

    SOC detection platform: attributable risk scores, MITRE ATT&CK rulebook, incident correlation in Neo4j, evidence-checked narratives. FastAPI, PostgreSQL, Next.js.

    Python 1

  4. ModelHawk ModelHawk Public

    Static scanner that detects code-execution backdoors in PyTorch/pickle ML model files (pickle-deserialization RCE), with an offensive demo generator. Python, stdlib-only.

    Python 1

  5. promptstrike promptstrike Public

    Automated adversarial red-teaming CLI for LLMs β€” PAIR/TAP/Crescendo jailbreak algorithms, live dashboard, multi-model sweep comparison, CI/CD safety gate

    Python 1