ruzkypazzy

pharos-flashloan-detector

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

ruzkypazzy 0 Updated 4d ago

Resources

4
GitHub

Install

npx skillscat add ruzkypazzy/pharos-flashloan-detector

Install via the SkillsCat registry.

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