This project aims to build the foundations for safe and reliable AI agents that automate code vulnerability discovery, verification, and repair. The agents will interact with real code repositories, security tools, sandboxed environments, and human experts to identify vulnerabilities, validate findings, generate patches, and test remediation outcomes. We will develop an expert-in-the-loop safety harness to govern agent permissions, tool use, and high-risk actions, together with a security data engine that captures complete expert–agent–tool trajectories, including successes, failures, corrections, evidence, and repair outcomes.
In summary, this project develops safe and reliable AI agents for automated code vulnerability discovery, verification, and repair through three main components:
-
- Automated Vulnerability-Research Agent: Build an AI agent that interacts with code repositories, security tools, and sandboxed environments to identify vulnerabilities, reproduce findings, generate patches, and test repairs.
-
- Expert-in-the-Loop Safety Harness: Develop a control layer for agent permissions, tool use, high-risk actions, evidence requirements, audit logging, and human approval.
-
- Security Data Engine: Capture complete expert–agent–tool trajectories—including successful findings, failed attempts, expert corrections, validation evidence, and repair outcomes—to support agent training, evaluation, and continuous improvement.
About the project
AI agents are rapidly improving at code understanding, tool use, and long-horizon software engineering. These capabilities create an opportunity to automate parts of vulnerability discovery, validation, and repair, but current systems remain difficult to trust in real security workflows. A model may generate plausible but incorrect findings, overlook cross-file attack paths, misuse powerful tools, or produce patches that remove a symptom without fixing the root cause. More importantly, the expert data needed to train and evaluate reliable vulnerability-research agents is scarce: most public datasets contain final vulnerability labels or patches, rather than the full process by which security experts form hypotheses, inspect evidence, reject false positives, reproduce vulnerabilities, and validate repairs.
This project investigates two pieces of foundational infrastructure for future automated vulnerability discovery and repair.
Workstream 1: Expert-in-the-loop Safety Harness. We will prototype a lightweight research environment in which security experts can collaborate with AI agents while retaining control over the investigation. The harness will support repository exploration, model and tool orchestration, isolated execution, evidence tracking, expert approval, and reproducible replay. Rather than treating the model's first answer as a finding, the workflow will encourage a structured sequence: understand the target, propose a vulnerability hypothesis, gather code and tool evidence, attempt validation in a sandbox, obtain expert review, and then generate and test a repair. The harness will enforce a structured workflow:
“Target understanding → vulnerability hypothesis → evidence collection → sandbox validation → expert review → patch generation → repair testing”
The design will draw inspiration from emerging multi-model scanning systems such as Microsoft's MDASH, while focusing on expert supervision, transparent evidence, and research data collection rather than large-scale autonomous scanning.
Workstream 2: Security Data Engine. The harness will be instrumented to capture structured vulnerability-research trajectories. These trajectories may include repository context, files inspected, hypotheses proposed, security-tool calls, intermediate evidence, failed validation attempts, expert corrections, false-positive rationales, patch revisions, and regression-test outcomes. The data engine will convert these heterogeneous interactions into auditable, privacy-aware records that can support supervised fine-tuning, preference learning, tool-use optimization, workflow evaluation, and benchmark construction. Failed and rejected trajectories are particularly important because they reveal where agents appear convincing but are wrong.
The central research questions are:
- What interaction design makes AI assistance genuinely useful to security experts without reducing expert control or creating excessive review burden?
- Which parts of expert vulnerability-research trajectories are most informative for improving agent reliability, validation accuracy, and repair quality?
- Can structured expert feedback and replayable evidence reduce false positives and improve the reproducibility of AI-generated findings?
- How should high-risk cyber-agent capabilities be constrained, logged, and evaluated so that research progress does not come at the cost of unsafe deployment?
We will begin with a deliberately scoped prototype rather than attempting to build a full cybersecurity foundation model. Initial experiments will use authorized open-source repositories, known vulnerabilities or seeded security defects, and a small set of established analysis and testing tools. Mentees will help implement the harness and trajectory schema, run pilot studies with security practitioners, and compare model-only workflows against expert-supervised workflows. Evaluation will consider finding validity, evidence completeness, reproduction success, false-positive burden, patch correctness, expert time, and the usefulness of collected trajectories for improving subsequent agent runs.
Expected outputs include: (i) an open research prototype of the expert-in-the-loop safety harness; (ii) a structured schema and data pipeline for vulnerability discovery and repair trajectories; (iii) a small, carefully governed dataset of expert-reviewed trajectories where release is legally and ethically appropriate; and (iv) an empirical study of how expert feedback and safety constraints affect AI-assisted vulnerability research. The longer-term goal is to create a continuous data flywheel in which expert use produces better data, better data improves agents, and improved agents return to the harness for further supervised use.
Relevant references: Microsoft MDASH: https://www.microsoft.com/en-us/security/blog/2026/05/12/defense-at-ai-speed-microsofts-new-multi-model-agentic-security-system-tops-leading-industry-benchmark/ AgentHazard: https://arxiv.org/abs/2604.02947 BraveGuard: https://arxiv.org/abs/2606.01166
Theory of change
Advanced AI agents will increasingly be able to inspect large codebases, invoke security tools, reproduce vulnerabilities, and generate repairs. These capabilities can strengthen cyber defense, but they are also dual-use: unreliable agents may create false confidence, damage systems through unsafe tool use, or lower the barrier to offensive cyber activity. Safe progress therefore requires more than increasing model capability. It requires mechanisms for expert oversight, constrained execution, evidence-based validation, auditability, and responsible data governance.
This project develops these safeguards alongside capability research. For example, if an agent claims that a repository contains a command-injection vulnerability, the safety harness will require it to identify the relevant code path, provide evidence, reproduce the issue in an isolated sandbox, and obtain expert approval before testing a patch. High-risk actions, such as running exploit code, accessing external networks, or modifying repositories, will be permission-gated, logged, and replayable. If the claim cannot be reproduced, or the patch breaks functionality, the failed attempt and expert correction will also be retained.
The theory of change is: expert-supervised use produces high-quality behavioral data; this data enables better safety training and evaluation; improved agents are redeployed only within an auditable harness; and repeated supervised use creates a feedback loop that improves defensive usefulness while preserving human control. The project is related to our work on trajectory-level safety monitoring for computer-use agents, AgentHazard: https://arxiv.org/abs/2604.02947 and BraveGuard: https://arxiv.org/abs/2606.01166.
Your role
Mentees will work as research collaborators with substantial ownership over a clearly scoped component, while receiving weekly guidance and code/research review. Depending on background and interest, a mentee may focus on one of two tracks.
Harness track: Design and implement a lightweight expert-facing workflow for repository analysis, model/tool orchestration, sandboxed validation, evidence capture, and expert approval. The goal is not to reproduce a production platform, but to build a usable prototype that supports controlled experiments.
Data-engine track: Design a structured trajectory schema; implement logging, normalization, replay, and annotation components; and study how expert corrections, rejected findings, and failed validation attempts should be represented for later training and evaluation.
All mentees will contribute to literature review, experimental design, pilot evaluations, and research writing. They will be expected to propose design choices, maintain reproducible experiments, document limitations, and present progress in weekly meetings. Mentees will have autonomy over implementation and exploratory experiments after agreeing on a milestone plan. High-risk testing must use authorized targets and isolated environments, and any potential real-world vulnerability will follow coordinated responsible-disclosure procedures.
Prerequisites
Applicants should have:
-
Strong Python programming skills and experience building, integrating, or evaluating LLM/agent systems, software-engineering tools, or security-analysis pipelines.
-
Solid foundations in either machine learning/AI systems or cybersecurity/software engineering.
-
The ability to work independently on open-ended research problems, read and implement research papers, debug complex systems, and communicate results clearly.
-
First-author publications or substantial contributions to published work will be considered particularly valuable.
Experience in at least one of the following areas is strongly preferred:
- AI security, vulnerability research, program analysis, secure coding, fuzzing, automated program repair, or CTF-style security problem solving.
- Coding agents, tool-using LLMs, agent evaluation, model fine-tuning, preference learning, reinforcement learning, or trajectory-data construction.
- Building substantial research prototypes, open-source systems, security tools, technical reports, or reproducible experimental pipelines.
Applicants do not need to be experts in both AI and cybersecurity, but they should be strong in at least one area and able to learn the other quickly. Clear technical writing, responsible handling of security-sensitive work, and evidence of completing research projects are essential.
Location preference
No geographical restriction. The team will meet online once per week. Mentees should be able to attend a recurring meeting during a mutually agreed window with reasonable overlap with Singapore time (UTC+8), and communicate asynchronously through shared documents and a code repository.
Application question(s)
-
Initial research design (maximum 300 words). Suppose you have access to one coding agent, a sandbox, several open-source repositories with known vulnerabilities, and limited API/compute credit. Propose a first experiment to test whether expert feedback improves vulnerability-finding reliability. Specify the comparison, the data you would record, and the success criteria.
-
Trajectory critique (maximum 250 words). An agent flags a possible command-injection vulnerability, cites a suspicious function, and proposes a patch, but it has not reproduced the issue. What evidence should be collected before accepting the finding, and which parts of the expert-agent interaction would be most valuable to store for future training?
-
Relevant work sample. Provide a link to one code repository, technical report, paper. Briefly state your contribution and the hardest technical problem you solved (maximum 150 words).
About the mentor

I am a Research Fellow at Singapore Management University, working on trustworthy and secure AI. My research focuses on the safety and security of generative AI systems, particularly large language models and autonomous AI agents. I study problems such as backdoor attacks and defenses, adversarial red teaming, safety evaluation, guard models, and runtime control for AI agents. My work has been published at venues including ICLR, NeurIPS, ICML, NDSS, ACL, AAAI, and CVPR, and has received over 2,200 citations on Google Scholar.
I enjoy developing simple but insightful solutions to complex safety problems, guided by the principle that “everything should be made as simple as possible, but not simpler.” As a mentor, I aim to provide hands-on guidance while encouraging mentees to develop independent research judgment. I particularly enjoy helping students turn early-stage ideas into concrete experiments, open-source systems, and research papers. Outside of research, I enjoy rock climbing and swimming.