---
id: 18291
lang: en
title: "A 31 KB fruit-fly-inspired model triages SOC alerts at 97.5% accuracy, up from 90%"
published_at: "2026-11-26 08:29:44"
source_name: "Habr AI"
source_url: "https://habr.com/ru/companies/pt/articles/1090712/?utm_campaign=1090712&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18291"
categories: ["ethics", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# A 31 KB fruit-fly-inspired model triages SOC alerts at 97.5% accuracy, up from 90%

> **Краткая суть (BLUF):** A SOC is the center where analysts decide whether an alert is a real attack or routine activity. The author of a Habr write-up handed the choice of the next investigation step to a model modeled on the fruit fly (Drosophila) brain, with weights of about 31 KB. From the alert title alone, it predicted the verdict correctly in 90% of cases; with the parent process, user, and command line, it reached 97.5%. The takeaway: useful features matter more than network size.  - About 30–35 of 512 cells are active; increasing to 2048 did not improve accuracy - A copy of the real fly brain circuit (4064 cells): 89.5% versus 90% for a random projection - Always answering with the most frequent verdict yields 82.5% accuracy

Every day, a SOC (Security Operations Center) receives hundreds of alerts, meaning warning signals from security systems. A typical example: "powershell.exe launched, signed by Microsoft." It could be an attack, or it could be the normal work of a build server, and from the command string alone an analyst cannot tell the two apart. They have to check who the parent process is, which account it runs under, and what the command line says. The author of the Habr write-up, taking part in the BlueSec contest, tested an unusual idea: hand the choice of the next investigation step to a tiny model built on the fruit fly (Drosophila) brain. Its weights take up about 31 KB. On a held-out set (examples the model did not see during training), it correctly identified the verdict "malicious or legitimate" in 90% of cases while it saw only the alert title, and in 97.5% of cases after it was shown the process properties. A universal "fly analyst" did not materialize, but the project yielded a useful engineering lesson about what actually drives quality.

## How the fly sniffs alerts

In the fruit fly brain, associative learning is handled by the mushroom body. Odors are turned into a sparse activity pattern across Kenyon cells: only a small fraction of the thousands of cells fire. Output neurons decide whether to fly toward the source or away, and dopamine strengthens or weakens connections depending on the outcome. For an IT person, this is almost reinforcement learning: state, action, reward.

The author mapped this scheme onto logs. First, the noise specific to each run is stripped out: PID, IP, host name, and timestamp are replaced with placeholders so the model does not memorize random identifiers. Then up to 16 words are taken from the title and up to 48 from entity properties: command line, file path, parent process, signer, integrity level, user, domain. Each feature is hashed with the BLAKE2b function into one of 1,048,576 addresses, and through a fixed projection those addresses activate a small set of 512 Kenyon cells. In operation, roughly 30–35 of them are active.

The output layer is small: five actions (get_relation, get_entity, search, finish, get_ad_object_info) and two verdicts. Each active cell adds its weight to every output, and the slot with the highest sum wins among the actions the planner permits. Training runs offline on traces of past investigations: only the connections that took part in a choice are updated, and the reward plays the role of dopamine.

## What helped and what didn't

The most telling example in the text is two PowerShell runs. In both, the binary is signed by Microsoft. In one case, the parent is wsmprovhost.exe, a service account, and a remote host; in the other, it is Agent.Worker.exe from a CI/CD agent that simply cleans a working folder. From the title alone, they cannot be told apart.

Results on the held-out set:

- a simple baseline that always answers with the most frequent verdict: 82.5%;
- title only, 512 cells: 90%;
- extended input with entity properties: 97.5%;
- paired and triple features such as "path class + signature + integrity level": about 98%;
- enlarging the layer to 1024 and 2048 cells: no gain.

A separate finding concerns selecting active cells. Strict top-k selection discarded rare but useful tokens, which were crowded out by frequent ones like windows and process. A rule that worked: keep every cell hit by exactly one feature, plus only the 12 strongest collisions.

The experiment with real biology is also notable. The author plugged in a fragment of an actual mushroom body from the MaleCNS dataset: 329 PNs, 4064 cells, and a biological connectivity mask. Quality did not improve: 89.5% versus 90% for a random projection, while there were more cells and adaptation to new data was worse. An exact copy of nature gave no practical advantage.

## Honest limitations and takeaways for practitioners

The author cautions that a headline like "31 KB versus big LLMs" would be misleading. By the end, FlyBrain had become one module of a hybrid agent. Alongside it ran an action planner, a catalog of discovered entities and relations, evidence-collection rules, artifact ranking, and memory of past scenarios. Even when the alert type matched, a past decision was first checked against the current graph. This combination achieved the best local result, 12.42 on the contest metric, and held a top spot for a while. The data is mostly synthetic, so the numbers should not be carried into a real SOC without verification.

There are three practical takeaways. First, the token limit was not the bottleneck: after normalization, titles had a median of 11 words and a maximum of 15, so raising the limit from 24 to 100 or 1000 would have changed nothing. The gain came from a new signal at the input, not from its volume. Second, choosing the next investigation step does not always require an LLM call: a model tens of kilobytes in size runs offline, costs almost nothing, and trains quickly on traces. Third, before scaling up a network, answer four questions: what goes in as input, what counts as state, which actions are available, and what counts as a good result. If the task interface is poor, neither 4064 cells nor the theoretical human brain will help.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/companies/pt/articles/1090712/?utm_campaign=1090712&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18291
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
