Skip to content

Feature: Agent behavior baseline learning for anomaly detection #5

Description

@cdzzy

Problem

Security policies are rule-based: they catch known-bad patterns but miss novel attacks. An agent behaving abnormally (e.g., suddenly accessing files it never touched before) may indicate a novel attack.

Solution: Behavioral Baseline

const shield = new TraceShield({
  behaviorBaseline: {
    enabled: true,
    learningPeriod: "7d",  // Learn normal behavior for 7 days
    anomalyThreshold: 2.5, // Standard deviations
    onAnomaly: (event) => {
      alertSOC(event)  // Unusual tool call pattern detected
    }
  }
})
// After learning: researcher agent never used delete_file
// Day 8: researcher calls delete_file -> ANOMALY alert

Continuous learning adapts to agent behavior evolution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions