Senior Python Engineer · AI & Security Systems
Building RAG pipelines, LLM tooling, and secure Python backends
- 🤖 Focused on LLMs, RAG, and hybrid search
- 🔐 Passionate about AI security and safe, reliable Python
- 🌍 Open-source contributor to Microsoft PyRIT
Merged contributions to Microsoft's toolkit for red-teaming generative AI systems.
| S No. | PR | Contribution | Impact |
|---|---|---|---|
| 1. | #3702 | Rewrote ShellCommandOutputScorer's destructive-shell regex to run in linear time using atomic groups |
Fixed a ReDoS that blocked the event loop: 29 s → 0.4 ms |
| 2. | #3697 | Applied Git's racy-timestamp rule to the scorer metrics cache | Ended stale GUI metrics and a flaky test |
| 3. | #3770 | Added assert_type regression checks for Registry.get_registry_singleton |
Locks in correct Self return typing |
| 4. | #3830 | Made the MetricsType dispatch in from_csv exhaustive, using match plus assert_never. |
An unhandled new MetricsType now fails type checking instead of silently becoming an objective entry. |
| 5. | #3959 | Swapped asyncio.gather for asyncio.TaskGroup in the Anthropic evals file fetches |
One failed fetch now cancels the rest and surfaces the original error |
| 6. | #3983 | Made runtime shutdown, live apply, evals fetches and scenario error reporting handle every failure in an exception group | Shutdown still cleans up on mixed cancel/error groups, and every failure in a group is now reported |
| 7. | #4038 | Made the scenario queue handoff start a queued run when a retry finds the run already saved as IN_PROGRESS with the start time the scheduler gave it. It now compares start times as datetimes, and cancelling a queued run also cancels an IN_PROGRESS row | Queued scenario runs no longer get stuck IN_PROGRESS with nothing running them after a failed handoff, and cancelling one in that window now works (closes #4036) |
| 8. | #4535 | Added a loader for AI2's WildJailbreak dataset. By default it loads the 2,000 adversarial harmful prompts, and the large training set can be added if you ask for it | PyRIT users can now test models against real-world jailbreak prompts in one call (closes #4511) |
LogBrief — Query application logs in plain English
Hybrid retrieval (FAISS + BM25 + RRF), local LLM answers via llama-cpp-python, Drain3 clustering, stack-trace parsing across 13 languages, and live log tailing.
SkillScope — Job-market intelligence pipeline
Scrapy spiders with polite crawling, NLTK skill extraction, scikit-learn role clustering, a multiprocessing MapReduce counter, served via CLI and FastAPI.
Resume Flow V2 — Two-stage AI CV ranker
Semantic filtering with sentence-transformers plus LLM fit scoring, streamed live over SSE. Ranks ~3,000 CVs in under 6 minutes.
Infant Cry Detection (FYP 2021) — Real-time audio classifier
Trained on 3,370 labeled samples; best model reached 85% real-time accuracy on live 5-second clips.
| Area | Stack |
|---|---|
| AI / ML | LLMs · RAG · Prompt Engineering · FAISS · BM25 · RRF · sentence-transformers · llama-cpp-python · OpenAI API · NLP · Drain3 · scikit-learn |
| Security | Secure SDLC · Code Review · Malicious Code Detection · JWT · RBAC · Rate Limiting |
| Languages | Python · Go · JavaScript |
| Backend | Django REST Framework · Django · Flask · FastAPI · Celery |
| Data | PostgreSQL · MySQL · pandas |
| DevOps | Linux · Docker · AWS S3 · CI/CD · Git |
| Other | CLI Tools · Python Libraries |
B.E. Computer Engineering · Bahria University, Karachi · 2021
⭐ Open to collaborating on AI security, RAG, and open-source Python.
