Join our Newsletter — 33% off our NHI Course

On-Chain Forensics

The process of tracing malicious blockchain activity by analysing transaction hashes, wallet flows, bridge movements, and associated off-chain evidence. It is used to understand scope, preserve evidence, coordinate freezes, and support recovery or legal action after a protocol exploit.

Expanded Definition

On-chain forensics is the disciplined analysis of blockchain data to reconstruct what happened during a malicious event, identify where value moved, and preserve evidence that can stand up to internal review, incident response, and legal scrutiny. It usually combines transaction graph analysis, wallet attribution, token transfer tracing, bridge and swap activity, and off-chain artefacts such as exchange records, server logs, and communication trails. For security teams, the value of on-chain forensics is not just attribution. It is about building a defensible event timeline and understanding whether funds remain recoverable.

Definitions vary across vendors and investigation teams because blockchains are transparent but not always easy to interpret, especially when attackers use mixers, cross-chain bridges, temporary wallets, or protocol hopping. The concept overlaps with digital evidence handling and incident response, but it is more specialised because it depends on transaction semantics and chain-specific context. Guidance from NIST SP 800-53 Rev 5 Security and Privacy Controls is relevant where evidence preservation, auditability, and incident handling discipline are required. The most common misapplication is treating wallet attribution as proof of identity, which occurs when analysts confuse observable transaction behaviour with verified real-world control of a key.

Examples and Use Cases

Implementing on-chain forensics rigorously often introduces timing and privacy constraints, requiring organisations to weigh rapid containment against the need to preserve evidence and avoid tipping off an attacker.

  • Tracing a protocol exploit from the initial drain transaction through intermediary wallets to a known exchange deposit address, then requesting preservation of logs and account data before funds are converted.
  • Following bridge activity to determine whether stolen assets moved from one chain to another, which is essential when incident response teams need to understand whether the original smart contract or a downstream venue is now the priority.
  • Correlating token swaps, approvals, and liquidity pool interactions with off-chain telemetry to reconstruct attacker behaviour after a DeFi compromise.
  • Using chain analysis to support legal action or sanctions screening by documenting the flow of assets and the addresses involved, while recognising that attribution confidence may remain probabilistic.
  • Reviewing suspicious wallet clusters after a phishing event to identify related addresses, repeated funding sources, and possible operational reuse patterns. For blockchain-focused investigation methods, Chainalysis research and Merkle Science resources are commonly referenced by practitioners, though each case still requires independent verification.

Why It Matters for Security Teams

On-chain forensics turns a confusing token movement event into an actionable incident narrative. Without it, teams may freeze the wrong wallets, overlook a bridge hop, or miss the point at which funds became irretrievable. That creates operational risk, legal exposure, and weakens recovery efforts. It also matters for governance because evidence quality affects whether an incident can be escalated to exchanges, insurers, law enforcement, or counsel with enough confidence to act.

The identity connection is especially important in NHI and agentic AI environments, where wallets, smart contracts, service accounts, and autonomous agents may all participate in value transfer. In those cases, the question is often not only “where did the assets go?” but also “which non-human actor was authorised to move them?” Chain evidence is strongest when paired with key management records, access logs, and deployment telemetry. Useful contextual references include CISA incident response guidance and blockchain-specific intelligence from investigative tooling providers, but the evidentiary standard must still be set by the organisation’s own response process. Organisations typically encounter the need for on-chain forensics only after a drain, bridge compromise, or disputed transfer has already occurred, at which point it becomes operationally unavoidable to address.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 RS.AN CSF analysis function covers incident analysis and understanding event scope.
NIST SP 800-53 Rev 5 AU-6 Audit review and analysis supports reconstructing suspicious transaction activity.
OWASP Non-Human Identity Top 10 NHI guidance addresses wallet and service identity misuse relevant to forensic tracing.

Correlate logs and transaction records under AU-6 to preserve a defensible incident timeline.