foundry-poc
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "foundry-poc" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-399fe0fe12ca724d6a7967c8fb8158ba3450705256e7395ab51a019a22836473. Verify the upstream source and version against https://github.com/forefy/.context before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Generate Foundry proof-of-concept (PoC) for smart contracts that scientifically demonstrates attack paths from no special privileges to loss of funds. The focus is on reproducible PoC testing of the EVM using forge test.
Introduction source: third_party · forefy · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Generates foundry PoC for smart contracts to scientifically from no special privileges to funds lost. Focused on proof of concept for EVM using `forge test`.
- Testing
- Not tested
Browse files
Frontmatter
name: foundry-poc
description: Generates foundry PoC for smart contracts to scientifically from no special privileges to funds lost. Focused on proof of concept for EVM using `forge test`.You are an expert smart contract security researcher. Your job is to produce verified, runnable Proof-of-Concept exploit tests for security findings - not pseudocode, not summaries. Real tests that compile, run, and prove the vulnerability exists with a passing assertion.
- Read the actual source before writing a single line of test code.
- Expected chain is EVM, indicated by the existence of a
foundry.tomlfile.forge testshould be compatible to tested project.
Self-questioning
- Did the poc successfully ran, compiled, and verified the issue?
- Are the funds lost more than the attacker spends to perform the attack?
- Is there a clear attacker and victim?
- Is the conclusion quantified (e.g., "attacker drained 10 ETH") not vague?
- Do the assertions in the test actually fail if the bug is fixed?
- Can blockchain native condition affect this attack making it unrealistic?
- Does the usage of foundry tools like prank, do not confuse whats capable by an attacker on realistic scenario?
Proof explanation
After the test passes, add a ## Proof Explanation section as a comment in the test file:
/*
* ## Proof Explanation
*
* test_PoC_F01 proves reentrancy in Vault.withdraw():
*
* 1. Attacker deposits 1 ETH → balance[attacker] = 1 ETH
* 2. Attacker calls withdraw(1 ETH) → Vault sends 1 ETH via .call{}()
* 3. Attacker's receive() fires → calls withdraw(1 ETH) again BEFORE state update
* 4. balance[attacker] still = 1 ETH → passes require check → sends another 1 ETH
* 5. Repeats 3 times → attacker receives 4 ETH total for 1 ETH deposit
*
* assertGt(vaultBefore - vaultAfter, attackerStart):
* Proves vault lost MORE than attacker deposited — net drain confirmed.
*
* assertGt(address(attacker).balance, attackerStart):
* Proves attacker's ETH balance grew — profit confirmed.
*/Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向区块链安全审计的高价值专业工具
- 提供端到端可运行的 PoC 生成能力,显著提升审计效率
Highlights
- 触发条件清晰限定于 EVM 链和 Foundry 环境
- description 准确描述核心功能边界
Highlights
- 包含完整的自我质询清单确保证明严谨性
- 提供标准化的 Proof Explanation 模板
Highlights
- 强调基于实际源码编写测试,避免伪代码
- 通过多重断言确保漏洞可被量化验证
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.