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


πŸ›‘οΈ Verified Vulnerability Disclosures & Upstream Contributions (20+ Patches & Advisories)

Authored upstream security advisories, vulnerability patches, and runtime defense fixes across production AI infrastructure (BerriAI/litellm, PrefectHQ/fastmcp, crewAIInc/crewAI):

Project Pull Request / Advisory Severity / Impact Target Component Status
LiteLLM PR #47105 CVSS 7.5 (High) BOLA Access Control Bypass with Empty Models List (auth_checks.py) Open (CI Passed)
LiteLLM PR #47119 CVSS 7.5 (High) Fail-Open Prevention: Reject Unauthorized Calls on Unconfigured DB (user_api_key_auth.py) Tested & Synced
LiteLLM PR #46916 CVSS 6.5 (Med) Budget Reset & Tier Escalation Prevention on Key Update (key_management_endpoints.py) Tested & Synced
LiteLLM PR #47005 Medium Pre-Validate Model Deployments & Atomic Rollback in /tag/new (tag_management_endpoints.py) Tested & Synced
LiteLLM PR #46913 CVSS 5.3 (Med) Restrict Outbound MCP Debug Headers & Upstream Auth to Proxy Admins Tested & Synced
LiteLLM PR #46912 CVSS 4.3 (Med) Restrict MCP Access Group Enumeration to Caller-Authorized Servers Tested & Synced
LiteLLM PR #46664 Medium BYOK Per-Request Authorization Header Propagation in MCP tools/list Tested & Synced
LiteLLM PR #47011 Medium Structured 403 License Error vs 500 Crash on Non-Enterprise Spend Routes Tested & Synced
LiteLLM PR #46847 Medium RFC 7230/9110 Case-Insensitive Header Lookup for Extra Spend Tracking Tags Tested & Synced
LiteLLM PR #47258 Low Provider service_tier Metric Propagation onto ModelResponse Tested & Synced
LiteLLM PR #47107 Medium Dual Support & Deduplication for model_names and model_ids in Access Groups Open (CI Passed)
LiteLLM PR #47106 Medium Exclude budget_id from Entity Updates to Prevent Duplicate Kwarg Crash Open (CI Passed)
LiteLLM PR #47097 Medium Router Image Generation Failure Callback Dispatching (Langfuse, OTel) Open (CI Passed)
LiteLLM PR #47091 Low Cohere Chat Completion String Stop Sequence Normalization Open (CI Passed)
FastMCP PR #5786 Medium Converted Malformed Port ValueError to SSRFError in validate_url to Stop 500 Crashes Open
FastMCP PYHROFF-ADV-2026-002 CVSS 5.3 (Med) Async Monty Sandbox Boundary Analysis & Host-Side Callback Decoupling Audited
CrewAI PR #8245 Medium Universal Newline Preservation Across Unicode Line Breaks in Tool Artifacts Open
CrewAI PR #8244 Medium Decoded Percent-Encoded Passwords in REDIS_URL for A2A Cache Open
CrewAI PR #8243 Medium Restored Configured Logger Levels & Preserved NOTSET Hierarchy on Errors Open
CrewAI PR #8242 Medium Preserved Upstream Dependent Task Context During Guardrail Retry Loops Open
CrewAI PR #8240 Medium Native MCP Pagination Cursor Handling (nextCursor / next_cursor) Open

Note: Upstream pull requests across BerriAI/litellm, PrefectHQ/fastmcp, and crewAIInc/crewAI are currently active and open pending maintainer merge, with all automated test suites and CI checks passing.


πŸ›‘οΈ 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

πŸ“¬ 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