Khairi M./Software Engineer · Secure AI
Khairi Musa

Khairi Musa

Software Engineer · Kuala Lumpur, MY

Software Engineer at K3 Advisory Group, building an internal AI assistant for confidential work: a Next.js and PostgreSQL application on Azure with Entra ID authentication, row-level security, zero data retention (ZDR) on all model requests, and sandboxed code execution. It connects to Microsoft 365, to a RAG knowledge base on pgvector, and to other internal systems through a headless API.

Before that, I was a consultant at The Access Group UK. I worked directly with client teams and used AI to build fullstack web apps and custom micro frontends that extend the ERP system for their use cases.

Work

2020 - present
Dec 2025 - Present
Software Engineer·K3 Advisory Group

Building an internal AI assistant for confidential work: chat, document workflows, Microsoft 365 tools, and user-defined skills. Stack: Next.js 15 / React 19 on Azure App Service, App Router route handlers as the backend, Vercel AI SDK v6 for the agent loop, PostgreSQL 16 + pgvector through Drizzle, and Azure Blob Storage.

  • Model privacy: each model request forces zero data retention (ZDR) and denies provider data collection. A caller cannot change these settings.
  • Identity and access: Microsoft Entra ID single sign-on with group-based access, app roles for machine clients, and PostgreSQL row-level security that scopes data to its owner.
  • Sandboxed code execution: code that the model writes runs in isolated Azure Container Apps sessions. A server-side policy checks each run, network access is off by default, packages are filtered, and no credentials enter the sandbox.
  • Untrusted content: uploaded files and tool results are data, not instructions, as a defence against prompt injection. Generated HTML is validated against an allowlist and shown in a sandboxed iframe.
  • Hardening: Content Security Policy and HSTS headers, metadata-only audit logs and telemetry, and secret and dependency scans on pull requests.
  • Long-running chat runs that continue on the server after a browser disconnect.
  • Integrations: Microsoft 365, RAG with an automated SharePoint ingestion pipeline, Office document generation, web search, and company data through MCP.
  • APIs for other internal systems: a headless API with an OpenAPI contract, and a usage and cost reporting API for the FinOps team.
  • Per-user usage quotas and LLM evals in CI.
Next.js 15React 19TypeScriptVercel AI SDKMCPPostgreSQLpgvectorDrizzleEntra IDMS GraphAzure App ServiceAzure Container AppsAzure Blob StorageAzure Logic AppsOpenAPI
Dec 2024 - Dec 2025
Dev Services Consultant - Fullstack·The Access Group UK

I worked directly with client teams in the UK and APAC (NZ/AU), from requirements to delivery. I used AI to build fullstack web app integrations that extend the ERP system to new use cases.

  • Custom React + TypeScript micro frontends for specific ERP use cases.
  • .NET Web APIs, webhook integrations, and background services.
  • A React BACS payment-approval app that cut admin effort by 70% across hundreds of ERP databases.
  • £17,850 ARR from billable client work within four months.
Belgian e-Invoicing (Peppol/Ecosio)
ReactTypeScriptMicro FrontendC#.NET Web APIMSSQLCrystal ReportsPeppol
Dec 2022 - Dec 2024
Software Engineer·AirAsia / Capital A

Led blog initiatives at ikhlas.com - lifted user retention by 8% and grew upsell/cross-sell. Migrated the GraphQL pipeline from Contentstack to Stellate's Edge Cache, moved Next.js 12 → 13 with edge-runtime, and automated EZQurban webhook flows that took peak-season manual confirmations to ~0 hours.

Next.jsReactGraphQLHasuraStellateContentstackEdge RuntimeHandlebars
Feb 2022 - Dec 2022
Software Developer·Dex Labs

Built client web and mobile apps on Dex's in-house Bubl React component library. Shipped a bike-fit web app for athletes, integrated SNYK for PCI-DSS on a payment gateway, and led the release of a Unity AR app across all three major stores - cutting APK size 30% by compressing .glb/.gltf assets.

ReactReact NativeNode.jsUnity ARC#PCI-DSSAWS Lambda
Jul 2021 - Feb 2022
Web Application Developer·Appasia Berhad

Modernized yellowpages.my's advertiser dashboard - translated Adobe XD mockups to responsive UI, built modular Angular components for reuse, used SCSS to cut style duplication, and leaned on PHP Laravel for backend and DB migration.

AngularPHPLaravelSCSSMySQL
Jul 2020 - Jul 2021
Junior Software Engineer·Kerry Network Limited

Built responsive interfaces with Angular 8+, used AWS (EC2, Lambda, S3, CloudFront, Redis), and managed Postgres/MSSQL/Oracle DBs.

Kerry WMS v3
AngularAWSPostgreSQLMSSQLOracle

Side Projects

2 entries
PROJECT

Personal portfolio on Next.js 14, deployed to Vercel. Migrated the domain from GoDaddy to Google Domains, cutting subscription cost by 37%.

Next.js 14Vercel
PROJECT
KaruApp · Final Year Project

Peer-to-peer Android rental app - list items, chat with renters, authenticate. Built on Firebase Realtime DB, Firestore, and Firebase Auth.

AndroidFirebase

Stack

2026
AI / Security
OpenRouter, Vercel AI SDK (multi-step tool-calling agent loop), MCP, RAG (pgvector), LLM evals, Langfuse, zero data retention (ZDR), sandboxed code execution, Entra ID (OBO), row-level security
Coding agents
Claude Code, Codex, Pi, OpenCode
Frontend
React, Next.js, TypeScript, Micro Frontends, Angular 8+
Backend
C#, .NET Web API, Node.js, Go, PHP
Data
PostgreSQL, pgvector, Drizzle, MSSQL, MongoDB
Cloud / Infra
AzureAzure servicesApp Service + WebJobsDatabase for PostgreSQL (Flexible Server)Blob StorageContainer Apps dynamic sessionsAI Document IntelligenceMicrosoft Entra ID + managed identityLogic AppsApplication Insights / Azure MonitorAzure Pipelines (Azure DevOps), AWS, GCP, Vercel

Recognition

A couple of nice ones
2017
Mobile Apps Ideation Competition

Universiti Malaya - Software Eng. Innovation Day - 1st place - lead presenter for a student event-management app, pitched to a 4-judge panel.

2019
ICPC · Al-Khawarizmi National Programming Comp.

International Collegiate Programming Contest - Team competition across Klang Valley universities.

Contact

Open to chat