# DeerFlow Hardening Notes This repository is a hardened deployment of [bytedance/deer-flow](https://github.com/bytedance/deer-flow) with the only goal of preventing prompt-injection attacks via the agent's web access surface. The upstream tree lives in `deer-flow/` and is checked in directly (no submodule, no nested git). All hardening changes are kept inside that tree so that `python -m deerflow.community.searx.tools` resolves out of the box once `deer-flow/backend/packages/harness` is on `PYTHONPATH`. This document is a defense-in-depth audit trail. If you change any of the files listed here, please update this document in the same commit. ## 1. Threat model Prompt-injection via untrusted web content. An attacker controls the body of an HTML page (or a search-result snippet) and tries to make the model: 1. Treat externally fetched text as **system instructions** (delimiter confusion). 2. Smuggle hidden tokens via **invisible Unicode** (zero-width spaces, BOM, PUA, tag characters). 3. Inject **executable HTML** (`