ChainVeil is a Rust-powered C2 Framework for generating custom JavaScript payloads that interact with Ethereum. ChainVeil is designed to demonstrate how threat actors leverage decentralized technology for its flexibility and robustness.
- Rust-powered payload creation — ultra-lightweight, fast, and cross-platform.
- Custom JS generation — generate JavaScript that fetches data from Ethereum addresses.
- Portable execution — compile a single binary or run via script so no heavy dependencies.
- Community templates — contribute your own templates to expand functionality.
- Clone the repository:
git clone https://github.com/KOSEC-LLC/ChainVeil.git
cd ChainVeil- Build the Rust binary:
cargo build --release- Run ChainVeil with your Ethereum address:
./target/release/ChainVeil \
--content "0x000000000000000000000000000000000000dEaD" \
--template templates/downloader.js \
--output output/example.js \
--payload payloads/payload.ps1- Open or run the generated
output/example.jsin your JS environment to fetch and log data.
ChainVeil/
├── src/
│ └── main.rs # Rust script that powers JS generation
├── templates/
│ └── downloader.js # JS template with placeholder
├── output/ # Generated JS files
├── payloads/
│ └── payload.ps1 # PowerShell payload placeholder
├── assets/
│ └── logo.png # Logo for README
├── Cargo.toml # Rust dependencies
└── README.md
- Swap templates in
templates/for your own JS payloads. - Swap payloads in
payloads/for your own customized payloads. - Inject multiple addresses by extending the Rust script.
- Integrate with your security tooling workflow or Ethereum research projects.
ChainVeil is intended for educational, research, and internal security purposes only. Do not deploy against external systems without permission. KOSEC assumes no liability for misuse.
