Skip to content

This agent detects role changes affecting smart contracts, by checking function calls against a keyword list.

License

Notifications You must be signed in to change notification settings

tf0rs/forta-role-change-detection-agent

Repository files navigation

Role Change Detection Agent

Description

This agent detects transactions triggering role changes in smart contracts.

Supported Chains

  • Ethereum
  • Binance Smart Chain
  • Polygon
  • Arbitrum
  • Optimism
  • Fantom
  • Avalanche

Alerts

Describe each of the type of alerts fired by this agent

  • ROLE-CHANGE
    • Fired when a transaction to a contract invokes a function call that appears to trigger a role change
    • Severity is always set to "medium"
    • Type is always set to "suspicious"
    • Metadata includes the key words that triggered the alert, the function call made in the transaction, and the anomaly score

Test Data

The agent behaviour can be verified with the following transactions:

  • 0x30a332902920cb6886281f6d28abfa5775559647eb7288e7cc00763fe4427f7b (calls setMetadataManager(address))
  • 0xbdc28a3d1b8dc6ccaa88c30839b0c0b8275c6e72fe23881d4eddd93c1e7e3c9c (calls transferOwnership(address))

About

This agent detects role changes affecting smart contracts, by checking function calls against a keyword list.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published