SECURITY ENGINE 02 // BEHAVIORAL SURVEILLANCE

SICTACK SENTINEL Behavioral Engine

Developer reference for stateful task session monitoring, deterministic anomaly detection (SNT-R001 to SNT-R009), explainable risk scoring, and automated containment.

SENTINEL Architecture & Role

While SICTACK CORE evaluates isolated tool calls at the in-process execution boundary, SICTACK SENTINEL operates across time and multi-step execution traces.

Autonomous AI agents often fail not because a single tool call was forbidden, but because a sequence of individually permissible actions collectively deviates from the intended goal (such as data exfiltration via tiny payload fragments, infinite execution loops, or goal drift). SENTINEL provides continuous behavioral surveillance and progressive containment.

Zero-Bypass Monotonicity
SENTINEL operates with strict monotonicity: it can only increase security restrictions (e.g. rate throttling, requiring approval, or quarantining). SENTINEL can never grant permissions or override a CORE denial.

Task Session Confinement

Every autonomous workflow runs inside a TaskSession bound to a TaskScope envelope. This envelope defines the agent’s authorized tool set, allowed external resources, maximum step count, and execution time budget.

sentinel_session.py
from sictack.sentinel import (
    TaskSessionManager,
    TaskScope,
    BehavioralIntelligenceEngine,
    AutomatedContainmentEngine,
    ContainmentPolicy,
)

# 1. Initialize Task Session Manager
manager = TaskSessionManager()

# 2. Define authorized task scope envelope
scope = TaskScope(
    allowed_tools=["fetch_html", "parse_table", "summarize_text"],
    allowed_resources=["https://sec.gov/*", "https://treasury.gov/*"],
    max_steps=50,
    max_execution_time_seconds=300,
)

# 3. Create confined session
session = manager.create_session(
    agent_id="research_bot_01",
    task_objective="Extract annual 10-K filing disclosures",
    authorized_scope=scope,
)

9 Behavioral Detectors (SNT-R001 to SNT-R009)

SENTINEL evaluates 9 deterministic detection algorithms on every step event:

Rule IDDetector NameSeverityWeight
SNT-R001Repeated Unauthorized Tool CallsHIGH0.65
SNT-R002Repeated Restricted Resource AccessHIGH0.65
SNT-R003Excessive Tool Execution AttemptsMEDIUM0.35
SNT-R004Task Scope Violations & DriftHIGH0.65
SNT-R005Abnormal Execution FrequencyMEDIUM0.35
SNT-R006Execution Budget & Step Limit ViolationsHIGH0.65
SNT-R007Suspicious Tool SequencesCRITICAL0.90
SNT-R008Approval Abuse & Coercion SpamHIGH0.65
SNT-R009Fragmented Data Exfiltration PatternsCRITICAL0.90

Explainable Risk Scoring & 4 Tiers

The ExplainableRiskEngine aggregates individual detector triggers using an independent probability union formula:

Risk = 1.0 - ∏ (1.0 - w_i)

The resulting score maps directly to four standardized operational tiers:

TIER 0 // Nominal (0.00 - 0.24)

Normal execution within bounds. No action taken.

TIER 1 // Elevated (0.25 - 0.49)

Minor behavioral drift. Enforces step-up monitoring.

TIER 2 // High Risk (0.50 - 0.74)

Multiple anomaly indicators. Rate throttles and requires approval.

TIER 3 // Critical Threat (0.75 - 1.00)

Severe breach detected. Immediate quarantine and suspension.

Python SDK Integration Example

sentinel_surveillance.py
from sictack.sentinel import ExplainableRiskEngine, AutomatedContainmentEngine

# 1. Initialize behavioral detector and risk engine
behavioral_engine = BehavioralIntelligenceEngine()
risk_engine = ExplainableRiskEngine()
containment_engine = AutomatedContainmentEngine()

# 2. Evaluate execution event across 9 continuous detectors
anomalies = behavioral_engine.evaluate_event(session, event)

# 3. Compute normalized risk score and factor breakdown
assessment = risk_engine.assess_session(session, anomalies)
print(f"Risk Score: {assessment.risk_score:.2f} | Tier: {assessment.risk_tier.name}")
# Output: Risk Score: 0.85 | Tier: TIER_3

# 4. Enforce automated containment based on risk policy
action = containment_engine.enforce(session, assessment)
print(f"Enforced Action: {action.action_type.name} (Status: {action.status.name})")
# Output: Enforced Action: QUARANTINE_SUSPEND (Status: ENFORCED)