Capital allocation dashboard open on a desk in a DeFi protocol operations setting.
Protocols

Inscription Malleability and Re-inscription Attack Vectors

Technical analysis of mechanisms that allow Ordinals inscription content or metadata to change after creation, and the re-inscription attacks that exploit them. Details risks for collectors, marketplaces, lenders, and DeFi protocols whose asset properties may be unexpectedly altered.
introduction
RE-INSCRIPTION AND METADATA INSTABILITY

The Mutable Nature of Inscribed Assets

Inscriptions on Bitcoin are not immutable by default; their content and metadata can be changed, overwritten, or nullified after creation, creating a fundamental risk for any application that relies on their permanence.

The Ordinals protocol assigns ownership and content to individual satoshis based on a set of off-chain indexer rules, not Bitcoin's consensus layer. A critical consequence of this design is that an inscription's data is not a one-time write operation. Through a process known as re-inscription, a new inscription can be written to the same satoshi, effectively overwriting the content and metadata that wallets, marketplaces, and indexers display. This mutability is not a bug in a specific client; it is a permitted behavior within the current ord indexer specification, making the state of any inscribed asset contingent on the latest transaction to involve its host satoshi.

This creates a class of attack vectors where the properties of an asset—its image, its attributes, its status as a 'cursed' or 'blessed' inscription—can be altered without the current owner's consent. A malicious actor could re-inscribe a high-value collectible with a blank or fraudulent image, or change its metadata to misrepresent its collection membership. For DeFi protocols accepting inscriptions as collateral, a re-inscription attack could instantly degrade the value of a loan's backing asset. For marketplaces, a listing's fundamental characteristics could change between the time of listing and the time of sale, breaking the trust assumptions of the order book. The risk is not merely cosmetic; it is an existential threat to the asset's identity.

The operational impact extends to any system that caches or indexes inscription data. An indexer, wallet, or marketplace backend must continuously monitor for new transactions on inscribed satoshis to detect re-inscriptions and update its state. A failure to do so, or a discrepancy between indexer implementations on how to resolve conflicting inscriptions, leads to a fragmented view of asset ownership and content. Builders and operators must therefore implement active, satoshi-aware monitoring and validation logic, moving beyond a simple 'mint-once, read-forever' model. Chainscore Labs provides inscription integrity review and re-inscription monitoring services to help teams design systems that are resilient to this class of metadata instability.

INSCRIPTION MALLEABILITY AND RE-INSCRIPTION THREAT MODEL

Attack Vector Snapshot

A structured overview of the primary technical attack vectors arising from the ability to alter inscription content or metadata after initial creation, and the operational impact on dependent systems.

Attack VectorFailure ModeAffected SystemsOperational Action

Re-inscription Overwrite

A new inscription is bound to an already-inscribed satoshi, changing the effective content or metadata of the original asset without the owner's consent.

Marketplaces, Wallets, Lending Protocols, Collectors

Verify that indexer and wallet logic always resolves the most recent inscription on a satoshi. Implement re-inscription monitoring alerts.

Cursed Envelope Exploit

An inscription is created with a non-standard or buggy envelope that is ignored by the main indexer, only to be recognized later, retroactively changing an asset's properties.

Marketplaces, Indexer Operators, Collectors

Audit handling of all envelope formats. Do not assume an unrecognized envelope is inert. Monitor indexer updates for new envelope recognition.

Metadata Delegation Drift

The content of an inscription is set to delegate to an external resource whose content can be changed by the delegator, altering the asset's appearance or properties.

Wallets, Marketplaces, Lending Protocols

Treat delegated metadata as mutable. For high-value assets, verify the delegation target's immutability or the delegator's trustworthiness.

Parent-Child Mutation

A parent inscription is re-inscribed, thereby altering the perceived properties of all child inscriptions that reference it.

Marketplaces, Wallets, Collectors

Map parent-child dependencies for all held or listed assets. Implement alerts for re-inscription events on parent assets.

Indexer Re-org Race

An attacker exploits a delay or inconsistency between indexers to execute a transaction based on one state view while a re-inscription is confirmed on another, leading to a double-spend-like condition.

Marketplaces, Lending Protocols, Bridges

Enforce a minimum confirmation depth for indexer state finality. Reconcile state across multiple independent indexer implementations before finalizing high-value actions.

Fee-Draining via Re-inscription

A malicious actor re-inscribes a low-value asset with high-value metadata to trick a wallet into using it as a fee input, causing the user to lose the valuable satoshi.

Wallets, Custodians, End Users

Implement strict satoshi-aware coin selection. Flag any UTXO with an inscription history for manual review before use as a fee input.

Liquidation Oracle Manipulation

A re-inscription changes the perceived value of collateral in a lending protocol, triggering a false liquidation event.

Lending Protocols, Oracles, Risk Teams

Do not use raw inscription data for liquidation triggers. Build in time-delays and multi-source verification for collateral valuation.

technical-context
INSCRIPTION INTEGRITY FAILURE MODES

Technical Mechanisms of Malleability

A technical breakdown of how inscription content and metadata can be altered post-creation, undermining the immutability assumptions of Ordinals-based assets.

Inscription malleability in the context of Bitcoin Ordinals and Runes refers to the ability to alter the perceived content, metadata, or ownership of an inscription after its initial confirmation on the Bitcoin blockchain. This is not a consensus-layer attack on Bitcoin itself, but an exploitation of the gap between the immutable on-chain witness data and the off-chain indexer's interpretation of that data. The core mechanism relies on the fact that an inscription is defined by the rules of an off-chain indexer, which parses witness data according to a specific envelope format (the ord protocol). If a new transaction can be crafted that the indexer interprets as a valid update, transfer, or re-inscription of an existing asset, the logical state of that asset changes without any violation of Bitcoin's consensus rules.

The primary attack vector is the 're-inscription,' where a new transaction is broadcast that points to the same logical asset identifier (typically the satoshi or the original inscription ID) but provides new content or metadata in its witness data. Because the indexer's processing logic often follows a 'last-in-time' or 'first-is-valid' rule for resolving conflicts, an attacker can exploit race conditions or ambiguous delegation standards to overwrite an inscription's properties. For example, a collection's metadata pointer could be redirected to a malicious URI, or the content of a text inscription could be replaced entirely. This is particularly dangerous for assets that rely on off-chain metadata for their value, such as profile pictures (PFPs) or token identifiers, where a change in the pointer effectively destroys or steals the asset's social value.

For builders and operators, the operational impact is severe. Marketplaces, wallets, and lending protocols that treat an inscription's indexer-confirmed state as a stable identifier are vulnerable to listing manipulation, collateral fraud, and asset misrepresentation. A lender accepting an inscription as collateral must ensure their validation logic is resistant to re-inscription attacks, which requires deep integration with the indexer's specific conflict-resolution rules and real-time monitoring for competing inscriptions. Chainscore Labs provides inscription integrity review and re-inscription monitoring services to help teams design validation systems that detect malleability attempts before they result in financial loss, ensuring that an asset's state is not just indexer-deep but operationally secure.

MALLEABILITY IMPACT MATRIX

Affected Systems and Stakeholders

Marketplace Integrity at Risk

Marketplaces that cache inscription metadata on listing are the most exposed. A re-inscription can change the content, collection traits, or provenance of an asset after a sale is agreed upon but before settlement, leading to buyer fraud.

Immediate Actions:

  • Re-validate inscription content against a trusted indexer at the moment of sale execution, not just at listing time.
  • Implement a 'content hash' verification step in the order-matching engine.
  • Display clear warnings for assets with a history of re-inscriptions.

Aggregators face a compounded risk, as they must trust the integrity of multiple downstream marketplace APIs. Chainscore can review your order-matching logic and indexer integration to ensure atomic validation of inscription state during trade settlement.

implementation-impact
MALLEABILITY RISK CONTROLS

Operational and Integration Impact

Inscription malleability introduces a class of risk where an asset's metadata or content can change after initial creation, breaking the core assumption of permanence for collectors, lenders, and marketplaces. The following areas require immediate operational attention.

01

Marketplace Listing and Metadata Integrity

Marketplaces that cache inscription metadata at listing time are vulnerable to re-inscription attacks where the displayed content diverges from the on-chain state. An attacker can list a desirable inscription, then re-inscribe it with malicious or worthless content post-sale. Implement real-time indexer validation at the point of purchase, not just at listing time. Use content hashing and monitor for re-inscription events on high-value listings. Chainscore can review your order-matching logic for time-of-check vs. time-of-use vulnerabilities.

02

Lending and Collateral Valuation Risk

Lending protocols that accept inscriptions as collateral face a critical risk: a borrower can re-inscribe a high-value asset into a worthless one after taking a loan, leaving the protocol under-collateralized. Loan-to-value ratios and liquidation thresholds become meaningless without malleability-resistant validation. Implement oracle-based content verification that checks inscription state at every block. Chainscore provides collateral integrity review and re-inscription monitoring for DeFi lending platforms.

03

Custodial UTXO Management

Custodians holding inscribed satoshis must ensure their UTXO selection logic is satoshi-aware. A standard wallet sweeping a UTXO containing an inscribed satoshi as a network fee will permanently destroy the asset. This risk is amplified when re-inscription changes the perceived value of a satoshi, potentially causing a custodian to misclassify it. Implement strict UTXO locking and satoshi-aware coin selection. Chainscore offers custodial workflow audits to prevent accidental spending of inscribed assets.

04

Indexer State Reconciliation and Fork Monitoring

Re-inscription validity depends entirely on the rules of the dominant indexer. If indexer implementations diverge on how to handle re-inscribed satoshis, two marketplaces could show different owners for the same asset. This creates arbitrage and double-spend-like scenarios. Operators must monitor multiple indexer implementations for state divergence and establish a clear canonical source policy. Chainscore provides indexer divergence monitoring and reconciliation tooling.

05

Collector and User Wallet Display Integrity

Wallets that display inscription content without verifying its current indexer state may show stale or manipulated metadata. A user could believe they hold a specific asset while the underlying inscription has been re-inscribed to something else. This creates a false sense of ownership and exposes users to social engineering attacks. Wallets must implement real-time indexer queries and display clear warnings when re-inscription events are detected for held assets.

06

Bridge and Cross-Protocol Asset Representation

Bridges that lock inscribed satoshis on Bitcoin and mint representative tokens on another chain must handle re-inscription events. If the underlying inscription changes, the bridged representation becomes fraudulent. Implement a circuit-breaker pattern that freezes bridged assets when a re-inscription is detected on the source UTXO. Chainscore can review bridge security models for inscription malleability and design freeze-and-recover mechanisms.

INSCRIPTION MALLEABILITY AND RE-INSCRIPTION ATTACK VECTORS

Risk Severity Matrix

Severity assessment of technical mechanisms that allow inscription content or metadata to change after initial creation, and the resulting impact on dependent systems.

RiskFailure modeSeverityAffected actorsMitigation

Re-inscription content replacement

A new inscription on the same satoshi replaces the content displayed by standard indexers, altering the asset's perceived identity.

Critical

Collectors, marketplaces, lending protocols, wallets

Implement satoshi-first validation; monitor for re-inscription events on high-value assets; verify content hash against canonical indexer state.

Envelope format ambiguity

An inscription uses a non-standard or malformed envelope that one indexer parses but another ignores, leading to divergent state views.

High

Indexer operators, multi-platform marketplaces, cross-protocol bridges

Standardize on a single indexer implementation or implement consensus-grade cross-indexer validation; audit envelope parsing logic.

Metadata field injection

An attacker appends or modifies metadata fields (e.g., delegate, pointer) post-creation, changing the behavior of compliant wallets or protocols.

High

Wallet developers, DeFi protocols using inscription metadata, custody providers

Validate metadata immutability at the protocol integration layer; reject inscriptions with mutable metadata fields; monitor for metadata change events.

Parent-child re-organization

A re-inscription changes the parent reference of a child inscription, breaking collection hierarchies or provenance chains relied upon by marketplaces.

Medium

Marketplace backends, collection indexers, provenance verification tools

Pin collection hierarchies to a specific block height; do not dynamically resolve parent references; verify provenance against immutable on-chain data.

Cursed inscription reclassification

An indexer update reclassifies a previously 'cursed' inscription as standard, retroactively changing its properties and market value.

Medium

Collectors, speculative traders, marketplace listing engines

Track cursed inscription status changes; implement reclassification alerts; do not treat cursed status as permanent for valuation purposes.

Delegation target substitution

A re-inscription changes the delegate field, redirecting royalty payments or protocol interactions to an attacker-controlled address.

High

Royalty payment systems, DeFi protocols using delegation, marketplace fee engines

Validate delegation immutability; require explicit user confirmation for delegation changes; monitor delegate field for unexpected mutations.

Content-type spoofing

A re-inscription changes the content-type field, causing a wallet or marketplace to misinterpret the data payload (e.g., rendering executable content as an image).

Critical

Wallet rendering engines, marketplace frontends, browser-based viewers

Strictly validate content-type against actual data; sandbox rendering environments; do not trust content-type without content inspection.

INSCRIPTION INTEGRITY VERIFICATION

Malleability-Resistant Validation Checklist

A technical checklist for builders, marketplace operators, and custody providers to validate that their systems correctly handle inscription malleability and re-inscription vectors. Passing these checks confirms that asset properties cannot be unexpectedly altered after initial creation, protecting against metadata manipulation and value destruction.

What to check: Your parser must validate that incoming inscription data strictly conforms to the OP_FALSE OP_IF ... OP_ENDIF envelope format with exactly one content type declaration and one payload segment. Reject transactions with multiple envelope patterns, nested envelopes, or non-standard field ordering.

Why it matters: Ambiguous or malformed envelopes are the primary vector for indexer divergence. One indexer may interpret an inscription one way while another sees it differently, leading to asset state fragmentation. Attackers exploit this by crafting transactions that appear valid to your system but resolve differently on the canonical indexer.

Confirmation signal: Your parser produces identical output to the reference ord indexer for a test suite of 100+ edge-case envelopes, including cursed inscriptions, zero-length payloads, and duplicate content type fields.

Chains We Build On

Looking to build on a specific blockchain?

We build smart contracts, DeFi applications, wallets, tokenization platforms, and blockchain infrastructure across the major ecosystems teams choose today. That includes Ethereum, Arbitrum, Optimism, Polygon, Avalanche, Solana, Sui, Aptos, Hedera, Stellar, and NEAR, with support for additional EVM and non-EVM networks based on your product requirements.

EVM ecosystems

  • Ethereum logo
    Ethereum
  • Arbitrum logo
    Arbitrum
  • Optimism logo
    Optimism
  • Polygon logo
    Polygon
  • Avalanche logo
    Avalanche
  • Cronos logo
    Cronos

Non-EVM ecosystems

  • Solana logo
    Solana
  • Sui logo
    Sui
  • Aptos logo
    Aptos
  • Hedera logo
    Hedera
  • Stellar logo
    Stellar
  • NEAR logo
    NEAR

Additional ecosystems

  • Polkadot logo
    Polkadot
  • Cosmos logo
    Cosmos
  • TON logo
    TON
  • Cardano logo
    Cardano
  • Algorand logo
    Algorand
  • Tempo logo
    Tempo

Also available for Base, appchains, custom EVM networks, and cross-chain product architecture.

MALLEABILITY RISK FAQ

Frequently Asked Questions

Common questions from protocol architects, marketplace operators, and risk teams evaluating the impact of inscription malleability and re-inscription vectors on asset integrity and platform security.

Inscription malleability refers to the ability to alter the content or metadata of an existing inscription after its initial creation, without changing the inscription ID. This is possible because the inscription ID is derived from the transaction ID and output index of the reveal transaction, not from a hash of the content itself. If the reveal transaction is replaced (via RBF), mutated, or if the indexer re-interprets the data differently, the content associated with that ID can change. This means an inscription that initially displayed one asset could later display another, breaking the immutability assumption that collectors, marketplaces, and lending protocols rely on.

Trusted by Industry Leaders

Delivering blockchain solutions for 5+ years.

We have partnered with 50+ leading DeFi protocols, NFT ecosystems, and fintech innovators to build secure, scalable, and capital-efficient blockchain products.

Selected Partners & Clients

ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
ChainVote logo
Reax logo
Sokail logo
Swapsicle logo
SyntheX logo
Tekika logo
Telos logo
Zexe logo
“I've been working with Chainscore Labs for last 3+ years, they've consistently delivered with strong ownership across multiple projects. The team is reliable and detail-oriented.”
L
Lee Erswell
CEO, Telos Foundation
how to get started

How to get started?

If you're looking for blockchain integration, ChainScore Labs has 5+ years of experience helping teams build and integrate exchanges, wallets, smart contracts, tokenization solutions, and protocol-connected products, we can help you choose the right path, integrate securely, and get to production faster. Our team consists of experienced blockchain developers and architects who can help you with your blockchain integration needs.

01

Exploration & Strategy

Define your product goals and choose the right blockchain architecture for your use case.

02

Architecture & Design

Design the smart contracts, tokenomics, and security parameters of your system.

03

Development & Integration

Build and integrate with wallets, oracles, and front-end dApps for a seamless experience.

04

Security & Launch

Comprehensive audits followed by a risk-managed mainnet deployment to protect your users.

Start a build

Need a blockchain engineering team?

Send the project context and we will respond with next steps, scope questions, and a practical path to delivery.