Code repository for this paper, which was written for CSC 429 Spring 2026 View the paper here: https://drive.google.com/file/d/18QmYtDKCKvjjjcGsX4PJOPz4P2M5z68-/view?usp=sharing
baseline/: Contains the baseline scripts derived from TIPExploit's ideas.- Contains a baseline RCE and DoS version.
- Use the workspace_manager and env_setter tool structure originally used.
modified/: Contains the modified RCE version made more stealthy.- Derived from the baseline RCE version, but uses an API server to hide the payload.
- Presents itself as a "secure" file downloader.
tools/: Contains our prompt guard check we used along with its dependencies.
Our work is built off of the paper: Red-Teaming Coding Agents from a Tool-Invocation Perspective: An Empirical Security Assessment. Our baseline scripts are derived from the TIPExploit repository, but modified to suit our needs.
We performed this research with the intention of identifying vulnerabilities in current systems and benchmarking the severity of said vulnerabilities. Therefore, this work is intended for research and educational purposes only. Do not use it for malicious purposes and only use it on systems you own or have permission to test.
To set up the environment, run the setup script:
./setup.shAfter, activate the virtual environment:
source .venv/bin/activate- To run the adversarial server, use the script within the modified folder:
./run_adversarial_server.sh- This activates the virtual environment and runs the adversarial server for you.
- Therefore, using this script, you don't need to activate the virtual environment manually.
- We ran this on the coding agents: Codex, Copilot, and OpenCode.
- It should work with any other coding agent, but we haven't tested it extensively.
- We use Llama-Prompt-Guard-2-86M to check the safety of the tools we use.
- This is done by using a MCP server that runs the prompt guard model against prompts and tool descriptions.
- Prompt checks are automatically performed by the MCP server.
- To use this tool, you'll need a valid Hugging Face API token.