Skip to content

detection: entity-linked signal store plus first entity-joined rule (credential read bound to egress by file digest) #539

Backlog

Description

@blitzcrieg1

Why

Sequence rules today join on order inside a session window (see #431). That fires on coincidence and misses the real question: did the data that was read actually leave the machine? This slice adds the first piece of an entity-linked signal layer: entities derived from the trail, and one rule that joins on entity identity (the same file digest) instead of order alone.

Scope (Phase 1 only)

  1. Entity index. Derive a read-only entity index from the existing JSONL trail. Entity kinds: session, host, agent, account, file digest, destination (host:port), MCP server (hashed id), tool name. Events are edges. Storage is a new local file under the data directory; schema bump to 1.4.0 is additive only (no existing event field changes, no new content capture: digests and already-logged fields only, same redaction rules).
  2. First entity-joined rule. A rule that fires when a sensitive file read (the existing credential-read detection) is linked to a later egress event by the same file digest in egress metadata, regardless of which came first in the window, and that stays silent when the digests differ. The existing order-based rules (credential-read-then-egress, credential-exfil) stay as they are.
  3. Retroactive signals. Observations and read events stay queryable beyond the current 240-minute sequence window so entity-joined correlation is not window-bound. Document the effective window for the new rule.

Out of scope

LLM reasoning passes, a hunt-skill runner, and any dashboard graph UI. Later phases, separate issues.

Acceptance criteria

  • Claim this slice in a comment before opening the PR. One slice per PR (house rules in Bounty program: community detection/DLP rules with corpus fixtures #454 and CONTRIBUTING.md).
  • Schema 1.4.0 additive, checked by the schema tests; privacy review: the index stores only hashes/digests and fields already in the trail.
  • Corpus: at least one attack case (read of a sensitive path, then egress carrying the same file digest), one benign case (read, then unrelated egress), one benign case (digests differ). Benchmark stays at zero misses and zero false positives; CI enforces the README counts, so update them.
  • ruff check clean, full pytest green, agentmetry benchmark 0/0 on the enlarged corpus.
  • Detection changes replay against recorded history before merge; the maintainer runs the private replay.
  • Docs: detection docs entry, Sentinel page entry if the rule maps there, ATLAS/ATT&CK mapping for the new rule, changelog entry. No em dashes in public copy.
  • Synthetic fixtures only in tests and corpus. Never use the live trail for tests.

References

Activity

  1. added
    bounty
    on Nov 30, 2026
  2. RogerYeh1990 commented on Nov 30, 2026

    @RogerYeh1990

    Hi Ioannis! Is this slice still open, and do you accept AI-assisted contributions with manual review? I'm based in Taiwan. Before considering a claim, could you clarify whether the bounty is cash-paid or a non-monetary contribution program? I'm asking about the phase-1 entity index and digest-matched rule only.

  3. diyaavirmani commented on Dec 1, 2026

    @diyaavirmani

    claim

    I'd like to take this Phase 1 slice (one PR, per #454 and CONTRIBUTING.md).

    Plan:

    • Add a read-only entity index derived from the existing JSONL trail (session, host, agent, account, file digest, destination host:port, hashed MCP server id, tool name), stored as a new local file under the data directory, with an additive schema bump to 1.4.0 only (hashes/digests and already-logged fields, same redaction, no new content capture).
    • Add a new entity-joined rule in apps/orchestrator/agentmetry/core/audit/detection/rules.py alongside the existing order-based credential-read-then-egress and credential-exfil rules, which I'll leave unchanged. It fires when a credential-read and an egress event share the same file digest, regardless of order, and stays silent when digests differ.
    • Corpus: one attack case and two benign cases, README counts updated, ruff / pytest / agentmetry benchmark kept at 0/0, plus docs, ATLAS/ATT&CK and changelog entries. Synthetic fixtures only.

    I can have a reviewable PR up in about 4 days and will sign the CLA on the PR. I saw on #454 that no paid round is open right now, so I'm claiming this for the contribution credit and priority review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions