Skip to content
Back to articles

Insider Threats in Digital Asset Custody Systems

Category: Articles

When discussing security in digital asset custody systems, the first threat that often comes to mind is key theft. However, security is not solely about protecting keys. At its core, security is the protection of assets, information, and systems against unauthorized access, modification, and/or destruction.

In the context of digital assets, this concept becomes even more critical. These assets exist entirely in a virtual environment, cannot be physically touched, and, if lost, can be extremely difficult or even impossible to recover. Security is therefore not only a technical requirement but also a fundamental element in safeguarding the value of these assets and maintaining user trust.

Technologies and methods such as MPC, SGX, HSM, and quorum-based distributed threshold approvals can protect keys as if they were locked inside an armored vault. However, it is important to note that the most significant attacks often occur without the keys ever being compromised.

Data Manipulation

This critical threat begins with the manipulation of the data that feeds the system. The real danger lies not in the theft of keys, but in the alteration—whether accidental or malicious—of data the system assumes to be correct. The system processes this information and acts accordingly, allowing an attacker to steer it toward their own objectives without ever gaining access to the keys.

For example, in 2020, a DeFi platform suffered a similar attack despite securing all its private keys with advanced methods. The attackers manipulated the platform's price oracles to feed fake market data into its smart contracts. Believing this data to be genuine, the platform triggered on-chain transactions that, within a short time, transferred millions of dollars worth of assets into addresses under the attacker's control. The keys remained securely stored, but the false data alone was enough to make the system compromise the very assets it was meant to protect.

In digital asset custody systems, the level of risk remains significantly higher compared to traditional financial infrastructures. This is because not only the systems themselves but also the critical data representing vast amounts of digital assets must be protected entirely within a digital environment. Although regulatory frameworks and legal mechanisms are strengthening day by day, transactions on the blockchain are often irreversible. As a result, any security breach can lead not only to financial losses but also to the erosion of user and ecosystem trust, along with severe reputational damage.

Internal Attack

When systems are designed, defensive mechanisms such as firewalls, security testing, and encrypted communications (and many more) are typically put in place to guard against external attacks. However, defenses against scenarios originating from inside the environment whether triggered by a malicious actor, a compromised system component, or manipulated internal data are often far less robust than those designed to counter external threats. A system may not be adequately prepared to handle the alteration of data it assumes to be correct.

One morning, the systems may appear to be functioning flawlessly, dashboards all green, no error logs in sight. In reality, however, the data feeding the system has been manipulated. As a result, valid cryptographic keys are used in the wrong context. From the system's perspective, everything looks normal, monitoring metrics stay within thresholds, no errors are logged, and no alerts are raised. Meanwhile, the operational flow is silently redirected according to the attacker's intent. This is a classic example of an internal attack, a threat originating from within.

Immutability

Data integrity refers to the preservation of the accuracy, consistency, and immutability of information within a system. In other words, it means that data is stored exactly as it was at the time of recording, without alteration, and is not modified in an unauthorized or uncontrolled manner. In digital asset custody systems, this principle is particularly critical because, except for specific controlled cases such as configuration updates, no historical record should ever be altered, whether with or without authorization. The manipulation of even a single record can trigger cascading effects, leading to severe financial losses and significant damage to user trust.

Implementation methods:

Chained hash structures

Signing with hardware or hardware-assisted software (HSM, SGX, etc.)

Cryptographic verification and alert mechanisms

Storing verification data in external systems (e.g., blockchain)

The recommended approach is to combine a chained hash structure with hardware-based signing. In this method, each piece of data or modification is first marked with a unique fingerprint-like hash. This hash is then signed within an SGX environment using a key stored in an HSM, and securely preserved. For every subsequent change, the new hash is compared against the previous one, and the signature is verified. If any discrepancy is detected, the system immediately triggers an alert and executes predefined actions.

Technically, this method is similar to validating database changes using blockchain principles. Much like a ledger with sealed pages, any attempt to alter a page would break its seal, an action that can be detected instantly.

Verifying Trusted Data Sources

Relying on a single data source (node, API, or service provider) is one of the biggest risks in digital asset custody systems. An attacker injecting a malicious node into the network (or forcing reliance on a single source through an eclipse/isolation attack) can feed the system false but internally consistent messages, such as "an asset has been received," "a block has been produced," or "a transaction has been confirmed." The problem is that the system will treat this data as correct and trigger on-chain flows that appear entirely legitimate but align with the attacker's objectives, as there is no secondary source to refute the false information.

This risk can be mitigated through the following measures:

Aggregate data from at least N different nodes (e.g., 2–4).

Ensure heterogeneity by using different providers, client implementations, and geographic regions.

Request the same data (e.g., block header, hash, parentHash, height/finality, transactionReceipt) from all nodes and perform consistency checks.

Apply a finality/confirmations threshold appropriate to the nature of the chain.

Implement mTLS / SSL pinning, and whenever possible, pin a fixed public key.

This approach represents one of the clearest applications of the principle: Never trust a single source blindly.

Silent Sabotage

Insider threats are not limited to scenarios such as modifying a single row in a database. Some attacks are so subtle and appear so compliant with established rules that the system detects no anomalies.

Silent manipulation often targets configuration points, threshold values, caches, or third-party integrations. These components are typically considered administrative or low-risk, yet when precisely targeted, they can break the most critical link in the chain.

The following outlines the potential scenarios and their associated impacts.

Modification of configuration files: Redirecting an API endpoint to a different address without detection can mislead the system into believing it is receiving data from a trusted source. For example, if the endpoint of a third-party service providing price data is redirected to a malicious server controlled by an attacker, all pricing and transaction decisions may be based on incorrect information.

Manipulation of threshold values: Lowering or completely disabling limits that trigger security policies. For instance, changing the quorum approval threshold may still result in the system treating actions as valid, but could allow an attacker to perform critical operations independently.

Cache poisoning: Inserting fake or tampered data into the cache, where the system stores frequently accessed information, can cause the system to produce incorrect outputs or take unintended actions.

Exploitation of third-party integrations: Manipulating webhooks or data streams used in external integrations. For example, sending a fake "approved" message to a webhook that processes transaction confirmations could cause severe financial losses if no on-chain or secondary verification is performed.

Defense Principles

Defending against insider threats requires more than just technical solutions. Effective protection is achieved through a holistic approach that combines both technological measures and a strong security culture. The following principles outline recommended best practices for high-security environments such as digital asset custody systems:

Never rely on a single source, always validate: Data from external sources should always be verified through independent channels, with consistency checks performed to ensure accuracy.

Establish immutable structures: Critical components such as database records, configuration files, and logs should be cryptographically signed, making any unauthorized modification attempts detectable. Authorized changes that comply with rules or system policies (e.g., transaction status updates, policy adjustments, configuration changes) should only be executed by approved users or systems preferably with multi-approval mechanisms and with a transparent record of change history maintained. Techniques such as chained hashing, signed data blocks, or blockchain-based verification mechanisms can be employed for this purpose.

Alarm systems should trigger automated, predefined actions: When an anomaly is detected, issuing an alert alone is not sufficient. In critical scenarios, the system should be capable of automatically switching to a safe mode, halting operations, or isolating risky components.

Access rights should be minimal and distributed: Permissions must be granted according to the principle of least privilege, and distributed approval mechanisms should be used whenever possible. This prevents any single individual or component from being able to manipulate the system independently.

Logs must be made immutable: All critical transactions and system events should be stored in a tamper-proof manner, ideally in an append-only and cryptographically immutable storage environment.

Security culture must be continuously maintained and reinforced: Technology alone is not enough. Raising team awareness, periodically reviewing processes, and conducting drills against emerging threat models are as important as technical measures.

Conclusion

All these principles mentioned here above are not just technical safeguards; on the contrary they represent behavioral standards that should be embedded into an organization's security culture. When applied, they strengthen a system's immunity against both external and internal threats. Otherwise, even the most advanced technical solutions will lose their effectiveness over time. So, to sum up it would be wise to say that technology alone is not a shield; the human factor remains the most vulnerable front in this battle.