I'm Mehdi, a CS graduate from FAST NUCES Karachi working on AI security. Most of my time goes into runtime guardrails for LLM agents. That means stopping prompt injection, keeping tool calls inside policy and making sure every model request can be traced back to whoever sent it. Lately I've also been looking at attacks that hide in places a text filter never sees, like code-mixed prompts and words written inside images.
I finished my degree in eight semesters with a 3.85 CGPA, four gold medals and four spots on the Rector's list.
- Working on: guardrails, policy engines and LLM routing for production agents
- Researching: multilingual jailbreak detection, typographic attacks on vision-language models and AI coding assistant governance
- Leading: IEEE FAST NUCES student branch as President (2025 to 2026)
- Teaching: TA for Computer Networks, Theory of Automata, Discrete Structures and COAL
- Open to: research collaborations in LLM security and AI safety
| Project | What it does | Built with |
|---|---|---|
| LangCode 2027 Task 2 | Flags unsafe prompts written in code-mixed and transliterated text across 10 scripts, for the NAACL 2027 LangCode shared task. A logistic probe on the frozen hidden states of Qwen3-8B lifts the Safety Score from 44.55 (zero-shot) to 79.03, with no fine-tuning. | Qwen3-8B, PyTorch, Transformers, scikit-learn, Kaggle |
| PixelGuard | A controlled study of text written inside images. It asks whether blur, JPEG and OCR inpainting protect vision-language models against false labels as well as they do against injected commands, and what those defences cost. | Qwen3-VL, SmolVLM, OpenCV, COCO, TextVQA |
| SecureSphere-LLM | Security middleware between VS Code and AI coding assistants. It catches prompt injection, jailbreaks and leaked secrets, redacts PII and logs every request. Final year project, nominated for Best FYP. | Node.js, NeMo Guardrails, Presidio, FastAPI, React |
| JComit | Private finance agent for the Nebius x NVIDIA hackathon. It redacts your statements locally and runs Nemotron inside a sandbox that can reach nothing else. | Python, NVIDIA Nemotron, OpenShell, Docker |
| Hybrid Job Recommender | Two tower retrieval, LambdaMART ranking, then an LLM that reorders the shortlist and explains each match. | PyTorch, FAISS, XGBoost, Llama 3.1, FastAPI, Next.js |
| PathoChat 2.0 | Pathology assistant that answers only from its textbooks and says "I don't know" otherwise. Later rebuilt as an n8n agent. | LangChain, Mistral-7B, FAISS, n8n, Pinecone |
| Fingerprint Matcher | Identifies a person from a phone photo of their thumb, with a Kotlin Android app. | U²-Net, OpenCV SIFT, Flask, PostgreSQL, Kotlin |
| AQI Predictor | Forecasts Karachi's air quality 72 hours ahead, with hourly features and daily retraining on Actions. | scikit-learn, Hopsworks, GitHub Actions, SHAP |
| BotTax and US TaxPatriot | Voice enabled GPT-4 tax assistants that cite the document and page behind each answer. | GPT-4, LangChain, Pinecone, Streamlit |
- Script-invariant intent probing: our LangCode 2027 Task 2 entry on multilingual adversarial prompt detection. A probe on layer 24 of a frozen Qwen3-8B reaches 79.03 on the dev set. Paper due February 2027.
- Typographic context vs instruction: do cheap image defences protect VLMs against both? It covers 200 COCO images, three open VLMs, six defences and an attacker who knows the defence. Draft due 28 November 2026.
- SecureSphere-LLM: an identity aware interception proxy with programmable guardrails for AI coding assistants. It blocks 31 of 31 attack prompts at a 66 ms median. Targeting the NAACL 2027 LangCode workshop.
- NexusHire: a candidate side decision support layer over a five stage job recommendation cascade covering 123K postings. Targeting ACM RecSys 2027.
- Four time gold medalist at FAST NUCES, Rector's list four times, Dean's list three times
- Top 5 teams at the AgentX Hackathon (Astera Software, California)
- Nebius x NVIDIA Global AI Hackathon 2026 entry with JComit
- Special honour in the International Computer Science Competition 2026 qualifier
- Perfect 50 out of 50 on the Data Structures and Algorithms final
- Stanford Supervised Machine Learning (99.66%) and DeepLearning.AI CNNs (98.87%)
AI and LLM security
Machine learning
Languages, web, data and cloud


