Sarthak Kalpasi

Software engineer · B.Tech ECE, IIIT-Delhi

I'm a software engineer who likes working close to the system. At Ameeba I run the cloud infrastructure behind an end-to-end encrypted chat and workspace app, and I built its on-device AI agent, which runs quantized models locally so user data stays on the user's machine.

I studied Electronics and Communication Engineering at IIIT-Delhi, where the courses I enjoyed most sat at the boundary between hardware and software. My B.Tech thesis was on Android side channels. I'm most interested in operating systems, computer architecture, embedded systems, high-performance computing and systems security.

Experience

  1. Oct 2025 – now

    Software Engineer, Ameeba Labs, Sunnyvale, CA (Remote)

    I run the cloud infrastructure behind Ameeba's encrypted chat and workspace, and built its on-device AI agent.

    • Built the production Kubernetes cluster on AWS EKS from scratch (autoscaling, ALB ingress with sticky sessions for Socket.IO) and the GitHub Actions → ECR → EKS deploy pipeline that replaced manual deploys.
    • Built a browser terminal service that runs one Docker container per user with CPU and memory limits, provisioned with Terraform (VPC, private EC2, EFS, ALB, SSM).
    • Audited the AWS account, closed the gaps the audit found, and turned on CloudTrail and GuardDuty.
    • Cut the monthly AWS bill by about 39% by removing idle servers, volumes, databases, load balancers and NAT gateways.
    • Upgraded production MySQL from 8.0 to 8.4 through RDS Blue/Green with 38 s of write downtime, and set up automated backups for MongoDB, servers and S3.
    • Set up Prometheus, Grafana, Loki and Alertmanager, and traced production incidents to their cause, such as API restarts from slow queries blocking the Node.js event loop.
    • Built an on-device agent on llama.cpp. Grammar-constrained decoding (GBNF) raised 7B tool-call accuracy from 70% to 98%, sizing the context from the model's trained length and the available VRAM fixed a starved context window, and map-reduce chunking runs 128k-token inputs in 8 GB of VRAM.
    • Fixed undecryptable messages in end-to-end encrypted chats across Android, web and iOS (chat keys sealed for each of a person's devices, key backup under the recovery code) and wrote the spec the iOS developer implements.
  2. Sep – Nov 2024

    Backend Developer Intern, Selfless Sewa NGO, Delhi

    Backend work and volunteering for an NGO.

    • Integrated the PhonePe payment gateway and automated the reconciliation of 1,000+ transactions a month.
    • Made CI releases about 3× faster with parallel pipeline stages and dependency caching.

Research

  1. 2023 – 2025

    B.Tech thesis, Networking and Security Lab, IIIT-Delhi

    Deep Learning based User Behavior Prediction by Exploiting Android Side-channel Vulnerabilities. Advisor: Dr. Sambuddho Chakravarty.

    • The threat model is an app with no special permissions and no root that reads OS statistics any app can access and works out what the user is doing in other apps.
    • Year one: system-wide traffic capture and eBPF tracing of system calls on Android kernels. The traces carried no usable signal, so we moved to OS statistics.
    • Year two: I built the data-collection framework (an Android NDK and Kotlin app, automated with ADB and UI Automator) across 4 phones, 10 apps and 35 actions, extending EavesDroid's 17 actions in 4 apps.
    • On a phone the model had never seen, it reached 75.8% accuracy, against 20.9% for the EavesDroid authors' model.
  2. Apr – Jul 2023

    Summer Research Intern, Networking and Security Lab, IIIT-Delhi

    Testbed work for a blockchain e-voting research system.

    • Set up and ran a 30-node private Ethereum network on Geth as a performance testbed.
    • Wrote a Bash JSON-RPC benchmarking tool and tuned the node configuration, raising throughput 6×.

Education

  1. 2021 – 2025

    B.Tech in Electronics and Communication Engineering, IIIT-Delhi

    Thesis in the Networking and Security Lab (above). In Networks and Systems Security, a graduate-level course, I was the only non-CS student and finished among the top five.

    Systems and programming: Operating Systems, Computer Networks, Networks and Systems Security, Advanced Programming, Data Structures and Algorithms, Competitive Programming

    Hardware: Computer Architecture, Computer Organisation, Embedded Logic Design, Digital Circuits, Basic Electronics, Integrated Electronics, Circuit Theory and Devices

    Communications and signals: Wireless Networks, Mobile Computing, Mobile Communication, Principles of Communication Systems, Radar Systems, Signals and Systems, Fields and Waves

    Machine learning and maths: Machine Learning, Statistical Machine Learning, Convex Optimization, Probability and Statistics

  2. 2021

    Senior secondary, physics, chemistry, maths and computer science, Shaheed Rajpal DAV Public School, Delhi

    Wrote all the code for the school's competition robot in the IRC League.

  3. 2025

    Self-Driving Cars Specialization, University of Toronto (Coursera)

    Four courses: introduction to self-driving cars, state estimation and localization, visual perception, motion planning.

Projects

  1. 2025 – now

    BitChess, a multithreaded chess engine in C

    About 2,300 lines of C with bitboards, magic move generation, alpha-beta search, a lock-free hash table and Lazy SMP. Search speed goes from 2.1M nodes/s on one thread to 15.7M on eight, and four threads gain +247 Elo over one.

  2. 2022 – now

    Self-hosted infrastructure

    Photos, Git, passwords, files, calendar and media on my own hardware, behind an Nginx reverse proxy, with Tailscale and WireGuard for private access and mutual TLS on sensitive services. This site runs on my own VPS.

  3. 2026

    GNSS satellite tracker

    A dependency-free C program that decodes a USB GNSS receiver's NMEA output and shows every satellite it can hear across six constellations, including NavIC.

  4. 2026

    Load testing a self-built Kubernetes cluster

    Two k3s nodes as libvirt VMs, a CPU-bound Go service behind a horizontal pod autoscaler, and k6 from a second machine. It topped out at 93 requests per second with zero errors.

  5. 2026

    How nginx keeps an upload alive while the backend is down

    proxy_request_buffering traced from the nginx config down to TCP, with a demo that kills the backend halfway through a 500 MB upload.

  6. 2025 – 2026

    AirLink, a phone as a Linux webcam and mic

    A Rust server and a Kotlin Android app that stream the phone's camera and microphone to Linux over WebRTC, exposed through v4l2loopback.

  7. 2024

    particle.X11

    A particles.js-style field drawn with Xlib on the X11 wallpaper layer, behind every window, that reacts to the cursor wherever it is. It can also run pong or breakout.

  8. 2024

    Memory Visualizer

    A C++ terminal tool that uses ptrace to single-step a program and show its registers, stack, heap and disassembly (Capstone).

  9. 2022

    Remote code execution in an online compiler, reported

    Found by accident on Programiz. After a Java program exited, its input box reached a shell on the host. I got a full shell, did nothing destructive and reported it. It has since been fixed.

Course projects

  1. 2024

    Wireless chiplet interconnects on gem5, Computer Architecture

    A group project reproducing Medina et al. (ASP-DAC 2023) on gem5-X-wireless, with a full-system 8-core ARM machine running Linux, two chiplet layouts, two wireless MAC protocols and link bandwidths from 20 to 500 Gb/s.

  2. 2024

    Machine learning from scratch, Machine Learning

    Random forest, gradient boosting and XGBoost implemented from scratch in Python.

  3. 2024

    Linux firewall and NAT, Networks and Systems Security

    Three VMs with the middle one as a router, then NAT in both directions and an allow-list firewall with iptables.

  4. 2023

    TCP receiver from scratch in C++, Computer Networks

    A byte stream, an out-of-order stream reassembler, 32-bit wrapping sequence numbers and a TCP receiver with a flow-control window, in the style of Stanford's CS144 labs. It passes all 23 tests.

  5. 2023

    One TCP server, five concurrency models, Computer Networks

    The same server in C with fork, pthreads, select, poll and epoll, benchmarked up to 3,000 clients. epoll used the least CPU, select can't reach 3,000 because of FD_SETSIZE, and pthreads grew to 48.8 MB against about 1.5 MB for the others.

  6. 2023

    Access control lists from scratch in C, Networks and Systems Security

    Setuid binaries that store ACLs in extended attributes, plus a minimal sudo. Full marks.

  7. 2023

    Site-to-site IPsec VPN with LibreSwan, Networks and Systems Security

    My own PKI and a certificate-authenticated IKEv2 tunnel between two gateways, so two hosts with no route to each other could talk.

  8. 2023

    Authenticated chat server in C, Networks and Systems Security

    Logins with the Needham-Schroeder protocol through a key distribution centre, and private group chats encrypted with a key the server never sees.

  9. 2023

    Encrypted file copy in C, Networks and Systems Security

    A multithreaded scp-style tool with a channel built by hand on OpenSSL's libcrypto, using AES-256 with encrypt-then-HMAC so the receiver verifies before decrypting.

  10. 2023

    Encrypting files and connections, Networks and Systems Security

    eCryptfs for data at rest, mutual TLS with OpenSSL, and NFS wrapped in stunnel, each checked by reading the raw bytes.

  11. 2023

    Custom malloc and a system call, Operating Systems

    A memory allocator in C on top of mmap with a doubly linked free list, kernel data structures written from scratch, and a Linux system call that counts the processes running on the CPUs.

  12. 2022

    FFT on the Zynq SoC, FPGA fabric against ARM cores, Embedded Logic Design

    Verilog on Xilinx FPGAs, then the Zynq SoC on a physical board, programmed over JTAG. I ran an FFT on the FPGA fabric and compared its speed with the same FFT on the ARM cores.

  13. 2022

    Multithreaded sorting and tree search, Advanced Programming

    Parallel odd-even sort and multithreaded binary-tree search in Java, benchmarked against a single thread.

  14. 2022

    Simulator and assembler for a custom ISA, Computer Organisation

    Simulated a custom instruction set and wrote an assembler for it in Java that turns its assembly into binary machine code.

  15. MNIST dataset analysis

    Machine learning algorithms implemented from scratch and applied to the MNIST dataset.

  16. Path loss model analysis

    Indoor signal-strength measurements fitted with closed-form least squares to a log-distance path loss model with log-normal shadowing.

  17. Huffman compression

    Huffman compression and decompression in C with a hand-written priority queue.

Awards

  1. 2023

    4th in India (55th of 1,096 teams), CSAW CTF Qualifiers

    With team d4rkc0de.

  2. 2022

    2nd place, WreckCTF

    A 48-hour international CTF, with an eight-member d4rkc0de team.

Clubs and community

  1. 2022 – 2025

    Coordinator, d4rkc0de, IIIT-Delhi's cybersecurity club

    I joined as the only first-year selected in recruitment (2nd in the recruitment CTF) and later coordinated the club. I wrote and ran the next recruitment CTF and organised CTF events. I played forensics, reverse engineering and binary exploitation, and gave new members a talk on reverse engineering and x86 assembly.

  2. 2022 – 2025

    Founding member, OWASP student chapter, IIIT-Delhi

    I helped found the chapter in 2022 and hosted its first flagship event, BugSmash, where participants find and patch bugs to get a program working again.

  3. 2024 – 2025

    Contributor, OpenStreetMap

    About 7,000 map edits. I mapped every address in my neighbourhood, added shops and fixed roads.

Skills

  1. Languages

    C, C++, Python, Bash, SQL, Java, Kotlin

  2. Systems

    Linux, POSIX, multithreading, memory management, system calls, eBPF, ptrace, gem5

  3. Networking

    TCP/IP, socket programming (fork, pthreads, select, poll, epoll), Wireshark, iptables, IPsec, TLS

  4. Security

    Reverse engineering, binary exploitation, side channels, cryptography with OpenSSL, PKI

  5. Infrastructure

    AWS (EKS, EC2, EFS, IAM, S3, RDS), Kubernetes, Docker, Helm, Terraform, GitHub Actions, Nginx, Prometheus, Grafana, Loki

  6. Hardware

    Verilog, Xilinx FPGAs and the Zynq SoC

  7. On-device AI

    llama.cpp, GGUF models, grammar-constrained decoding

  8. Spoken

    Hindi (native), English (fluent), Dutch (elementary)

Outside work