About
I am a Ph.D. candidate in the Computer Science department at Cornell University advised by Prof. Justin Hsu. Previously, I worked on software-defined networking as a software engineer at Microsoft for a year and prior to that, I was an undergraduate student at BITS Pilani, India. During my undergrad, I had the pleasure to spend a semester at the Max Planck Institute for Software Systems in Germany working with Dr. Bjoern Brandenburg on a theory-oriented real-time operating system (TOROS) toward my undergraduate thesis.
Research Focus
My dissertation research focus is to design provably correct runtime monitoring mechanisms for enforcing safety and security properties in systems without access to the source code. I focus on systems with hierarchical execution structures, like trees, and have designed an automata-theoretic monitoring framework based on finite state automaton [2] and visibly pushdown automaton [3] (for control flow properties). A central theme of this monitoring mechanism is that it is distributed, non-invasive, and treats the system as a blackbox. To demonstrate the practical impact of my research, I’ve implemented the runtime monitors — SafeTree [3] and SafeNom [4] — for microservice applications. The class of safety properties enforceable by this framework naturally transfer to various domains, like finance, healthcare, and safety-critical cyber-physical systems.
Selected First-Author Publications
-
(Submitted)Karuna Grewal, Brighten Godfrey, Justin Hsu
Talks
-
Automaton-Based Expressive Monitoring of Blackbox Systems
- Cornell PL Discussion Group, Apr 2026
- Purdue PL Seminar, Apr 2026
-
SafeTree: Expressive Tree Policies for Microservices
- OOPSLA, Oct 2025
- Upstate Programming Languages Seminar, Aug 2025
- UIUC Formal Methods Seminar, Apr 2025
- New Jersey Programming Languages and Systems Seminar, Dec 2024
-
Expressive Policies for Microservice Networks
- UCSC Languages, Systems, and Data Seminar, Mar 2024
- HotNets, Nov 2023
- UIUC Service Layer Networking Workshop, Oct 2023
- Bloomberg NYC, Sep 2023
- PLDI, Jun 2022
- Bellairs Network Verification Workshop, May 2022
Service
Currently, I am serving as a PLTea organizer and the Czar for the Cornell PL Discussion Group. I have also served on the artifact evaluation committee for POPL'{24, 25}.
News
-
May'26🏅 I have been awarded the LinkedIn Ph.D. fellowship!
-
Aug'25🎉 "SafeTree: Expressive Tree Policies for Microservices" has been accepted to OOPSLA'25.
This paper highlights the central theme of my dissertation research!! -
Apr'24🎉 I passed my A exam! Thanks to my advisor and collaborators---Justin, Brighten, and Loris!
-
Mar'24🎉 I'll spend this summer as an Applied Scientist intern at Amazon Science's Automated Reasoning research group.
-
Sep'23🎉 "Expressive Policies for Microservice Networks" with Brighten Godfrey and Justin Hsu to appear at HotNets'23.
-
May'23I will be organizing the PLTea social events at PLDI'23. Do join us!
-
Apr'23I am joining the organizational team of PLTea --- meetup for programming languages enthusiasts.
-
May'22I'll be attending the Bellairs Network Verification Workshop.
-
Feb'22🎉 P4BID: Information Flow Control in P4 got accepted to PLDI’22.
-
Sep'21I started my Ph.D. at Cornell (advised by Prof. Justin Hsu).
Teaching
- Spring'26 - CS3410: Computer System Organization and Programming, by Prof. Adrian Sampson
- Spring'22 - CS5412: Topics in Cloud Computing, by Prof. Ken Birman
Contact
You can reach me at: [(λx.x @ cs.cornell.edu) kgrewal]; LinkedIn; or GitHub.