ruzkypazzy

pharos-flashloan-detector

AI Agent skill for detecting flash loan attack patterns on Pharos blockchain

ruzkypazzy 0 1 Actualitzat fa 4 mesos

Recursos

4
GitHub

Instal·la

npx skillscat add ruzkypazzy/pharos-flashloan-detector

Instal·la des del registre de SkillsCat.

SKILL.md

Pharos Flashloan Detector

Detects and analyzes flash loan attack patterns on Pharos blockchain.

Usage

TX_HASH=0x... forge script AnalyzeFlashloan.s.sol --rpc-url $PHAROS_RPC
TARGET_ADDR=0x... forge script AnalyzeFlashloan.s.sol --rpc-url $PHAROS_RPC
CONTRACT_ADDR=0x... forge script AnalyzeFlashloan.s.sol --rpc-url $PHAROS_RPC

Detection Patterns

  • Large Value Transfer (+30)
  • Same Block Transactions (+25)
  • Price Manipulation (+35)
  • Reentrancy Pattern (+25)
  • Unauthorized Access (+20)

Risk Levels

  • NONE / LOW / MEDIUM / HIGH / CRITICAL

Configuration

export PHAROS_RPC=https://rpc.pharos.xyz

Networks

  • Mainnet: Chain ID 1672
  • Testnet: Chain ID 688689