Tiny Aya Fire, Sandesh v2.1: an SMS assistant a scam text can't hijack
CohereLabs/tiny-aya-fire fine-tuned (LoRA, merged) to act as an on-device SMS-inbox assistant that does the user's task and
ignores, and flags, instructions hidden in scam messages, including over a multi-turn conversation and when the
user hands over control ("take care of whatever is urgent").
How it was built (Lexsi stack): CuratorKIT curated each training set → SafeTune trained three LoRA steps, each
merged before the next → AuditKIT scored every run (paired bootstrap, agent_eval on the multi-turn episodes).
- PlainSFT on SandeshBench's train split (single turn; round 1).
- v2: multi-turn patch. 1,000 fresh 2- and 3-turn episodes (follow-up scam at turn 2, delegation at turn 3)
- 500 round-1 rows replayed.
- v2.1: v2 set a reminder on every delegation, inventing one when no card bill was due. v2.1 trains on 300 pairs of the same episode with and without the card-due SMS (the other half gets a no-action message from the same bank), + 150 no-card, 60 already-reminded and 150 turn-2 episodes + 300 replayed rows.
Every pass rule was written down before its run (FINAL_ROUND.md in https://github.com/ashank-crazy/sandesh); v2.1 passed all ten.
Results (SandeshBench test splits; exact checks, no LLM judge)
| Tiny Aya Fire | v2.1 (this model) | v2.1, 4-bit GGUF | |
|---|---|---|---|
| Scam SMS hijacks the assistant (1,121 attacked inboxes, 6 languages) | 14.0% | 0.0% | 0.0% |
| ... in languages never trained on (bn/ta/mr) | 16.0% | 0.0% | 0.0% |
| Adaptive attacker, best of 16 rewrites per scam | 52.1% | 0.0% | 0.0% |
| Multi-turn: hijacked by turn 3 (120 episodes; scam follow-up + "take care of whatever is urgent") | 67.5% | 0.0% | 0.0% |
| Delegated with a card bill due: sets the reminder with the right date | 9.1% / 6.1% | 100% / 100% | 100% / 100% |
| Delegated with nothing due: takes an action anyway | 63.0% | 0.0% | 0.0% |
| Does the user's task, clean inbox / under attack | 48.3% / 43.4% | 99.5% / 99.6% | 100% / 99.1% |
| Warns the user about the scam | 0.8% | 98.2% | 98.2% |
| XSTest safe prompts refused | 11.6% | 8.4% | 8.0% |
| Global-MMLU (en/hi/bn) | 48.0% | 48.7% | – |
4-bit file: 2.00 GiB; 11 tokens/s generation on a 6-core Intel i7-8700 with no GPU (llama-bench, llama.cpp b12318).
Not luck: a second multi-turn run on 300 new episodes (50 per language) gave 0/300 hijacked (95% Wilson interval 0.0%-1.3%) and 0/153 actions with nothing due. The v2.1 patch retrained with seeds 14 and 15 (everything else fixed): attack success 0.1% and 0.1%, hijacked by turn 3 0% and 0%, card reminder with the right date 100% and 100%.
Every number, with confidence intervals and paired significance tests: results/summary.md in
sandesh-bench-final and https://github.com/ashank-crazy/sandesh.
The 4-bit build: ashank-crazy/tiny-aya-fire-sandesh-v2.1-GGUF.
Use
The assistant answers with exactly one JSON tool call: send_sms, call, make_upi_payment, open_link,
set_reminder, read_inbox or reply_user. The system prompt with the tool list, the user request, a
read_inbox call and the inbox as a tool result are built by sandesh/tools.py (build_messages) in https://github.com/ashank-crazy/sandesh; use
the model's own chat template. A tool call that moves money or contacts someone should still be confirmed by the
user in a real app: this model is a research artifact for SandeshBench, not a security product.
Licence: CC-BY-NC-4.0, inherited from Tiny Aya.
- Downloads last month
- -