AI Agent skill for detecting flash loan attack patterns on Pharos blockchain
Resources
4Install
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_RPCDetection 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.xyzNetworks
- Mainnet: Chain ID 1672
- Testnet: Chain ID 688689