Capsule behavior engine

The core of MalCap. It watches what programs do and decides when that adds up to an attack.

Shipped, preview

What it watches

The engine reads four kinds of event: process starts and access, file writes and renames, registry writes, and network connections. It groups them into one ordered story per activity, called a storyline. Rules match over that storyline with time windows, order and counts.

What a rule must prove

A Capsule rule names the evidence groups that describe an attack. A group can ask for one event or for a sequence, such as a dump file write and then an outbound connection from the same storyline within 120 seconds. The require line says how many groups must match. A rule can also make one group mandatory.

Because a rule asks for several facts in order, renaming a tool or repacking a file does not hide the attack. The steps still happen.

Why every verdict explains itself

A match returns the rule ID, the group that matched, the number of matches and the events behind them. The explain line of the rule turns that into text. A verdict without a reason is a bug.

Rules today

65 behavior rules in 12 categories ship in preview: AI tooling, credential access, defense evasion, discovery, execution, impact, initial access, lateral movement, Linux, macOS, persistence and privilege escalation. Each rule states its sources, licenses, confidence, severity and ATT&CK techniques.

The planned process for active campaigns: a rule ships to every endpoint at once and its source is published 14 days later. A public index of embargoed rules is planned as well.

Where it runs

  • Live on Linux: the Linux agent pilot feeds every event to the engine and can end the process behind a malicious match.
  • Replay: malcap replay runs the rules over a saved event stream, with no endpoint involved.
  • Windows and macOS: the agents are in development and planned. They use the same engine and the same rules.
malcap replay events.jsonl --rules rules/

Rule format and the replay command