web3-poc-foundry

Assemble runnable Foundry PoC projects from templates and cheatcodes.

121|32|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/shuvonsec/web3-bug-bounty-hunting-ai-skills --skill web3-poc-foundry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web3-poc-foundry
Source: https://github.com/shuvonsec/web3-bug-bounty-hunting-ai-skills/tree/main/web3-poc-foundry
Command: npx skills add https://github.com/shuvonsec/web3-bug-bounty-hunting-ai-skills --skill web3-poc-foundry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers and researchers need runnable, reproducible PoCs for smart contract exploits using Foundry, Cheating codes, and DeFiHackLabs patterns. This Skill provides a complete reference for writing, testing, and reproducing PoCs with deterministic forks and verified outputs, enabling safer security investigations and educational hunts.

Core Features & Use Cases

  • Runnable PoC templates and cheatcodes for Foundry, including attack scenarios and debugging aids.
  • Reproduction patterns from DeFiHackLabs to mirror real-world exploits in a controlled environment.
  • Fork-based testing workflows to ensure deterministic, repeatable security experiments.

Quick Start

Initialize a Foundry project using Immunefi templates and run forge test to reproduce a known exploit in a forked environment.

Frequently Asked Questions about web3-poc-foundry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reproduce a smart contract exploit using Foundry?

Foundry cheatcodes enable deterministic state manipulation during PoC validation by allowing you to set block timestamps, impersonate accounts, and mock external contracts, ensuring reproducible outputs for security investigations.

What is the best way to set up forked-mainnet testing for exploit recreation?

The best way to set up forked-mainnet testing for exploit recreation is initializing a Foundry project using Immunefi templates and running forge test against a forked environment to ensure deterministic, repeatable security experiments.

Can I use DeFiHackLabs patterns to validate PoCs for production-grade security scenarios?

Yes, you can use DeFiHackLabs patterns to validate PoCs for production-grade security scenarios by ensuring your exploit reproduction meets requirements with clear setup, deterministic state, and verified outputs.

Does Foundry PoC testing work with deterministic forks for security investigations?

Foundry PoC testing works with deterministic forks by anchoring test execution to specific mainnet block states, which guarantees repeatable security experiments and accurate exploit recreation outputs.

Why does my exploit reproduction fail to produce deterministic outputs in Foundry?

Exploit reproduction fails to produce deterministic outputs in Foundry when the PoC lacks clear setup or proper cheatcode application, disrupting the deterministic state required for reproducible forked-mainnet testing.