> For the complete documentation index, see [llms.txt](https://docs.casa.io/wealth-security-protocol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.casa.io/wealth-security-protocol/threat-overview/code-dependency-attack.md).

# Code Dependency Attack

Attackers [have successfully inserted code](https://www.theregister.co.uk/2018/11/26/npm_repo_bitcoin_stealer/) designed to steal people’s bitcoin into popular open-source software packages that are used by some crypto wallets. The cost of auditing all the code that goes into a system is prohibitive, so this remains an appealing avenue for attacks.&#x20;

**Mitigation:**

* Use a mix of different hardware and software for your key storage system.&#x20;
* Use hardware wallets which have smaller and more carefully audited code bases.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.casa.io/wealth-security-protocol/threat-overview/code-dependency-attack.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
