PoCSmith
AI-Powered Proof-of-Concept Generator for Security Research
PoCSmith is an AI model fine-tuned on exploit code and CVE data to assist security researchers in generating proof-of-concept exploits and shellcode for defensive purposes.
Author: Regaan
Ethical Use Only
This tool is designed exclusively for defensive security research and authorized testing:
- Penetration testing on systems you own or have permission to test
- Security research and vulnerability analysis
- Educational purposes in controlled environments
- NOT for malicious attacks or unauthorized access
Use responsibly. Follow all applicable laws and regulations.
Features
- AI-Powered Generation - CodeLlama-7B fine-tuned on 1,472 exploit samples
- CVE Integration - Fetch vulnerability data from NVD API
- Multi-Platform Shellcode - x86, x64, ARM support
- Simple CLI - Easy command-line interface
- High Quality - 78.4% token accuracy
Quick Start
Installation
git clone https://github.com/noobforanonymous/PoCSmith.git
cd PoCSmith
python3 -m venv venv
source venv/bin/activate
pip install -e .
Usage Examples
# Generate exploit from CVE
python src/cli/main.py cve CVE-2024-1234
# Generate shellcode
python src/cli/main.py shellcode --platform linux_x64 --type reverse_shell --lhost 10.10.14.5 --lport 4444
# Generate from vulnerability description
python src/cli/main.py generate --vuln "buffer overflow" --target "Apache 2.4"
# List available options
python src/cli/main.py list-platforms
python src/cli/main.py list-payloads
Model Details
- Base Model: CodeLlama-7B
- Training: QLoRA 4-bit quantization
- Dataset: 1,472 samples (CVE-Exploit pairs + shellcode)
- Performance: 78.4% token accuracy, 30% loss reduction
- Training Time: 3h 17min on RTX 4050 (6GB VRAM)
Project Structure
PoCSmith/
├── src/
│ ├── parsers/ # CVE parsing
│ ├── generators/ # Exploit & shellcode generation
│ ├── formatters/ # Output formatting
│ ├── cli/ # Command-line interface
│ └── core/ # Configuration
├── models/
│ └── pocsmith-v1/ # Fine-tuned AI model (LoRA adapters)
├── data/ # Training data
├── docs/ # Documentation
└── tests/ # Unit tests
Documentation
Requirements
- Python 3.11+
- CUDA-capable GPU (6GB+ VRAM recommended)
- 20GB disk space
Dependencies
torch>=2.0.0
transformers>=4.35.0
peft>=0.7.0
bitsandbytes>=0.41.0
click>=8.1.0
Example Output
Shellcode Generation
$ python src/cli/main.py shellcode --platform linux_x86 --type reverse_shell --lhost 10.10.14.5 --lport 4444
PoCSmith v1.0
[*] Generating reverse_shell for linux_x86...
Loading PoCSmith model...
Model ready!
/*
* Shellcode for Linux/x86
* - Calls socket() -> connect() -> dup2() -> execve()
* - Tested on Ubuntu, Debian
* - Length: 160 bytes
*/
Contributing
Contributions are welcome. Please fork the repository, create a feature branch, and submit a pull request.
License
MIT License - See LICENSE file
Disclaimer
FOR EDUCATIONAL AND DEFENSIVE SECURITY RESEARCH ONLY
I am not responsible for misuse of this tool. Users must obtain proper authorization before testing, follow responsible disclosure practices, and comply with all applicable laws.
Acknowledgments
- CodeLlama (Meta AI)
- NVD (NIST)
- Exploit-DB
- Metasploit Framework
- Hugging Face
Built for the security research community.
Version 1.0
By Regaan
Metadata
Release files for pocsmith 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pocsmith-1.0.0.tar.gz | 13.3 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pocsmith-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.1 kB
Release files / pocsmith-1.0.0.tar.gz
| Download URL | pocsmith-1.0.0.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
081a832151ef3fcd8e552b41060b01bf8856cd6ba1f9c2de7ba1e1c7047a0170
|
|
BLAKE2b-256 checksum How to use checksums |
2f00465ef5d7ba380786b3c39df22dee9db2fb385d65d1dd262add675c97e874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 27, 2025.
Transparency logRelease files / pocsmith-1.0.0-py3-none-any.whl
| Download URL | pocsmith-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a9f0d8b7d92e5b8ce3bb5a17391a086df1339b33e22ca030c38ca4c7811b799
|
|
BLAKE2b-256 checksum How to use checksums |
529aa58c568eb8dee948f41ff22c3d7ed7ade61a8ffd1f81aa374022807381dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 27, 2025.
Transparency logSecurity for pocsmith 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pocsmith-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 27, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.