Join our Newsletter — 33% off our NHI Course
Home› Guides› Blockchain Analytics and On-Chain Monitoring Guide: Alerts, Thresholds…
Guide Fraud Prevention

Blockchain Analytics and On-Chain Monitoring Guide: Alerts, Thresholds and Response for Protocols

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 27 October 2026 14 min read
On this page

Most protocol losses are visible on-chain before they are complete, but a team only benefits if an alert reaches someone who knows what to do with it in minutes, not hours. An admin key that changes a proxy implementation, a signer set that shrinks, a mint far above the normal rate or a treasury outflow at three in the morning all leave public evidence. This guide explains what to monitor, how to set thresholds that catch attacks without burying the team in noise, how to route and test alerts, how monitoring connects to pausing and incident response, and where blockchain analytics and sanctions screening fit. It draws on the Security Alliance (SEAL) Monitoring framework and official tool documentation, and is written for protocol security leads, treasury and operations teams, exchanges and custodians that hold assets on public chains. For the wider picture, see the Web3 and Crypto Security Guide.

Key takeaways

  • An alert without an owner is not a control. The SEAL framework makes this its first principle: every alert needs a named recipient and a documented response, usually a pause or circuit breaker.
  • Privileged changes matter more than price. Ownership transfers, role grants, proxy upgrades, signer and threshold changes and new modules are rare, high-signal events and should page someone every time.
  • Thresholds need a baseline. Set absolute and relative limits from historical activity, use primary and secondary tiers, and combine metrics in one rule to cut false positives.
  • Delivery fails silently. An expired bot token or broken webhook removes all coverage without warning, so test alerts end to end and alert when monitors themselves are changed or disabled.
  • Run two independent stacks for high-value systems. SEAL recommends one self-hosted and one managed provider watching the same invariants, so an outage at either does not leave you blind.

What on-chain monitoring and blockchain analytics cover

The two terms overlap but answer different questions. On-chain security monitoring watches your own contracts, wallets and dependencies in near real time to detect attacks and unsafe changes. Blockchain analytics looks across the chain, attributing addresses to services and entities and tracing flows, to support investigations, anti-money laundering (AML) and sanctions compliance. A protocol mostly needs the first; an exchange, custodian or payment firm needs both.

DisciplineMain questionTypical usersTime scale
Security monitoringIs something happening to our contracts, keys or funds right now?Protocol security, treasury operations, DAO stewardsSeconds to minutes
Infrastructure monitoringAre our nodes, RPC endpoints and indexers healthy?DevOps, node operators, validatorsMinutes
Blockchain analytics and tracingWhere did these funds come from and go, and who controls those addresses?Exchanges, custodians, investigators, law enforcementHours to months
Sanctions and AML screeningIs this counterparty address listed or linked to illicit activity?Regulated crypto-asset service providers, compliance teamsPer transaction

SEAL scopes its framework to on-chain state and events, and places hosts, CI pipelines and cloud control planes under its infrastructure and DevSecOps guidance. In practice the boundary matters: the largest thefts often start off-chain, so on-chain alerts should feed the same incident process as your cloud and endpoint alerts.

What to monitor

The SEAL guidelines list the critical metrics as large transfers from protocol or treasury wallets, minting and burning, ownership and admin role changes, contract upgrades and proxy implementation changes, role grants and revocations, and unusual gas usage. The table turns those coverage tracks into concrete signals for EVM chains. Event names are the common ones in OpenZeppelin and Safe contracts; check the ABIs of your own deployments, because forks and custom contracts rename them.

TrackSignalExample events or fieldsDefault severity
Access controlOwner or admin changed, role granted or revokedOwnershipTransferred, RoleGranted, RoleRevoked, AdminChangedCritical, page always
UpgradesProxy points to a new implementationUpgraded(address) (ERC-1967), upgrade function calls on the proxy adminCritical unless matched to a scheduled change
Multisig configurationSigners, threshold, modules or guard changedSafe AddedOwner, RemovedOwner, ChangedThreshold, EnabledModule, ChangedGuardCritical
Funds movementOutflow from treasury, vault or bridge above thresholdNative value, ERC-20 Transfer from monitored addressesTiered by amount and share of balance
SupplyMint or burn outside normal size or frequencyTransfer from or to the zero address, custom mint eventsHigh to critical
ApprovalsLarge or unlimited approvals from protocol walletsERC-20 Approval eventsHigh
Exploit patternsFlash loan interactions with your contracts, abnormal gas, repeated failed callsCalls from flash loan providers within one transaction, gas outliers, reverted transactionsHigh, combine with funds signals
BridgesUnusual inflow or outflow volume, state or ownership changes on bridge contractsDeposit and withdrawal events, validator set changesCritical for state changes
Oracles and governancePrice deviation beyond bounds, unexpected proposals or fast-tracked executionFeed updates, proposal created, queued and executed eventsHigh
Emergency controlsPause or unpause by anyonePaused, UnpausedCritical (unexpected unpause is as alarming as a pause)
Node and networkRPC availability, block propagation, confirmation latencyPrometheus metrics, provider statusMedium, but a blind monitor is a critical gap

Two additions are worth making beyond the SEAL list. First, watch the addresses of your privileged signers and deployers, not only your contracts: a signer wallet suddenly interacting with an unknown contract is an early sign of compromise. Second, watch your dependencies. A lending market that relies on another protocol's oracle or vault inherits its incidents, so subscribe to alerts on the contracts you integrate with. See the Smart Contract Access Control Guide and the Smart Contract Upgradeability and Proxy Security Guide.

Setting thresholds that work

The SEAL thresholds page does not give universal numbers, and none exist: a treasury that moves funds weekly and a vault with constant user withdrawals need very different rules. It sets out a method instead.

  1. Baseline normal activity: pull at least several months of history for each monitored address and metric, such as daily outflow, mint rate and number of distinct callers.
  2. Use absolute and relative limits: for wallet transfers, alert on a fixed value and on a percentage of balance, so a small treasury does not escape a value threshold set for a large one.
  3. Track size and frequency: for minting, alert on the amount minted and on how often minting occurs.
  4. Tier the alerts: primary thresholds for critical, paging alerts and secondary thresholds for notifications reviewed in working hours.
  5. Combine metrics: a large outflow plus a flash loan in the same transaction plus a first-time caller is far more meaningful than any one of these alone.
  6. Add anomaly rules: compare current behaviour with past behaviour. SEAL's illustration is a token where about 4% of supply normally changes owner per day; 20% moving within 10 minutes should be investigated.
  7. Review on a schedule: adjust thresholds as activity grows and after every false positive or missed event.

Privileged-change alerts are the exception to tuning. There is no normal rate for an unplanned owner change, so these should fire on every occurrence and be suppressed only by matching a change ticket or a scheduled governance action, never by a volume threshold.

Tooling options and how to choose

SEAL divides tools into open-source or self-hosted and commercial or hosted, and judges them on detection quality and operational reliability rather than feature lists. The table compares the options in vendor-neutral terms.

ApproachExamples from official documentationStrengthsWeaknesses
Self-hosted rules engineOpenZeppelin Monitor (AGPL-3.0; EVM, Stellar, Solana, partial Midnight)Full control of rules and data, auditable configuration, no third-party outage riskYou own uptime, RPC capacity, upgrades and on-call for the monitor itself
Self-hosted explorer with alertsBlockScout (MIT)Useful for custom or smaller chains where hosted tools lack coverageBasic alerting, heavy to operate
Metrics stackPrometheus and GrafanaChain-agnostic, good for node health, RPC availability and custom on-chain metricsNeeds exporters and custom logic for contract-level detection
Detection networkForta detection botsShared and community-built detectionsDepends on the network and bot authors; verify coverage for your contracts
Commercial managed platformHosted monitoring and anomaly detection services, some with machine learning modelsFast to deploy, vendor runs operations, broader threat intelligencePlatform downtime or shutdown removes visibility; data leaves your control

The SEAL selection criteria are a good test for any option:

  • Uptime: guaranteed availability and a public status page.
  • Time-to-alert: how long from block inclusion to a responder's phone.
  • Delivery guarantee: at-least-once or best-effort.
  • Chain support: the SEAL catalogue focuses on EVM chains, so verify non-EVM support separately.
  • Redundancy: for high-value protocols, two independent setups, ideally one self-hosted and one managed.
  • Channel: paging tools with escalation and delivery receipts for critical alerts; chat for visibility only; never email alone.

OpenZeppelin Monitor shows what a rules engine configuration looks like: each monitor names networks, contract addresses and optional ABIs, then match conditions on function signatures, event signatures and transaction fields, joined with AND and OR expressions. Optional filter scripts in Python, JavaScript or Bash decide whether a match fires; note the documented default that a script timeout counts as a match, which is the safe failure mode. Notifications go to Slack, Discord, Telegram, email, custom scripts or webhooks with optional HMAC signing, with three retries by default.

Alert routing, testing and tamper detection

SEAL's guidelines are blunt on delivery. Send alerts through several channels, decide in advance who is paged for each category and what their first steps are, and test the whole path, not just the rule. A misconfigured webhook or expired token can stop alerting with no error anywhere.

  • Route by severity: critical alerts to a paging tool with escalation to a second person after a fixed time; high alerts to an on-call chat channel; informational alerts to a daily digest.
  • Write the first five minutes: each critical alert type should link to a runbook entry: who confirms, who can pause, which multisig signs the response.
  • Test weekly: trigger a synthetic alert on a testnet or fork, or a canary transaction from a dedicated address on mainnet, and confirm a human acknowledges it.
  • Monitor the monitor: alert when a monitor is disabled, edited or stops processing blocks, and when the RPC endpoint behind it falls behind the chain head.
  • Protect the configuration: keep monitor definitions in version control with review, and keep webhook secrets and bot tokens in a secrets manager. See the Secrets Management Guide.

From alert to action: pausing and response

SEAL's second principle is that every alert should map to a documented response, typically a pause mechanism or circuit breaker. Monitoring that only records what happened is forensics, not defence. A practical design has three layers.

  1. Human response: the on-call responder confirms the alert, opens a war room and invokes the pause through a dedicated emergency multisig with a low threshold and limited powers (pause only, never upgrade or withdraw).
  2. Pre-signed or scripted actions: defensive transactions prepared and tested in advance, such as pausing specific markets, so execution is one step under pressure.
  3. Automated response: a monitor that triggers a pause directly. SEAL reserves this for higher maturity, and only after the trigger conditions and failure modes have been reviewed, because an attacker who can spoof the trigger can grief the protocol, and a bug can freeze users' funds.

Pre-execution defences are a separate category: transaction guards on multisigs, simulation before signing and firewall-style checks that block a transaction before it lands. They complement monitoring but do not replace it, since many attacks succeed in a single block and detection after the fact still drives containment, exchange notifications and recovery. The full response process is in the Web3 Incident Response Playbook, and signer controls in the Multisig Treasury Operations Guide.

Analytics, tracing and sanctions screening

When funds leave, analytics takes over. Tracing follows stolen assets through swaps, bridges and mixers so the team can alert exchanges and stablecoin issuers that may freeze them. For regulated firms, screening is also a legal duty. OFAC's FAQs state that sanctions obligations are the same for digital currency as for fiat, that it lists digital currency addresses on the SDN List as identifiers of blocked persons, and that those listings are not likely to be exhaustive. Its Sanctions List Search finds an address only on an exact match in the ID field, and blocked virtual currency must be reported within 10 business days and annually while it remains blocked.

  • Screen both directions: incoming deposits and outgoing withdrawals, including indirect exposure through intermediary addresses where your risk assessment requires it.
  • Do not rely on the list alone: because listings are not exhaustive, combine the SDN List with commercial attribution data and your own investigation.
  • Preserve evidence: record transaction hashes, block numbers, alert payloads and decisions at the time, because later investigation and disclosure depend on them.
  • Know the Travel Rule interface: exchanges also exchange originator and beneficiary data with counterparties. See the Crypto Travel Rule Compliance Guide.

Where identity fits

Most on-chain alerts are, underneath, identity events. An owner change is a change to who can administer a contract; a new Safe signer is a new privileged identity; a relayer or keeper key is a non-human identity that signs transactions all day. Treat these keys like any privileged machine credential: inventory them, give each one the narrowest role, monitor their on-chain activity as well as the contracts they control, and rotate them after any suspected exposure. The same applies to the monitoring stack's own credentials, such as RPC API keys and webhook tokens. See the MPC Wallet and Threshold Signing Security Guide.

Framework mapping

ActivityNIST CSF 2.0NIST SP 800-53 Rev. 5MITRE ATT&CK v20
Watching contracts, wallets and transactionsDE.CM-01, DE.CM-09SI-4 System Monitoring, CA-7 Continuous MonitoringT1657 Financial Theft (impact being detected)
Alerting and triageDE.AE-02, DE.AE-03SI-4(5) System-generated Alerts, AU-6 Audit Record ReviewT1565 Data Manipulation (altered transactions)
Pause and response runbooksRS.MA-01IR-4 Incident Handling, IR-8 Incident Response Plan
Supplier and front-end compromise feeding on-chain theftDE.CM-09SI-4T1195.002 Compromise Software Supply Chain, T1199 Trusted Relationship

Measuring whether monitoring works

  • Coverage: percentage of deployed contracts, privileged addresses and integrated dependencies with active monitors (target 100% of contracts holding funds or privileges).
  • Time-to-alert: median seconds from block inclusion to delivery, measured with canary transactions.
  • Time-to-acknowledge: median minutes from critical alert to human acknowledgement, from paging tool records.
  • Delivery test pass rate: share of weekly end-to-end tests acknowledged within target.
  • Precision: share of critical alerts that were real or matched to an authorised change; falling precision means thresholds need tuning.
  • Monitor health: minutes per month any monitor lagged the chain head or was down.

Common failure patterns

  • Alerts to a chat channel nobody watches at night: SEAL warns that chat tools lack delivery guarantees; critical alerts need paging with escalation.
  • Monitoring the contract but not the signers or the front-end: the Bybit hack began with a compromised Safe developer and malicious JavaScript in the Safe{Wallet} front end that targeted Bybit's address; the code was modified two days before the theft, a change that front-end integrity monitoring could have surfaced.
  • Silent breakage: a rotated bot token or changed webhook URL leaves the dashboard green while nothing is delivered.
  • Value-only thresholds: rules tuned for normal volume miss a privileged upgrade that moves no funds at all until the next block.
  • No authority to act: the responder sees the alert but nobody on call can sign a pause, so the drain continues while signers are found.
  • One provider: a hosted platform outage or RPC failure during an incident leaves the team blind.

Practitioner checklist

  • Inventory every contract, proxy admin, multisig, signer, keeper and treasury address, plus the external contracts you depend on.
  • Create critical, always-page monitors for ownership, role, upgrade, signer, threshold, module, guard and pause events.
  • Baseline outflows and minting, then set absolute, relative and frequency thresholds in primary and secondary tiers.
  • Route critical alerts to a paging tool with escalation, never to email or chat alone.
  • Link every critical alert type to a runbook naming who confirms and who can pause.
  • Test alert delivery end to end at least weekly and alert on monitors being changed, disabled or lagging.
  • Run a second, independent monitoring stack for high-value contracts.
  • Screen counterparties against the OFAC SDN List and attribution data where you are regulated, and record evidence for every decision.
  • Review thresholds and coverage after each deployment, incident and quarter.

Standards and references

Related NHI Mgmt Group resources: Web3 and Crypto Security Guide · Web3 Incident Response Playbook · Smart Contract Security Guide · Multisig Treasury Operations Guide · Crypto Scam and Drainer Guide

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 27 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org