
This repository contains a tool that can be used for automated pentesting tasks.
Note:
python3 -m venv myenv, source myenv/bin/activate)git clone <repo_url>cd AutoPentesterpip3 install -r requirements.txtpip3 install -e .export OPENAI_API_KEY="<your key here>"export OPENAI_BASE_URL="https://your-host/v1"export ANTHROPIC_API_KEY="<your key here>"export GEMINI_API_KEY="<your key here>" or export GOOGLE_API_KEY="<your key here>"pentestgpt/config/agent_config.pypentestgpt/config/agent_config.pyopenai, anthropic, gemini, azure, gpt4all, titan, and rag.autopentester --logginPlease find the demonstration video in the following link.
The processed log files are in the processed_log_files directory. The quantitative results were calculated baseed on these log files.
The analysis of the survey is in the Survey_analysis directory. Run the analysis.py to plot the graphs.
If you are using this work for academic purposes, please cite our paper.
@inproceedings{ginige2025autopentester,
title={Autopentester: An llm agent-based framework for automated pentesting},
author={Ginige, Yasod and Niroshan, Akila and Jain, Sajal and Seneviratne, Suranga},
booktitle={2025 IEEE 24th International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom)},
pages={163--174},
year={2025},
organization={IEEE}
}