@hostclubeos/miraos 0.0.5-beta → 0.0.6-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/bundled/bug-hunter/references/apk-redteam-pipeline/SKILL.md +407 -0
  2. package/bundled/bug-hunter/references/bb-local-toolkit/SKILL.md +1558 -0
  3. package/bundled/bug-hunter/references/bb-methodology/SKILL.md +513 -0
  4. package/bundled/bug-hunter/references/bug-bounty/SKILL.md +1604 -0
  5. package/bundled/bug-hunter/references/bugcrowd-reporting/SKILL.md +331 -0
  6. package/bundled/bug-hunter/references/cloud-iam-deep/SKILL.md +521 -0
  7. package/bundled/bug-hunter/references/enterprise-vpn-attack/SKILL.md +356 -0
  8. package/bundled/bug-hunter/references/evidence-hygiene/SKILL.md +401 -0
  9. package/bundled/bug-hunter/references/exploit-completion/SKILL.md +155 -0
  10. package/bundled/bug-hunter/references/hunt-api-misconfig/SKILL.md +268 -0
  11. package/bundled/bug-hunter/references/hunt-aspnet/SKILL.md +277 -0
  12. package/bundled/bug-hunter/references/hunt-ato/SKILL.md +140 -0
  13. package/bundled/bug-hunter/references/hunt-auth-bypass/SKILL.md +449 -0
  14. package/bundled/bug-hunter/references/hunt-brute-force/SKILL.md +297 -0
  15. package/bundled/bug-hunter/references/hunt-business-logic/SKILL.md +237 -0
  16. package/bundled/bug-hunter/references/hunt-cache-poison/SKILL.md +338 -0
  17. package/bundled/bug-hunter/references/hunt-captcha-bypass/SKILL.md +92 -0
  18. package/bundled/bug-hunter/references/hunt-cicd/SKILL.md +267 -0
  19. package/bundled/bug-hunter/references/hunt-clickjacking/SKILL.md +66 -0
  20. package/bundled/bug-hunter/references/hunt-cloud-misconfig/SKILL.md +195 -0
  21. package/bundled/bug-hunter/references/hunt-cors/SKILL.md +291 -0
  22. package/bundled/bug-hunter/references/hunt-csrf/SKILL.md +374 -0
  23. package/bundled/bug-hunter/references/hunt-deserialization/SKILL.md +178 -0
  24. package/bundled/bug-hunter/references/hunt-dispatch/SKILL.md +380 -0
  25. package/bundled/bug-hunter/references/hunt-dom/SKILL.md +279 -0
  26. package/bundled/bug-hunter/references/hunt-exceptional-conditions/SKILL.md +67 -0
  27. package/bundled/bug-hunter/references/hunt-file-upload/SKILL.md +158 -0
  28. package/bundled/bug-hunter/references/hunt-fintech-graphql/SKILL.md +245 -0
  29. package/bundled/bug-hunter/references/hunt-forgot-password/SKILL.md +70 -0
  30. package/bundled/bug-hunter/references/hunt-graphql/SKILL.md +368 -0
  31. package/bundled/bug-hunter/references/hunt-grpc/SKILL.md +273 -0
  32. package/bundled/bug-hunter/references/hunt-host-header/SKILL.md +265 -0
  33. package/bundled/bug-hunter/references/hunt-html-injection/SKILL.md +62 -0
  34. package/bundled/bug-hunter/references/hunt-http-smuggling/SKILL.md +87 -0
  35. package/bundled/bug-hunter/references/hunt-idor/SKILL.md +389 -0
  36. package/bundled/bug-hunter/references/hunt-jwt-crypto/SKILL.md +177 -0
  37. package/bundled/bug-hunter/references/hunt-k8s/SKILL.md +293 -0
  38. package/bundled/bug-hunter/references/hunt-laravel/SKILL.md +211 -0
  39. package/bundled/bug-hunter/references/hunt-ldap/SKILL.md +307 -0
  40. package/bundled/bug-hunter/references/hunt-lfi/SKILL.md +266 -0
  41. package/bundled/bug-hunter/references/hunt-llm-ai/SKILL.md +245 -0
  42. package/bundled/bug-hunter/references/hunt-mfa-bypass/SKILL.md +134 -0
  43. package/bundled/bug-hunter/references/hunt-misc/SKILL.md +333 -0
  44. package/bundled/bug-hunter/references/hunt-nextjs/SKILL.md +255 -0
  45. package/bundled/bug-hunter/references/hunt-nodejs/SKILL.md +219 -0
  46. package/bundled/bug-hunter/references/hunt-nosqli/SKILL.md +166 -0
  47. package/bundled/bug-hunter/references/hunt-ntlm-info/SKILL.md +270 -0
  48. package/bundled/bug-hunter/references/hunt-oauth/SKILL.md +414 -0
  49. package/bundled/bug-hunter/references/hunt-open-redirect/SKILL.md +179 -0
  50. package/bundled/bug-hunter/references/hunt-race-condition/SKILL.md +485 -0
  51. package/bundled/bug-hunter/references/hunt-rag-vector/SKILL.md +167 -0
  52. package/bundled/bug-hunter/references/hunt-rce/SKILL.md +494 -0
  53. package/bundled/bug-hunter/references/hunt-saml/SKILL.md +112 -0
  54. package/bundled/bug-hunter/references/hunt-session/SKILL.md +298 -0
  55. package/bundled/bug-hunter/references/hunt-shadow-api/SKILL.md +153 -0
  56. package/bundled/bug-hunter/references/hunt-sharepoint/SKILL.md +437 -0
  57. package/bundled/bug-hunter/references/hunt-source-leak/SKILL.md +301 -0
  58. package/bundled/bug-hunter/references/hunt-spa-api/SKILL.md +123 -0
  59. package/bundled/bug-hunter/references/hunt-springboot/SKILL.md +241 -0
  60. package/bundled/bug-hunter/references/hunt-sqli/SKILL.md +422 -0
  61. package/bundled/bug-hunter/references/hunt-ssrf/SKILL.md +514 -0
  62. package/bundled/bug-hunter/references/hunt-ssti/SKILL.md +117 -0
  63. package/bundled/bug-hunter/references/hunt-subdomain/SKILL.md +335 -0
  64. package/bundled/bug-hunter/references/hunt-tls-network/SKILL.md +355 -0
  65. package/bundled/bug-hunter/references/hunt-websocket/SKILL.md +285 -0
  66. package/bundled/bug-hunter/references/hunt-xss/SKILL.md +450 -0
  67. package/bundled/bug-hunter/references/hunt-xxe/SKILL.md +422 -0
  68. package/bundled/bug-hunter/references/ios-redteam-pipeline/SKILL.md +287 -0
  69. package/bundled/bug-hunter/references/m365-entra-attack/SKILL.md +384 -0
  70. package/bundled/bug-hunter/references/meme-coin-audit/SKILL.md +358 -0
  71. package/bundled/bug-hunter/references/mid-engagement-ir-detection/SKILL.md +353 -0
  72. package/bundled/bug-hunter/references/offensive-osint/README.md +98 -0
  73. package/bundled/bug-hunter/references/offensive-osint/SKILL.md +399 -0
  74. package/bundled/bug-hunter/references/offensive-osint/references/breach-and-credentials.md +128 -0
  75. package/bundled/bug-hunter/references/offensive-osint/references/dork-corpus.md +180 -0
  76. package/bundled/bug-hunter/references/offensive-osint/references/helpers-and-automation.md +231 -0
  77. package/bundled/bug-hunter/references/offensive-osint/references/identity-fabric.md +305 -0
  78. package/bundled/bug-hunter/references/offensive-osint/references/people-osint.md +105 -0
  79. package/bundled/bug-hunter/references/offensive-osint/references/probes-and-wordlists.md +1266 -0
  80. package/bundled/bug-hunter/references/offensive-osint/references/recon-stack.md +282 -0
  81. package/bundled/bug-hunter/references/offensive-osint/references/recon-techniques.md +341 -0
  82. package/bundled/bug-hunter/references/offensive-osint/references/saas-public-surfaces.md +138 -0
  83. package/bundled/bug-hunter/references/offensive-osint/references/secret-patterns.md +67 -0
  84. package/bundled/bug-hunter/references/offensive-osint/references/secret-validators.md +329 -0
  85. package/bundled/bug-hunter/references/offensive-osint/references/sector-notes.md +72 -0
  86. package/bundled/bug-hunter/references/offensive-osint/references/severity-matrix.md +108 -0
  87. package/bundled/bug-hunter/references/offensive-osint/references/specialized-osint.md +199 -0
  88. package/bundled/bug-hunter/references/offensive-osint/references/tooling-install.md +188 -0
  89. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/FONT-LICENSE.txt +13 -0
  90. package/bundled/bug-hunter/references/offensive-osint/scripts/assets/archivo-black.woff2 +0 -0
  91. package/bundled/bug-hunter/references/offensive-osint/scripts/dashboard.py +968 -0
  92. package/bundled/bug-hunter/references/offensive-osint/scripts/h1_reference.py +402 -0
  93. package/bundled/bug-hunter/references/offensive-osint/scripts/secret_scan.py +180 -0
  94. package/bundled/bug-hunter/references/okta-attack/SKILL.md +397 -0
  95. package/bundled/bug-hunter/references/osint-methodology/README.md +66 -0
  96. package/bundled/bug-hunter/references/osint-methodology/SKILL.md +1704 -0
  97. package/bundled/bug-hunter/references/recon-scope-triage/SKILL.md +89 -0
  98. package/bundled/bug-hunter/references/redteam-mindset/SKILL.md +401 -0
  99. package/bundled/bug-hunter/references/redteam-report-template/SKILL.md +347 -0
  100. package/bundled/bug-hunter/references/regression-hunting/SKILL.md +98 -0
  101. package/bundled/bug-hunter/references/report-writing/SKILL.md +568 -0
  102. package/bundled/bug-hunter/references/security-arsenal/SKILL.md +912 -0
  103. package/bundled/bug-hunter/references/supply-chain-attack-recon/SKILL.md +648 -0
  104. package/bundled/bug-hunter/references/triage-validation/SKILL.md +418 -0
  105. package/bundled/bug-hunter/references/vmware-vcenter-attack/SKILL.md +372 -0
  106. package/bundled/bug-hunter/references/web2-recon/SKILL.md +698 -0
  107. package/bundled/bug-hunter/references/web3-audit/SKILL.md +606 -0
  108. package/chunks/{acpAgent-UHWDA3W7.js → acpAgent-OGBFWA5R.js} +2 -2
  109. package/chunks/{chunk-BX3KM7OK.js → chunk-2PB6TEZU.js} +1 -1
  110. package/chunks/{chunk-NYM67KKZ.js → chunk-34YXJ3CX.js} +1 -1
  111. package/chunks/{chunk-FXANOHXI.js → chunk-3GA3NTAV.js} +3 -3
  112. package/chunks/{chunk-MUS4ADP7.js → chunk-5JKJSIIP.js} +1 -1
  113. package/chunks/{chunk-N4RIISOE.js → chunk-7JT2V4AW.js} +1 -1
  114. package/chunks/{chunk-4IVYVCCU.js → chunk-BB2C4HKQ.js} +1 -1
  115. package/chunks/{chunk-SK3QOQR4.js → chunk-F2XELUO3.js} +1 -1
  116. package/chunks/{chunk-RKFNQQNA.js → chunk-GPI53DWB.js} +1 -1
  117. package/chunks/{chunk-744QTJR2.js → chunk-HHSHBOT7.js} +2 -2
  118. package/chunks/{chunk-PXBJPUGN.js → chunk-HMID4D72.js} +1 -1
  119. package/chunks/{chunk-MQWKOOSR.js → chunk-IC2WDA6V.js} +1 -1
  120. package/chunks/{chunk-2TDRP3IX.js → chunk-JRPR5IME.js} +1 -1
  121. package/chunks/{chunk-2GVKPBW5.js → chunk-ORVQPZMQ.js} +1 -1
  122. package/chunks/{chunk-FRADUGRC.js → chunk-RGVXNWZA.js} +1 -1
  123. package/chunks/{chunk-QEIX42MZ.js → chunk-SHLTP6ZB.js} +1 -1
  124. package/chunks/{chunk-D3QZNIFB.js → chunk-SOCXRMZM.js} +4 -4
  125. package/chunks/{chunk-NKWATWMD.js → chunk-TI7J4HX2.js} +1 -1
  126. package/chunks/{chunk-62DMHXLL.js → chunk-VGPV5AVJ.js} +1 -1
  127. package/chunks/{chunk-XZNF4YNN.js → chunk-Y3BCVTFB.js} +1 -1
  128. package/chunks/{chunk-D3YOXHQF.js → chunk-YVORE4W4.js} +1 -1
  129. package/chunks/{daemon-status-provider-F6KB2LNG.js → daemon-status-provider-FCQ4YYAY.js} +1 -1
  130. package/chunks/{fast-path-DWPD5EGQ.js → fast-path-ZBD7IYQM.js} +1 -1
  131. package/chunks/{llm-RBI7KXDE.js → llm-DQNQEAFW.js} +3 -3
  132. package/chunks/{local-HSG47CNJ.js → local-ZRC4XZCJ.js} +1 -1
  133. package/chunks/{managed-local-serve-YE4JDFNP.js → managed-local-serve-B2KOLPB5.js} +1 -1
  134. package/chunks/{managed-runtime-bootstrap-SHEXUEZN.js → managed-runtime-bootstrap-MREL5UC2.js} +1 -1
  135. package/chunks/{managed-runtime-ssh-worker-BZNJV7IB.js → managed-runtime-ssh-worker-GUKAZFAJ.js} +1 -1
  136. package/chunks/{memory-JTDN5AEA.js → memory-ZYPCFYPF.js} +1 -1
  137. package/chunks/{nonInteractiveCli-BXHX6EIU.js → nonInteractiveCli-JG6PKBAD.js} +1 -1
  138. package/chunks/{review-PC4IDLCG.js → review-N3VFZQMI.js} +1 -1
  139. package/chunks/{run-qwen-serve-XRWVWOZK.js → run-qwen-serve-4MZRQFXK.js} +1 -1
  140. package/chunks/{serve-JCUT4WK7.js → serve-EQN6QAXF.js} +1 -1
  141. package/chunks/{server-HMTRZJF7.js → server-CCEHAI25.js} +1 -1
  142. package/chunks/{session-RGLZU6KY.js → session-HNUJSV5A.js} +1 -1
  143. package/chunks/{start-opentui-ui-YNTPK7LX.js → start-opentui-ui-6MCAEWAW.js} +1 -1
  144. package/chunks/{startInteractiveUI-MWA2VYTJ.js → startInteractiveUI-657JWOTK.js} +1 -1
  145. package/chunks/{validateNonInterActiveAuth-3433WFLE.js → validateNonInterActiveAuth-CP5WFNAE.js} +1 -1
  146. package/chunks/{version-XCFKTEY3.js → version-SIM74L5K.js} +1 -1
  147. package/cli.js +1 -1
  148. package/export-transcript-document.js +1 -1
  149. package/package.json +3 -3
  150. package/web-shell/assets/{PierreFilePreview-DEhWK46v.js → PierreFilePreview-Dkt6iPte.js} +1 -1
  151. package/web-shell/assets/SpreadsheetPreview-I4yiL7q3.js +1 -0
  152. package/web-shell/assets/{WorkspaceFileBrowser-64vDYikf.js → WorkspaceFileBrowser-Du9bMpNo.js} +1 -1
  153. package/web-shell/assets/{abnfDiagram-VCTEODGH-C2WWURam.js → abnfDiagram-VCTEODGH-CGY1lCxS.js} +1 -1
  154. package/web-shell/assets/{agents-route-j5ba59xn.js → agents-route-kcQ3YUNc.js} +1 -1
  155. package/web-shell/assets/{arc-Bkr_-GVn.js → arc-BUMNyJDV.js} +1 -1
  156. package/web-shell/assets/{architectureDiagram-5GKGNRK7-D_v_wDDW.js → architectureDiagram-5GKGNRK7-CEfXhEKD.js} +1 -1
  157. package/web-shell/assets/{blockDiagram-NRAW4CY4-Csxc3YNo.js → blockDiagram-NRAW4CY4-BH8hjvlX.js} +1 -1
  158. package/web-shell/assets/{c4Diagram-UCG6FXSJ-PXryoJCB.js → c4Diagram-UCG6FXSJ-Dfl946ex.js} +1 -1
  159. package/web-shell/assets/channel-CoZByzPk.js +1 -0
  160. package/web-shell/assets/{chunk-2Q5K7J3B-DwK5UBHI.js → chunk-2Q5K7J3B-CBvGm-pD.js} +1 -1
  161. package/web-shell/assets/{chunk-5VM5RSS4-BC1hvD6_.js → chunk-5VM5RSS4-k06tGOfl.js} +1 -1
  162. package/web-shell/assets/{chunk-F27PBJKO-iFe0IxfJ.js → chunk-F27PBJKO-Dv4S4vSq.js} +1 -1
  163. package/web-shell/assets/{chunk-G27WJ6UU-ROSuKRxI.js → chunk-G27WJ6UU-7LY0yu3f.js} +1 -1
  164. package/web-shell/assets/{chunk-JWPE2WC7-CYHS6PxA.js → chunk-JWPE2WC7-B-CgVEuJ.js} +1 -1
  165. package/web-shell/assets/{chunk-LCL6LL3I-D5bFMqCy.js → chunk-LCL6LL3I-D0TrWx1f.js} +1 -1
  166. package/web-shell/assets/{chunk-POPQ4Y6H-BJh77MGv.js → chunk-POPQ4Y6H-B97ZANlR.js} +1 -1
  167. package/web-shell/assets/{chunk-SVP7TREG-Cs81aYft.js → chunk-SVP7TREG-2CO_3G76.js} +1 -1
  168. package/web-shell/assets/{chunk-XXDRQBXY-DqDbN44E.js → chunk-XXDRQBXY-CFbSHjzz.js} +1 -1
  169. package/web-shell/assets/classDiagram-DTDB5LWJ-BgKRvG5r.js +1 -0
  170. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BgKRvG5r.js +1 -0
  171. package/web-shell/assets/{cose-bilkent-JH36ORCC-DhjrwADJ.js → cose-bilkent-JH36ORCC-K-uc8eFw.js} +1 -1
  172. package/web-shell/assets/{cynefin-OW5HDTMX-Dh7t-_3M.js → cynefin-OW5HDTMX-Cb0lt2G3.js} +1 -1
  173. package/web-shell/assets/{cynefinDiagram-5FMLGOSQ-5J4kto0C.js → cynefinDiagram-5FMLGOSQ-DWkqpFuH.js} +1 -1
  174. package/web-shell/assets/{dagre-3AP2YEHR-28AdbIcl.js → dagre-3AP2YEHR-Cs8gu3Q4.js} +1 -1
  175. package/web-shell/assets/{diagram-S7CK7UJ4-DmksuoIf.js → diagram-S7CK7UJ4-DlMLXUgK.js} +1 -1
  176. package/web-shell/assets/{diagram-UQ7AKVKN-DUjgQ8Fg.js → diagram-UQ7AKVKN-68PPYL92.js} +1 -1
  177. package/web-shell/assets/{diagram-VSXAHHWV-DUe_FpG-.js → diagram-VSXAHHWV-CxIdRSbx.js} +1 -1
  178. package/web-shell/assets/{diagram-VX7I27RA-CJJ70teK.js → diagram-VX7I27RA-G3C0kWVW.js} +1 -1
  179. package/web-shell/assets/{diagram-Z3DM3KII-BgABlJO4.js → diagram-Z3DM3KII-CwEuAgyS.js} +1 -1
  180. package/web-shell/assets/{docx-preview-BMBWboRx.js → docx-preview-3XzkP9iR.js} +1 -1
  181. package/web-shell/assets/{ebnfDiagram-PWID7BFC-B3nK_Lh7.js → ebnfDiagram-PWID7BFC-DLeMX1Ka.js} +1 -1
  182. package/web-shell/assets/{erDiagram-SSCWMZ5O-DCTdCWlu.js → erDiagram-SSCWMZ5O-CoQLSOGk.js} +1 -1
  183. package/web-shell/assets/{flowDiagram-A5DVABFB-CPxk2UUl.js → flowDiagram-A5DVABFB-BXUV-Qml.js} +1 -1
  184. package/web-shell/assets/{ganttDiagram-EL5Y4UJY-WZzMAKht.js → ganttDiagram-EL5Y4UJY-sWi6Lowi.js} +1 -1
  185. package/web-shell/assets/{gitGraphDiagram-WWUBYQGX-DKcO5ugU.js → gitGraphDiagram-WWUBYQGX-Dsh4-kB4.js} +1 -1
  186. package/web-shell/assets/{index-CkRLMu1y.js → index-CrSq-SfJ.js} +6 -6
  187. package/web-shell/assets/{index-Dbm3-Fps.js → index-DjwWlZt0.js} +1 -1
  188. package/web-shell/assets/{infoDiagram-RXCK75RN-CJX5DzdL.js → infoDiagram-RXCK75RN-JZ6nFIgB.js} +1 -1
  189. package/web-shell/assets/{ishikawaDiagram-5VMMS53U-fF0Id5B6.js → ishikawaDiagram-5VMMS53U-qJj-sQFs.js} +1 -1
  190. package/web-shell/assets/{journeyDiagram-EYS64GPL-BOAezBVe.js → journeyDiagram-EYS64GPL-Ck0jv8SO.js} +1 -1
  191. package/web-shell/assets/{kanban-definition-3QL26DDD-DdNBof9J.js → kanban-definition-3QL26DDD-Ck6_Ydmt.js} +1 -1
  192. package/web-shell/assets/{layout-CXX3l5w0.js → layout-yLaSulE8.js} +1 -1
  193. package/web-shell/assets/{linear-Dnaccp-S.js → linear-CXw5rE6U.js} +1 -1
  194. package/web-shell/assets/{mermaid.core-BzdC3B6T.js → mermaid.core-6WQsyLcq.js} +6 -6
  195. package/web-shell/assets/{mindmap-definition-FBJOCRG2-D-gMUzLw.js → mindmap-definition-FBJOCRG2-BDAmAz8h.js} +1 -1
  196. package/web-shell/assets/{pegDiagram-XKGWAZYB-B9n1WVZq.js → pegDiagram-XKGWAZYB-Rvn5mpol.js} +1 -1
  197. package/web-shell/assets/{pieDiagram-E7YTZNPT-ok49U0zT.js → pieDiagram-E7YTZNPT-DHw4avFL.js} +1 -1
  198. package/web-shell/assets/{quadrantDiagram-AXDQQJYC-DJKha-v3.js → quadrantDiagram-AXDQQJYC-vch6jDK-.js} +1 -1
  199. package/web-shell/assets/{railroadDiagram-O6MQD6OU-DjL4pl7y.js → railroadDiagram-O6MQD6OU-DfVCzYpO.js} +1 -1
  200. package/web-shell/assets/{requirementDiagram-EFPCY7ZU-BpmmRw3A.js → requirementDiagram-EFPCY7ZU-BQAnwpSv.js} +1 -1
  201. package/web-shell/assets/{sankeyDiagram-P5KCCOFB-KpteHB8X.js → sankeyDiagram-P5KCCOFB-fJuxdbbi.js} +1 -1
  202. package/web-shell/assets/{sequenceDiagram-WJ2MYXX4-COMghCpA.js → sequenceDiagram-WJ2MYXX4-B3TtvHJp.js} +1 -1
  203. package/web-shell/assets/{sizeCapture-X5ZJPWSS-5fEwJD-n.js → sizeCapture-X5ZJPWSS-DlJmbcZd.js} +1 -1
  204. package/web-shell/assets/{stateDiagram-HBIQ2CUA-CnC7oXvs.js → stateDiagram-HBIQ2CUA--0kiPvGS.js} +1 -1
  205. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-Dw-ppcvp.js +1 -0
  206. package/web-shell/assets/{swimlanes-XN3QIQJK-bVlhZdve.js → swimlanes-XN3QIQJK-CAytfKbo.js} +1 -1
  207. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-B36XZQuh.js +8 -0
  208. package/web-shell/assets/{timeline-definition-24CTP7MA-CBvYgMu5.js → timeline-definition-24CTP7MA-C-BUmwu6.js} +1 -1
  209. package/web-shell/assets/{vennDiagram-4TSXK5OY-CUTYvV1j.js → vennDiagram-4TSXK5OY-W_dgEGv2.js} +1 -1
  210. package/web-shell/assets/{wardleyDiagram-VM6X3IG4-Djl4gxCB.js → wardleyDiagram-VM6X3IG4-ikAv1QJ9.js} +1 -1
  211. package/web-shell/assets/{xychartDiagram-S5SC5T6Z-BcJZtI2X.js → xychartDiagram-S5SC5T6Z-BmY9Ily6.js} +1 -1
  212. package/web-shell/index.html +1 -1
  213. package/web-shell/sw.js +1 -1
  214. package/web-shell/assets/SpreadsheetPreview-C-GgIuPX.js +0 -1
  215. package/web-shell/assets/channel-6Pj4KPAs.js +0 -1
  216. package/web-shell/assets/classDiagram-DTDB5LWJ-BaTUuuB8.js +0 -1
  217. package/web-shell/assets/classDiagram-v2-JRS7N3AN-BaTUuuB8.js +0 -1
  218. package/web-shell/assets/stateDiagram-v2-4QOOHH4V-V_cfZFBL.js +0 -1
  219. package/web-shell/assets/swimlanesDiagram-VK2B7HYN-25wVg0WL.js +0 -8
@@ -0,0 +1,606 @@
1
+ ---
2
+ name: web3-audit
3
+ description: Smart contract security audit — 10 DeFi bug classes (accounting desync, access control, incomplete path, off-by-one, oracle, ERC4626, reentrancy, flash loan, signature replay, proxy), pre-dive kill signals (TVL < $500K etc), Foundry PoC template, grep patterns for each class, and real Immunefi paid examples. Use for any Solidity/Rust contract audit or when deciding whether a DeFi target is worth hunting.
4
+ sources: public_research, community
5
+ ---
6
+
7
+ # WEB3 SMART CONTRACT AUDIT
8
+
9
+ 10 bug classes. Pre-dive kill signals. Foundry PoC template. Real paid examples.
10
+
11
+ ---
12
+
13
+ ## PRE-DIVE KILL SIGNALS (check BEFORE any code review)
14
+
15
+ > ZKsync lesson: $322M TVL + OZ audit + 750K LOC + 5 sessions = 0 findings. Large well-audited bridges are extremely hard.
16
+
17
+ 1. **TVL < $500K** → max payout capped too low for effort
18
+ 2. **2+ top-tier audits** (Halborn, ToB, Cyfrin, OpenZeppelin) on simple protocol → bugs already found
19
+ 3. **Protocol < 500 lines, single A→B→C flow** → minimal attack surface
20
+ 4. **Formula**: `max_realistic_payout = min(10% × TVL, program_cap)` — if < $10K, skip
21
+
22
+ **Soft kill:** OZ/ToB/Cyfrin audit on current version + codebase > 500K LOC → expect 40+ hours for maybe 1 finding. Only proceed if bounty floor > $50K AND you have protocol-specific expertise.
23
+
24
+ **Target scoring (go if >= 6/10):**
25
+ - TVL > $10M: +2
26
+ - Immunefi program with Critical >= $50K: +2
27
+ - No top-tier audit on current version: +2
28
+ - < 30 days since deploy: +1
29
+ - Protocol you've hunted before: +1
30
+ - Source code + natspec comments: +1
31
+ - Upgradeable proxies: +1
32
+
33
+ ---
34
+
35
+ ## THE ONE RULE
36
+
37
+ > "Read ALL sibling functions. If `vote()` has a modifier, check `poke()`, `reset()`, `harvest()`. The missing modifier on the sibling IS the bug."
38
+
39
+ This single rule explains 19% of all Critical findings.
40
+
41
+ ---
42
+
43
+ ## 1. ACCOUNTING STATE DESYNCHRONIZATION
44
+ > #1 Critical bug class — 28% of all Criticals on Immunefi.
45
+
46
+ ### What It Is
47
+ Two state variables supposed to stay in sync. One code path updates A but forgets B. Later code reads both and makes decisions based on stale B.
48
+
49
+ ```
50
+ Real Value = A - B
51
+ If A updated but B isn't → Real Value appears larger → phantom value
52
+ ```
53
+
54
+ ### Root Cause Patterns
55
+
56
+ **Variant 1: Phantom Yield** (Yeet protocol — 35 duplicate reports)
57
+ ```solidity
58
+ function startUnstake(uint256 amount) external {
59
+ totalSupply -= amount; // decremented BEFORE transfer
60
+ // aToken.balanceOf(this) still reflects old value
61
+ // yieldAmount = aToken.balanceOf - totalSupply = phantom yield
62
+ }
63
+ ```
64
+
65
+ **Variant 2: Fast Path Skips State Update** (Alchemix V3)
66
+ ```solidity
67
+ function claimRedemption(uint256 tokenId) external {
68
+ if (transmuter.balance >= amount) {
69
+ transmuter.transfer(user, amount);
70
+ _burn(tokenId);
71
+ return; // EARLY RETURN — cumulativeEarmarked, _redemptionWeight, totalDebt never updated
72
+ }
73
+ // Slow path: updates all state vars correctly
74
+ alchemist.redeem(...);
75
+ }
76
+ ```
77
+
78
+ **Variant 3: Update Happens in Wrong Order** (Alchemix)
79
+ ```solidity
80
+ function deposit(uint256 amount) external {
81
+ _shares = (amount * totalShares) / totalAssets; // calculated BEFORE deposit
82
+ totalAssets += amount; // assets added AFTER shares calculated → wrong rate
83
+ }
84
+ ```
85
+
86
+ ### Grep Patterns
87
+ ```bash
88
+ # Find all accounting variables
89
+ grep -rn "totalSupply\|totalShares\|totalAssets\|totalDebt\|cumulativeReward\|rewardPerShare" contracts/
90
+
91
+ # Find all early returns in claim/redeem functions
92
+ grep -rn "\breturn\b" contracts/ -B3 | grep -B3 "if\b"
93
+
94
+ # For each early return: which state updates in normal path are skipped?
95
+ ```
96
+
97
+ ---
98
+
99
+ ## 2. ACCESS CONTROL
100
+ > #2 Critical — 19% of Criticals. $953M lost in 2024 alone.
101
+
102
+ ### Variant 1: Missing Modifier on Sibling Function
103
+ ```solidity
104
+ function vote(uint256 tokenId) external onlyNewEpoch(tokenId) { // guarded
105
+ function reset(uint256 tokenId) external onlyNewEpoch(tokenId) { // guarded
106
+ function poke(uint256 tokenId) external { // NO GUARD → infinite FLUX inflation
107
+ }
108
+ ```
109
+
110
+ ### Variant 2: Wrong Check (Existence vs Ownership)
111
+ ```solidity
112
+ function split(uint256 tokenId, uint256 amount) external {
113
+ _requireOwned(tokenId); // checks if token EXISTS, not if caller OWNS it
114
+ _burn(tokenId);
115
+ _mint(msg.sender, amount); // attacker steals tokens they don't own
116
+ }
117
+ ```
118
+
119
+ ### Variant 3: Silent Modifier (if vs require)
120
+ ```solidity
121
+ // VULNERABLE — non-admin silently gets through:
122
+ modifier onlyAdmin() {
123
+ if (msg.sender == admin) {
124
+ _; // body only executes for admin, but non-admin doesn't revert
125
+ }
126
+ }
127
+ // CORRECT: require(msg.sender == admin, "Not admin"); _;
128
+ ```
129
+
130
+ ### Variant 4: Uninitialized Proxy
131
+ ```solidity
132
+ function initialize(address _owner) public { // MISSING: initializer modifier
133
+ owner = _owner; // anyone can call → become owner
134
+ }
135
+ // Fix: constructor() { _disableInitializers(); }
136
+ ```
137
+
138
+ ### Grep Patterns
139
+ ```bash
140
+ # Find sibling function families — do ALL have the same modifier set?
141
+ grep -rn "function vote\|function poke\|function reset\|function update\|function claim\|function harvest" contracts/ -A2
142
+
143
+ # Ownership check: existence vs ownership?
144
+ grep -rn "_requireOwned\|ownerOf\|_isApprovedOrOwner\|_checkAuthorized" contracts/ -B5
145
+
146
+ # Silent modifiers
147
+ grep -rn "modifier\b" contracts/ -A8 | grep -B3 "if (" | grep -v "require\|revert"
148
+
149
+ # Uninitialized initializer
150
+ grep -rn "function initialize\b" contracts/ -A3
151
+ grep -rn "_disableInitializers()" contracts/
152
+ ```
153
+
154
+ ### Real Paid Examples
155
+
156
+ | Protocol | Payout | Bug |
157
+ |---|---|---|
158
+ | Wormhole | $10M | Uninitialized UUPS proxy → anyone calls initialize() |
159
+ | ZeroLend | n/a | split() uses existence check, not ownership check |
160
+ | Alchemix | n/a | poke() missing onlyNewEpoch → infinite FLUX inflation |
161
+ | Parity | $150M frozen | No access control on initWallet() in library |
162
+
163
+ ---
164
+
165
+ ## 3. INCOMPLETE CODE PATH
166
+ > #3 Critical — 17% of Criticals.
167
+
168
+ ### The Function Family Comparison Test
169
+ ```
170
+ 1. List all state changes in function A (deposit/place/create)
171
+ 2. List all state changes in function B (withdraw/update/cancel)
172
+ 3. For each state change in A: does B have the corresponding reverse?
173
+ 4. For each token transfer in A: does B have the corresponding refund?
174
+ If A does X but B doesn't do the reverse of X → BUG.
175
+ ```
176
+
177
+ ### Variant 1: Update Function Missing Refund (ThunderNFT)
178
+ ```solidity
179
+ function place_order(OrderInput calldata order) external {
180
+ token.safeTransferFrom(msg.sender, address(this), order.price); // takes tokens
181
+ orders[orderId] = order;
182
+ }
183
+ function update_order(OrderInput calldata updatedOrder) external {
184
+ // BUG: NO REFUND for sell orders when price decreases → tokens permanently stuck
185
+ orders[orderId] = updatedOrder;
186
+ }
187
+ ```
188
+
189
+ ### Variant 2: Partial Fill Token Stuck (Plume)
190
+ ```solidity
191
+ function swapForETH(uint256 amountIn) external {
192
+ token.safeTransferFrom(msg.sender, address(this), amountIn);
193
+ uint256 filled = dex.swap(amountIn); // partial fill possible
194
+ _refundExcessEth(amountIn - filled); // BUG: refunds ETH only, not ERC20
195
+ }
196
+ ```
197
+
198
+ ### Variant 3: mint() Bypasses Check That deposit() Has (MetaPool)
199
+ ```solidity
200
+ function deposit(uint256 assets, address receiver) public override {
201
+ shares = _deposit(assets, receiver); // includes receipt validation
202
+ }
203
+ function mint(uint256 shares, address receiver) public override {
204
+ assets = convertToAssets(shares);
205
+ _mint(receiver, shares); // MISSING: _deposit() validation → mints without receiving assets
206
+ }
207
+ ```
208
+
209
+ ### Grep Patterns
210
+ ```bash
211
+ grep -rn "function place_\|function create_\|function add_\|function open_" contracts/ -A5
212
+ grep -rn "function update_\|function modify_\|function cancel_" contracts/ -A5
213
+ grep -rn "safeApprove\b" contracts/ # safeApprove without zero-reset before
214
+ grep -rn "delete\b" contracts/ -B5 -A5 # delete before operation completes
215
+ grep -rn "function deposit\|function mint\|function withdraw\|function redeem" contracts/ -A10
216
+ ```
217
+
218
+ ---
219
+
220
+ ## 4. OFF-BY-ONE & BOUNDARY CONDITIONS
221
+ > #4 High — 22% of Highs. Single character change. Massive impact.
222
+
223
+ ### Root Cause
224
+ ```solidity
225
+ // VeChain Stargate — post-exit reward drain:
226
+ function _claimableDelegationPeriods(address delegator) internal view returns (uint256) {
227
+ if (endPeriod > nextClaimablePeriod) { // BUG: should be >=
228
+ return 0; // exited users get nothing
229
+ }
230
+ return nextClaimablePeriod - lastClaimedPeriod; // rewards for period AFTER exit
231
+ }
232
+ ```
233
+
234
+ ### Mental Test for Every Comparison
235
+ > For every `if (A > B)`: "What happens when A == B?" Is that correct?
236
+
237
+ ### 6 Boundary Locations to Check
238
+ 1. Period/Epoch boundaries: `>` vs `>=` at period end
239
+ 2. Time-based locks: does `block.timestamp == deadline` lock or unlock?
240
+ 3. Loop break conditions: `break` with `>` vs `>=`
241
+ 4. Array index boundaries: `i <= array.length` (should be `i < array.length`)
242
+ 5. Amount/balance boundaries: `>= amount` allows exact full withdrawal?
243
+ 6. Rounding/precision: can any input produce 0 output that should be non-zero?
244
+
245
+ ### Grep Patterns
246
+ ```bash
247
+ # Boundaries in comparisons
248
+ grep -rn "Period\|Epoch\|Round\|Deadline\|period\|epoch\|deadline" contracts/ -A3 | grep "[<>][^=]"
249
+
250
+ # Loop breaks
251
+ grep -rn "\bbreak\b" contracts/ -B10
252
+
253
+ # Off-by-one in array access
254
+ grep -rn "\.length\s*-\s*1\|i\s*<=\s*.*\.length\b" contracts/
255
+ ```
256
+
257
+ ---
258
+
259
+ ## 5. ORACLE / PRICE MANIPULATION
260
+ > 12% of all reports. Largest individual payouts. $117M Mango, $70M Curve.
261
+
262
+ ### Bug A: Missing Staleness Check (most common)
263
+ ```solidity
264
+ // VULNERABLE:
265
+ (, int256 price,,,) = priceFeed.latestRoundData();
266
+ return uint256(price); // If Chainlink node goes down, stale price returned indefinitely
267
+
268
+ // CORRECT:
269
+ (, int256 price,, uint256 updatedAt,) = priceFeed.latestRoundData();
270
+ require(block.timestamp - updatedAt <= MAX_PRICE_AGE, "Stale price");
271
+ require(price > 0, "Invalid price");
272
+ ```
273
+
274
+ ### Bug B: Missing Confidence Interval (Pyth)
275
+ ```solidity
276
+ // VULNERABLE:
277
+ PythStructs.Price memory p = pyth.getPriceUnsafe(priceFeed);
278
+ return p.price; // ignores p.conf (confidence interval)
279
+
280
+ // CORRECT:
281
+ require(p.conf * 10 <= uint64(p.price), "Price too uncertain");
282
+ // conf > 10% of price = untrustworthy
283
+ ```
284
+
285
+ ### Bug C: TWAP Too Short (flash loan manipulatable)
286
+ ```solidity
287
+ // VULNERABLE: 60-second TWAP
288
+ uint32[] memory secondsAgos = new uint32[](2);
289
+ secondsAgos[0] = 60; secondsAgos[1] = 0;
290
+ // Flash loan can shift price for entire 60s window
291
+
292
+ // CORRECT: 1800s minimum TWAP (30 min)
293
+ ```
294
+
295
+ ### Bug D: Single-Source Oracle
296
+ ```solidity
297
+ // VULNERABLE: only Uniswap spot price
298
+ uint price = getUniswapSpotPrice(token); // flash loan manipulatable
299
+
300
+ // CORRECT: Chainlink primary, Uniswap TWAP as fallback, require close agreement
301
+ ```
302
+
303
+ ### Grep Patterns
304
+ ```bash
305
+ # Missing staleness check
306
+ grep -rn "latestRoundData" contracts/ -A5 | grep -v "updatedAt\|timestamp"
307
+
308
+ # Pyth price usage — confidence interval checked?
309
+ grep -rn "getPriceUnsafe\|getPrice\b" contracts/ -A8 | grep -v "conf\|confidence"
310
+
311
+ # TWAP windows — short TWAP flag
312
+ grep -rn "secondsAgo\|TWAP\|cardinality" contracts/ -A5
313
+ ```
314
+
315
+ ---
316
+
317
+ ## 6. ERC4626 VAULT ATTACKS
318
+
319
+ ### Exchange Rate Manipulation (near-empty vault)
320
+ ```solidity
321
+ // VULNERABLE — first depositor attack:
322
+ // 1. Attacker deposits 1 wei → gets 1 share
323
+ // 2. Attacker donates large amount directly (transfer, not deposit)
324
+ // 3. Exchange rate: 1 share = (1 + donation) assets
325
+ // 4. Victim deposits → rounds down to 0 shares → free donation to attacker
326
+
327
+ // CORRECT: virtual shares (OpenZeppelin v4.9+)
328
+ function _decimalsOffset() internal view virtual override returns (uint8) {
329
+ return 9; // add 1e9 virtual shares + assets to prevent manipulation
330
+ }
331
+ ```
332
+
333
+ ### ERC4626 Transfer (moves shares but not stake/lock records)
334
+ ```solidity
335
+ // VULNERABLE: shares transferred, but lock records stay with original owner
336
+ // → shares stuck, can't redeem → permanent freeze (Belong pattern)
337
+ function transfer(address to, uint256 amount) external override {
338
+ _transfer(msg.sender, to, amount); // moves shares
339
+ // MISSING: transfer lock record from msg.sender to `to`
340
+ }
341
+ ```
342
+
343
+ ### Grep Patterns
344
+ ```bash
345
+ grep -rn "function transfer\|function transferFrom" contracts/ -A15
346
+ grep -rn "function deposit\|function mint\|function withdraw\|function redeem" contracts/ -A10
347
+ ```
348
+
349
+ ---
350
+
351
+ ## 7. REENTRANCY
352
+ > 2016–present. CEI pattern prevents it. Still found in DeFi.
353
+
354
+ ### Variants
355
+ - **Single-function**: attacker re-enters same function before state updated
356
+ - **Cross-function**: re-enters a sibling function with stale state
357
+ - **Cross-contract**: re-enters via a callback to another protocol
358
+ - **Read-only**: re-enters a view function that returns stale data used by attacker
359
+
360
+ ### Root Cause Pattern
361
+ ```solidity
362
+ // VULNERABLE (effects after interaction):
363
+ function withdraw(uint256 amount) external {
364
+ require(balances[msg.sender] >= amount);
365
+ (bool success,) = msg.sender.call{value: amount}(""); // INTERACTION first
366
+ require(success);
367
+ balances[msg.sender] -= amount; // EFFECT after → reentrancy window
368
+ }
369
+
370
+ // CORRECT (CEI — Checks, Effects, Interactions):
371
+ function withdraw(uint256 amount) external {
372
+ require(balances[msg.sender] >= amount); // CHECK
373
+ balances[msg.sender] -= amount; // EFFECT
374
+ (bool success,) = msg.sender.call{value: amount}(""); // INTERACTION last
375
+ require(success);
376
+ }
377
+ ```
378
+
379
+ ### Grep Patterns
380
+ ```bash
381
+ # External calls before state updates
382
+ grep -rn "\.call{value\|safeTransfer\|transfer(" contracts/ -B10 | grep -v "require\|revert"
383
+
384
+ # Missing nonReentrant modifier on critical functions
385
+ grep -rn "function withdraw\|function redeem\|function claim" contracts/ -A2 | grep -v "nonReentrant"
386
+
387
+ # Storage slot for reentrancy guard
388
+ grep -rn "nonReentrant\|ReentrancyGuard\|_notEntered" contracts/
389
+ ```
390
+
391
+ ---
392
+
393
+ ## 8. FLASH LOAN ATTACKS
394
+
395
+ ### Oracle Manipulation via Flash Loan
396
+ ```solidity
397
+ // Attack flow:
398
+ // 1. Borrow $100M from Aave flash loan
399
+ // 2. Dump token in Uniswap pool → crash spot price
400
+ // 3. Protocol reads Uniswap spot → undercollateralized loans accepted
401
+ // 4. Borrow max against cheap collateral
402
+ // 5. Repay flash loan, keep profits
403
+ ```
404
+
405
+ ### Price Oracle Sanity Checks (what to look for)
406
+ ```bash
407
+ grep -rn "getReserves\|getAmountsOut\|slot0\b" contracts/ -A5
408
+ # spot price from reserves = manipulatable with flash loan
409
+ # slot0 = Uniswap V3 spot price = manipulatable
410
+ ```
411
+
412
+ ---
413
+
414
+ ## 9. SIGNATURE REPLAY
415
+
416
+ ### Missing Nonce
417
+ ```solidity
418
+ // VULNERABLE:
419
+ function permit(address owner, address spender, uint256 value,
420
+ uint256 deadline, uint8 v, bytes32 r, bytes32 s) external {
421
+ bytes32 hash = keccak256(abi.encodePacked(owner, spender, value, deadline));
422
+ // MISSING: nonce not included → same signature usable multiple times
423
+ require(ecrecover(hash, v, r, s) == owner);
424
+ }
425
+ ```
426
+
427
+ ### Missing Chain ID
428
+ ```solidity
429
+ // VULNERABLE: signature valid on mainnet AND testnet AND all forks
430
+ bytes32 hash = keccak256(abi.encodePacked(params));
431
+ // MISSING: block.chainid not in hash → works on any chain
432
+ ```
433
+
434
+ ### Grep Patterns
435
+ ```bash
436
+ grep -rn "ecrecover\|ECDSA\.recover" contracts/ -B20
437
+ # Check: does the signed hash include nonce + chainId + contract address?
438
+
439
+ grep -rn "nonce\|_nonces\|nonces\[" contracts/
440
+ ```
441
+
442
+ ---
443
+
444
+ ## 10. PROXY / UPGRADE ISSUES
445
+
446
+ ### Storage Collision
447
+ ```solidity
448
+ // Implementation and proxy share storage layout
449
+ // Proxy slot 0: _owner
450
+ // Implementation slot 0: _initialized
451
+ // → writing to _initialized overwrites _owner
452
+ ```
453
+
454
+ ### Uninitialized Implementation
455
+ ```solidity
456
+ // If implementation can be initialized directly → anyone becomes owner of implementation
457
+ // Attack: call initialize() on implementation contract → call upgradeTo() → replace logic
458
+ ```
459
+
460
+ ### delegatecall to User-Controlled Address
461
+ ```solidity
462
+ function execute(address target, bytes calldata data) external onlyOwner {
463
+ target.delegatecall(data); // target is validated, but what if owner is compromised?
464
+ }
465
+ ```
466
+
467
+ ### Grep Patterns
468
+ ```bash
469
+ # UUPS initialization protection
470
+ grep -rn "function initialize\b\|_disableInitializers\|initializer" contracts/
471
+
472
+ # Delegate call
473
+ grep -rn "delegatecall\b" contracts/ -B3 -A5
474
+
475
+ # Storage layout — proxy uses EIP-1967 slots?
476
+ grep -rn "0x360894\|EIP1967\|_IMPLEMENTATION_SLOT" contracts/
477
+ ```
478
+
479
+ ---
480
+
481
+ ## FOUNDRY POC TEMPLATE
482
+
483
+ ```solidity
484
+ // SPDX-License-Identifier: MIT
485
+ pragma solidity ^0.8.0;
486
+
487
+ import "forge-std/Test.sol";
488
+ import "../src/VulnerableContract.sol";
489
+
490
+ contract ExploitTest is Test {
491
+ VulnerableContract target;
492
+ address attacker = makeAddr("attacker");
493
+ address victim = makeAddr("victim");
494
+
495
+ function setUp() public {
496
+ // Fork mainnet at specific block
497
+ vm.createSelectFork("mainnet", BLOCK_NUMBER);
498
+
499
+ // Deploy or load target
500
+ target = VulnerableContract(TARGET_ADDRESS);
501
+
502
+ // Fund accounts
503
+ deal(address(token), attacker, INITIAL_BALANCE);
504
+ deal(address(token), victim, VICTIM_BALANCE);
505
+ }
506
+
507
+ function test_exploit() public {
508
+ console.log("Attacker balance before:", token.balanceOf(attacker));
509
+
510
+ vm.startPrank(attacker);
511
+
512
+ // Step 1: Setup conditions
513
+ // Step 2: Execute exploit
514
+ // Step 3: Verify impact
515
+
516
+ vm.stopPrank();
517
+
518
+ console.log("Attacker balance after:", token.balanceOf(attacker));
519
+ assertGt(token.balanceOf(attacker), INITIAL_BALANCE, "Exploit failed");
520
+ }
521
+ }
522
+ ```
523
+
524
+ ### Key Foundry Cheatcodes
525
+ ```solidity
526
+ vm.prank(address) // next call from address
527
+ vm.startPrank(address) // all calls from address until stopPrank()
528
+ vm.deal(address, amount) // set ETH balance
529
+ deal(token, address, amount) // set ERC20 balance
530
+ vm.warp(timestamp) // set block.timestamp
531
+ vm.roll(blockNumber) // set block.number
532
+ vm.createSelectFork("mainnet", blockNumber) // fork mainnet
533
+ vm.expectRevert(bytes) // next call should revert
534
+ vm.label(address, "name") // label for trace output
535
+ vm.assume(condition) // fuzz: discard inputs where false
536
+ ```
537
+
538
+ ### Running Tests
539
+ ```bash
540
+ # Run specific test
541
+ forge test --match-test test_exploit -vvvv
542
+
543
+ # Run with fork
544
+ forge test --match-test test_exploit -vvvv --fork-url $MAINNET_RPC
545
+
546
+ # Gas report
547
+ forge test --gas-report
548
+
549
+ # Coverage
550
+ forge coverage --report summary
551
+ ```
552
+
553
+ ---
554
+
555
+ ## Related Skills & Chains
556
+
557
+ - **`meme-coin-audit`** — When the target is a meme coin / SPL token rather than a DeFi protocol. Workflow primitive: pre-dive kill signals diverge — this skill's "TVL < $500K skip" doesn't apply to meme coins where the rug check (mint authority, freeze authority, LP lock) is the entire audit; route to `meme-coin-audit` instead.
558
+ - **`triage-validation`** — When a contract finding is ready to be filed on Immunefi. Workflow primitive: Immunefi has its own report format, but the impact-validated, chain-end-to-end discipline of `triage-validation` still applies; run the 7Q gate against the Foundry PoC before submitting.
559
+ - **`report-writing`** — When writing the Immunefi report body. Workflow primitive: `report-writing`'s Immunefi template (with Foundry PoC, root cause code snippet, quantified economic impact) is the body skeleton this skill's findings feed into.
560
+ - **`offensive-osint`** — When auditing a protocol's off-chain attack surface (frontend, admin API, RPC gateways). Workflow primitive: on-chain audit is this skill's job; any web2 component of the protocol (web-frontend, admin panel, indexer API) routes to `offensive-osint` for recon.
561
+ - **`bb-methodology`** — When deciding whether to dive at all. Workflow primitive: PART 0 of `bb-methodology` confirms engagement (web3 bug bounty / private audit / smart-contract review); this skill's pre-dive kill signals replace the standard scoring rubric for that engagement type.
562
+
563
+ ---
564
+
565
+ ## Operator Notes (Claude-BugHunter)
566
+
567
+ > Engagement-derived + 2026-specific additions to the vendored foundation.
568
+ > Wisdom from real authorized engagements + Phase 2 verification across
569
+ > this repo's 31+ skill-area live tests. The upstream content covers the WHAT;
570
+ > this layer covers the WHEN-IT-WORKS-vs-WHEN-IT-DOESN'T.
571
+
572
+ ### Bug classes still paying in 2026
573
+
574
+ Flash-loan attacks remain top-paid on Immunefi (top 5 in 2024-2026 by bounty). The economic primitive — borrow $50M, manipulate price oracle, drain pool, repay — keeps reappearing because new protocols keep shipping with composability assumptions that don't hold under flash-loaned imbalance.
575
+
576
+ Reentrancy IS still paying because new protocols keep shipping with ERC-777 / hooks / callbacks. Don't assume the class is dead — the 2023-2025 paid corpus contains 40+ reentrancy bugs against post-Checks-Effects-Interactions codebases (cross-function reentrancy, read-only reentrancy via view functions called during state-mid-flight).
577
+
578
+ Oracle manipulation: still paid heavily but harder. Most projects use Chainlink price feeds now; the attack target is the SECONDARY oracle most projects also use (TWAP from a low-liquidity Uniswap V2 pair, the protocol's own internal oracle, a stale fallback path). Audit the failover chain, not just the primary feed.
579
+
580
+ ### What's new since the vendored content was written
581
+
582
+ - **EIP-1153 (transient storage)** — introduced in 2024. New reentrancy classes: transient-storage reads cached across the same transaction can desync from persistent storage. Audit any `tload`/`tstore` usage for read-after-external-call.
583
+ - **EIP-7702 (Pectra hard fork 2025)** — added EOA-to-smart-account upgrades. New ATO-like primitives via re-delegation: an EOA signed-once can delegate to a contract that the attacker controls, then signature replay across delegations.
584
+ - **Account abstraction (ERC-4337 bundlers)** — paymaster sponsorship abuse and bundler griefing. Paymaster contracts that don't enforce strict sender allowlists drain on first call.
585
+ - **ZK-rollup bridge bugs** — proof-replay across rollups, off-chain prover compromise, sequencer censorship leading to forced-inclusion edge cases.
586
+ - **LST/LRT depeg dynamics** — liquid-staking and liquid-restaking tokens that assume 1:1 peg under loss conditions; oracle assumes peg, market reflects depeg, liquidation logic breaks.
587
+
588
+ ### Tool stack for 2026
589
+
590
+ Foundry remains the test framework. `forge test --gas-report --debug` for invariant testing; `forge fuzz` for property-based testing; `forge inspect` for storage-layout audits. Slither + Echidna for static + fuzz. Mythril for symbolic execution on smaller contracts. tenderly.co for forking + simulation (best UX for replicating attacks against mainnet state).
591
+
592
+ For Solana: anchor framework, sealevel-attacks corpus (curated PoCs by anchor maintainers), soteria-sec / sec3 scanner. For Move (Aptos, Sui): move-prover, aptos-cli `aptos move test`.
593
+
594
+ For cross-chain: hyperlane and LayerZero each have audit-tooling repos; bridge bugs require simulating both endpoints, not just one.
595
+
596
+ ### Where pre-dive kill signals matter
597
+
598
+ TVL under $500K isn't worth the audit time unless the bounty floor is high. Audit firm already covered it = low ROI unless you find what they missed — look at the audit-report scope-exclusion section for what they EXPLICITLY didn't audit (oracles, governance, off-chain components, frontend, the admin path).
599
+
600
+ Multisig signers > 5 + timelock > 48h = low rug-pull risk; if your finding requires team-malicious assumptions, it's low-impact and likely out of scope per Immunefi's "centralization risk" exclusion. Read the program brief — most Immunefi programs explicitly downgrade or reject findings that assume admin malice.
601
+
602
+ ### Reporting discipline
603
+
604
+ Immunefi requires Foundry PoC. Submission without PoC is auto-rejected. Submission with a PoC that requires manual setup ("first deploy this, then call that") usually gets downgraded — the PoC should be a single `forge test` invocation that proves the impact, with explicit `assertEq` on the drained balance / minted token / corrupted state.
605
+
606
+ Severity claims must use Immunefi's severity matrix exactly; don't invent severities. The matrix gates on direct economic loss percentage of TVL — a critical against a $500K protocol pays differently than a critical against a $500M one. Read the program's specific severity assignment before claiming Critical.