Andee lives on your phone or Mac and uses any app like you do—no integrations, no root, any model; memory and passwords never leave your device | Andee 住进你的手机或 Mac,像你一样操作任何 App——无需集成、无需 Root、支持任意模型,记忆和密码绝不离开设备。
docs(security): stop claiming a guardrail the software does not have
booboosui301c98939bf9
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f22099b..12d5ca4 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -70,6 +70,33 @@ build time would close this hole; it is not implemented yet.)### Changed+- **`SECURITY.md` no longer claims a safeguard the software does not have.** Its+ prompt-injection section stated that destructive or irreversible actions are+ *"gated behind `ask_user` / `confirm` flows"*. That is not true, and it was the+ one sentence in the repository that could be turned against the project:+ `ask_user` is an ordinary tool the model chooses to call, `confirm` exists on a+ single tool (`request_permissions`, where it prevents an unwanted permission+ dialog, not a payment), and nothing forces a confirmation before+ `tap_by_coordinates` — which is the path a payment is completed along and the+ very thing the disclaimer is about. `DISCLAIMER.md` and+ `docs/acceptable-use.md` had both already said the opposite in as many words+ ("no guardrail whatsoever", "no technical guardrail on that path"), so the three+ files contradicted each other and the security page was the one that was wrong.+ It now states the posture plainly: the checks on risky actions are instructions+ to the model rather than enforcement, and the device should be assumed drivable+ into anything its permissions and the user's own logged-in state allow —+ including moving money — with no prompt appearing. The same edit strips detail+ that made the page read as a recipe rather than a warning: the example request+ frame, the per-method enumeration of what a LAN peer can reach, and the note+ that the listening port is a fixed constant. The port number stays — it is what+ the recommended mitigation (firewall it) refers to. Two smaller changes follow+ from the same reasoning. The scope list no longer counts "an injection caused an+ action the user did not ask for" as a vulnerability, because that is the+ limitation §3 now describes rather than a promise the project can be held to;+ and the reporting promises are now conditional ("where we can", "no timeframe is+ promised"), so a small project is not bound to a reply it may not send. A line+ at the top states the out-loud version: nothing in the file is a promise that+ any particular action is prevented.- **`LICENSE` Part A gained a fourth condition, (d): shipping the software inside another productnow needs written authorisation.** Conditions (a)–(c) already stopped white-labelling, multi-tenantSaaS and dropping the attribution, but nothing stopped someone taking the code and folding it intodiff --git a/SECURITY.md b/SECURITY.mdindex c96baac..874b02c 100644--- a/SECURITY.md+++ b/SECURITY.md@@ -14,6 +14,10 @@ function rather than a bug. Please read the threat model below before reporting.> security finding and belongs here. "It did the thing it was built to do and it> cost me money" is the documented, expected behaviour of an automation tool** —> it is covered in the disclaimer, and it is not a vulnerability.+>+> **Nothing in this file is a promise that any particular action is prevented.**+> Where it describes a limitation, read it as a fact about the software, not as a+> commitment to guard against it.## Reporting a vulnerability@@ -41,10 +45,10 @@ Include as much of the following as you can safely share:`hub` or `local` brain mode- Potential impact, and any suggested fix-You will get an acknowledgement, and we will coordinate on a fix and a-disclosure date with you. This is a small project without a dedicated security-team; response is best-effort rather than SLA-backed. We will credit you in the-release notes unless you ask us not to.+This is a small project without a dedicated security team; response is+best-effort rather than SLA-backed, and no timeframe is promised. Where we can,+we will acknowledge your report, coordinate on a fix and a disclosure date, and+credit you in the release notes unless you ask us not to.## Threat model@@ -64,13 +68,16 @@ amounts to "the app can do the thing it says it does" is not a vulnerability.**In scope — a real bug.** Examples of things this project does considervulnerabilities:-- a route that lets an attacker drive the device without the user's consent+- a route that lets an attacker drive the device without the user's consent,+ **other than the interfaces documented under *Known security limitations*+ below** — those are acknowledged, not findings- vault contents leaking to the model, to the network, or to another app- a permission being exercised without the user having granted it for that call- the app writing credentials or screen content somewhere they outlive thefeature that needed them-- a way for untrusted on-screen content to escalate into an action the user- never asked for (prompt injection — see below)+- a way for untrusted on-screen content to reach the user's saved credentials+ (prompt injection more generally is treated as a known limitation — see §3,+ which also states what it does not cover)## Known security limitations@@ -81,14 +88,13 @@ boundaries of the current version, not undisclosed bugs.`BodyWsServer` (`app/src/main/java/net/kuafuai/andee/net/BodyWsServer.kt`) isstarted by `ScreenBodyService` and listens on `0.0.0.0:9008`. `onOpen()` accepts-every incoming connection as a driver without any credential check, and the port-is a fixed constant (`ScreenBodyService.WS_PORT`).+every incoming connection as a driver without any credential check.-**Impact:** any host that can reach the device's IP address can connect and send-`{"type":"request","method":...}` frames. That is full remote control of the-device — taps, text input, screen dumps — plus reads of notifications, SMS, call-log and contacts, and the ability to trigger `fill_secret` so the device types a-stored password into an app of the attacker's choosing.+**Impact:** any host that can reach the device's IP address can connect, with no+credential, and drive it as fully as the app itself can — including reading what+is on screen and using the credentials the user has saved on the device. Assume+that means full control of the device, and of anything the user is logged into+on it.**When you are exposed:** whenever the accessibility service is enabled and thedevice shares a network with other hosts you do not control — café, hotel,@@ -102,10 +108,10 @@ airport, conference, or a shared corporate LAN.- treat a device with this service enabled as a device you would not leaveunattended on an untrusted network-**The real fix** is to authenticate connections (a shared secret in the-`register` / first-frame handshake) and to make the bind address and port-configurable, with loopback-only as the default. That work is tracked as an-open issue; contributions are welcome. Until it lands, this limitation stands.+**The real fix** is to require authentication on every connection, and to make+the bind address and port configurable with loopback-only as the default. That+work is tracked as an open issue; contributions are welcome. Until it lands,+this limitation stands.### 2. The body ↔ hub link is unauthenticated and plaintext@@ -129,12 +135,20 @@ instructions ("ignore previous instructions and…") can attempt to steer theagent. This is an inherent property of an agent that perceives untrustedcontent; it is not specific to this implementation.-**Current posture:** destructive or irreversible actions are gated behind-`ask_user` / `confirm` flows, and per-call permission checks mean a permission-the user refused cannot be exercised later. There is no separate sandbox.+**Current posture: there is no sandbox, and the checks on risky actions are+instructions to the model rather than enforcement.** The model is told to ask+before anything irreversible — paying, sending, deleting — and it usually does.+That is a rule it follows, not a lock that stops it. A narrow set of actions+carries a mechanical refusal, but that is the exception rather than the pattern.++**Assume the device can be driven to do anything its permissions, and the user's+own logged-in state, allow — including moving money — with no prompt appearing.**+If it is steered into doing something you did not intend, the consequence is+yours: see [DISCLAIMER.md](DISCLAIMER.md) and+[docs/acceptable-use.md](docs/acceptable-use.md).-**If you find a specific injection that produces a harmful action without user-confirmation, that is a vulnerability — report it.**+If you find an injection that reaches something this file says is protected,+that is a vulnerability — report it.### 4. The vault is not bound to device unlock@@ -175,7 +189,8 @@ fixes. There is no back-porting to older builds.## DisclosurePlease keep the details private until a fix or mitigation is available. We will-agree a disclosure date with you and publish an advisory crediting the reporter.+try to agree a disclosure date with you and, where practical, publish an advisory+crediting the reporter.Fixes may ship in a normal release. Users are encouraged to track the defaultbranch or the latest release rather than running an old build.