Blue Team

security

Blue Team

Definition

The Blue Team is a defensive Color Team composed of 4 specialized agents focused on epistemic defense through evidence synthesis. In traditional cybersecurity, a blue team defends networks against attacks. In the Prismatic Platform, the Blue Team defends the epistemic integrity of the platform's knowledge systems -- ensuring that beliefs are well-evidenced, signals are not corrupted, and the platform's reasoning has not drifted from its validated baseline.

The fundamental distinction between Prismatic's Blue Team and conventional blue teams is the output type. A conventional blue team produces alerts: "suspicious login detected," "malware signature found," "anomalous traffic observed." Prismatic's Blue Team produces structured evidence: documented observations with provenance, confidence levels, signal plurality compliance, and explicit uncertainty quantification. Alerts are ephemeral and actionable; evidence is persistent and analyzable.

This shift from alerts to evidence reflects the platform's NABLA Infinity axiom framework. An alert that says "drift detected" is a single signal that may or may not warrant action. A structured evidence artifact that documents the drift, provides multiple independent measurements, preserves contradictory observations, and traces its reasoning back to raw telemetry data is a knowledge claim that can be verified, disputed, refined, and synthesized with other evidence through the Purple Team.

The 4 Blue Team Agents

The Blue Team operates under the command of a single L3 Strategic Commander with three L2 Operational Specialists. Each agent has a distinct domain responsibility, and together they provide comprehensive defensive coverage across the platform.

blue-commander (L3 Strategic Commander)

The blue-commander orchestrates all Blue Team operations. It synthesizes evidence from the three specialists into a unified defensive posture assessment, prioritizes investigation targets, and routes evidence to the Purple Team for synthesis with Red Team adversarial findings.

AttributeValue
ClassificationL3 Strategic Commander
AuthorityFull Blue Team coordination, evidence synthesis, Purple Team reporting
InputsSpecialist evidence reports, Red Team findings (via Purple), platform telemetry
OutputsUnified defensive posture, investigation directives, evidence packages for Purple
NABLA ComplianceEnforces all 7 axioms across all Blue evidence outputs

The blue-commander's primary output is the Defensive Posture Assessment -- a structured document that represents the Blue Team's current understanding of the platform's epistemic health. This assessment includes:

  • Current belief integrity status across all domains
  • Active drift trends (improving, stable, or degrading)
  • Open contradictions that require Purple Team synthesis
  • Confidence levels for all defensive conclusions
  • Evidence gaps where additional investigation is needed

blue-auth-sentinel (L2 Operational Specialist)

The blue-auth-sentinel monitors authentication and authorization boundaries across the platform. It detects privilege escalation attempts, unauthorized access patterns, and authentication bypass conditions.

AttributeValue
ClassificationL2 Operational Specialist
AuthorityAuthentication boundary monitoring, read-only platform access
Focus AreasLogin patterns, token validation, RBAC enforcement, session integrity
Detection MethodsBehavioral analysis, threshold monitoring, pattern matching
Output FormatEvidence artifacts with access log provenance

The auth-sentinel operates at the boundary between external users and internal platform state. It monitors:

  • Authentication attempts: Patterns of failed logins, credential stuffing indicators, brute-force detection
  • Authorization boundaries: Requests that test RBAC limits, privilege escalation sequences, role confusion attempts
  • Token integrity: JWT validation failures, token reuse detection, session fixation indicators
  • API boundary: REST API access patterns, rate limiting triggers, OpenAPI schema violation attempts

blue-drift-detector (L2 Operational Specialist)

The blue-drift-detector is the Blue Team's most broadly scoped specialist. It monitors four dimensions of drift across all 90+ umbrella applications, detecting gradual changes that individually fall below alert thresholds but collectively indicate systemic degradation.

Drift DimensionWhat It MonitorsDetection MethodAlert Condition
BehavioralFunction call patterns, execution paths, output distributionsStatistical comparison against baselineDistribution shift > 2 standard deviations
ConfigurationApplication config, environment variables, feature flagsDiff against committed configurationAny unauthorized or undocumented change
DependencyLibrary versions, external API contracts, data schemasVersion tracking, contract testingBreaking changes, security advisories
PerformanceResponse latency, throughput, resource utilizationTime-series analysis with seasonal adjustmentSustained deviation > 20% from baseline

The drift-detector's critical contribution is detecting sub-threshold drift: changes that are individually too small to trigger conventional alerts but accumulate over time into significant degradation. This is analogous to the "boiling frog" problem in physical systems -- gradual temperature increases that never trigger a discrete alarm but eventually become lethal.

defmodule PrismaticSecurity.BlueDriftDetector do
  @moduledoc """
  Detects gradual drift across behavioral, configuration,
  dependency, and performance dimensions.
  Produces NABLA-compliant evidence artifacts.
  """

  @drift_dimensions [:behavioral, :configuration, :dependency, :performance]

  @spec detect_drift(app_id(), baseline(), current_state()) ::
          {:ok, [drift_evidence()]} | {:ok, :no_drift}
  def detect_drift(app_id, baseline, current) do
    drift_findings =
      @drift_dimensions
      |> Enum.flat_map(fn dimension ->
        case compare_dimension(dimension, baseline, current) do
          {:drift, evidence} -> [build_evidence(app_id, dimension, evidence)]
          :stable -> []
        end
      end)

    case drift_findings do
      [] -> {:ok, :no_drift}
      findings -> {:ok, findings}
    end
  end

  defp build_evidence(app_id, dimension, raw_evidence) do
    %{
      type: :drift_detection,
      app: app_id,
      dimension: dimension,
      magnitude: raw_evidence.magnitude,
      confidence: compute_confidence(raw_evidence),
      provenance: %{
        detector: "blue-drift-detector",
        baseline_timestamp: raw_evidence.baseline_timestamp,
        current_timestamp: DateTime.utc_now(),
        method: raw_evidence.detection_method,
        raw_data_hash: hash_evidence(raw_evidence)
      },
      signal_count: raw_evidence.signal_count,
      contradictions: raw_evidence.contradictions
    }
  end
end

blue-signal-aggregator (L2 Operational Specialist)

The blue-signal-aggregator correlates signals across domains, enforcing signal plurality (minimum 2 independent signals per belief) and producing synthesized evidence from multiple sources. This agent is the Blue Team's primary interface with the NABLA Infinity axiom framework.

AttributeValue
ClassificationL2 Operational Specialist
AuthorityCross-domain signal correlation, read-only access to all domain telemetry
Primary FunctionEnforce signal plurality, correlate independent signals, produce synthesized evidence
NABLA AxiomsPrimary enforcer of Signal Plurality and Source Independence
OutputCorrelated signal packages with plurality certification

The signal-aggregator answers a critical question for every Blue Team finding: Is this observation supported by at least two independent sources? A single anomalous measurement could be sensor noise. Two independent measurements of the same anomaly from different sources is signal.

Signal independence tracking requires understanding source correlation:

Source CombinationIndependenceRationale
Shodan scan + Censys scanHighDifferent scanning infrastructure, different methodologies
Two Shodan scansLowSame infrastructure, same methodology, different times
Port scan + Service bannerMediumSame target, different observation types
Telemetry metric + Log entryHighDifferent collection systems, different data types

Defensive Posture Assessment

The Blue Team's primary deliverable is the Defensive Posture Assessment (DPA), a structured evidence document that represents the current state of the platform's epistemic defenses. The DPA is not a dashboard or a metric -- it is a formal evidence artifact that passes through Trinity Gate validation.

The DPA structure:

SectionContentConfidence Requirement
Integrity StatusCurrent belief graph health, axiom compliance rates>= 0.90
Active Drift TrendsPer-dimension drift analysis across all applications>= 0.80
Open ContradictionsUnresolved contradictory evidence requiring synthesisN/A (contradictions are preserved, not resolved)
Evidence GapsAreas where signal plurality is not metN/A (gaps are documented, not filled)
Threat PostureAssessment incorporating Red Team findings>= 0.85
RecommendationsPrioritized actions to strengthen defenses>= 0.80

The DPA is produced on a regular cadence and on-demand when triggered by significant events (Red Team findings, Purple Team closure failures, platform upgrades). Each DPA is versioned, timestamped, and stored with full provenance, enabling trend analysis over time.

NABLA Axiom Grounding

The Blue Team's evidence production is fundamentally grounded in NABLA Infinity axioms. This grounding is not optional -- it is structurally enforced through the evidence data model:

AxiomBlue Team ApplicationEnforcement
Signal PluralityEvery finding requires 2+ independent signals. Signal-aggregator certifies plurality.HARD -- single-signal findings are quarantined, not published
Contradiction PreservationWhen one detector finds drift and another finds stability, both observations are preservedHARD -- contradictions annotated with severity and routed to Purple
Absence InformativeExpected signals that are missing are tracked. A service that should emit telemetry but does not is itself a findingSOFT -- absence logged, investigation triggered
Time DecayEvidence older than the configured staleness threshold receives reduced weightHARD -- stale evidence decays toward neutral confidence
Unknown ValidWhen evidence is insufficient for a determination, the Blue Team reports "unknown" rather than guessingHARD -- forced determinations are forbidden
Source IndependenceSignal-aggregator tracks source correlation and discounts correlated observationsSOFT -- correlated sources flagged, independence assessment included
Provenance MandatoryEvery evidence artifact traces back to raw telemetry through documented processing stepsHARD -- unprovenanced evidence rejected

Evidence Synthesis vs. Alert Generation

The distinction between evidence synthesis and alert generation is central to understanding the Blue Team's role:

DimensionAlert-Based DefenseEvidence-Based Defense (Blue Team)
Output"Anomaly detected at 14:32"Structured evidence artifact with provenance chain
ConfidenceBinary (alert or no alert)Continuous (0.0-1.0 with uncertainty quantification)
Contradiction HandlingAlerts may contradict each other with no resolutionContradictions preserved, annotated, and routed to Purple
ActionabilityRequires human interpretationCan be machine-processed by Purple for synthesis
PersistenceTypically ephemeral (alert fires and is acknowledged)Persistent evidence enters the belief graph
ComposabilityIndividual alerts, difficult to combineEvidence packages compose into larger assessments
NABLA ComplianceNot applicableMandatory -- all evidence satisfies 7 axioms

This approach enables the Purple Team to perform automated synthesis between Blue defensive evidence and Red adversarial findings, closing the adversarial-defensive loop programmatically rather than relying on manual review of alert logs.

Red-Blue Loop Through Purple

The Blue Team does not interact with the Red Team directly. All Red-Blue interaction flows through the Purple Team, which serves as the synthesis hub for the adversarial-defensive loop:

Red Team                    Purple Team                    Blue Team
(adversarial)              (synthesis)                   (defensive)

  Scenarios ──────>  purple-mapper ───────> Defense improvements
  Findings ──────>  purple-closure ────────> Posture adjustments
                         ^                         |
                         |                         v
                   purple-regression ────── Evidence reports
                         |
                         v
                   Closure decision
                   (all 4 conditions)

The Purple Team's closure analysis requires four conditions before a Red-Blue interaction cycle is considered closed:

  1. Attack Reproduced: The Red Team's scenario has been reproduced in the sandbox
  2. Defense Validated: The Blue Team's countermeasure addresses the specific attack vector
  3. Regression Tested: The defense does not introduce new vulnerabilities
  4. Evidence Complete: Both Red and Blue evidence satisfies NABLA axioms

The Blue Team's contribution to this loop is critical: it must produce evidence that is not merely reactive ("we fixed the alert") but structural ("we have verified through 2+ independent signals that the defense is effective, with confidence 0.92, and the evidence chain traces from the original Red Team finding through our defense implementation to the validation measurement").

The Color Teams Ecosystem

The Blue Team operates within a broader ecosystem of 20 agents across 6 Color Teams:

TeamRoleInteraction with Blue
Gray TeamBoundary explorationSurfaces edge cases that Blue should monitor
Red TeamAdversarial simulationProduces attack scenarios that Blue defends against
Blue TeamEpistemic defense--
Purple TeamSynthesisCloses Red-Blue loop, validates Blue defenses
White TeamConstructive verificationFormally verifies Blue Team evidence and defenses
Black TeamTheoretical threat modelingAbstract models inform Blue Team threat awareness

The signal flow follows a specific path: Gray surfaces boundary conditions that may become Red scenarios. Red produces adversarial findings. Purple synthesizes Red findings with Blue defensive evidence. White formally verifies the resulting defense claims. Black provides theoretical models that inform both Red attack generation and Blue defense design. Blue receives signals from all other teams (through Purple) and produces evidence that feeds back into the ecosystem.

Safety Protocols

All Blue Team operations are subject to the platform's security safety protocols:

ProtocolEnforcement
Read-Only OperationsBlue agents have read-only access to platform state. They observe and measure but never modify.
Synthetic DataAll Blue Team testing uses synthetic data. No real PII or production data enters Blue Team analysis.
Ethics ChecksAutomated validation runs every 10-15 seconds across all Blue agents.
Audit LoggingEvery Blue Team operation is logged in an immutable audit trail.
Scope BoundariesBlue agents cannot escalate to Gray or Red operations. Scope is strictly defensive.

Best Practices

  1. Ground every finding in NABLA axioms. Blue Team evidence must satisfy all seven axioms before publication. Evidence that fails even one hard axiom is quarantined, not published. This discipline prevents the common failure mode where urgency overrides epistemic rigor.

  2. Maintain independent signal sources for every active monitoring dimension. The signal-aggregator requires at least two independent signals per belief. Design monitoring infrastructure so that every critical dimension has at least two independent observation paths -- different collection systems, different methodologies, different observation points.

  3. Preserve contradictions explicitly. When the drift-detector and the auth-sentinel produce contradictory assessments of the same phenomenon, both assessments must be preserved in the Defensive Posture Assessment. The Purple Team handles synthesis; the Blue Team handles preservation.

  4. Emit structured evidence, not alerts. The fundamental output of the Blue Team is structured evidence with provenance, confidence levels, and contradiction annotations. Avoid the temptation to reduce evidence to binary alerts for simplicity -- the structure is what enables machine-processable synthesis.

  5. Monitor for sub-threshold drift. Individual measurements that fall below alert thresholds can accumulate into significant degradation. The drift-detector's primary value is detecting these gradual, individually invisible changes.

  6. Version and timestamp all evidence artifacts. Every evidence artifact must carry its creation timestamp, the baseline it was compared against, and the detector version that produced it. This enables trend analysis and retrospective investigation.

  7. Separate observation from interpretation. Blue Team agents observe and measure; they do not interpret or recommend. Interpretation is the Purple Team's responsibility. This separation ensures that defensive evidence is not biased by premature conclusions.

Common Pitfalls

  1. Alert fatigue from over-sensitive drift detection. Setting drift thresholds too low produces a flood of weak findings that overwhelm analysts and obscure genuine threats. Calibrate thresholds using historical baseline data and adjust based on false positive rates.

  2. Single-source findings masquerading as evidence. A finding based on a single signal source does not meet NABLA's signal plurality requirement. Resist the pressure to publish single-source findings as "preliminary evidence" -- they must be explicitly marked as unvalidated observations.

  3. Conflating Blue Team defense with Red Team offense. Blue agents have read-only access and strictly defensive scope. Any Blue Team operation that modifies system state or simulates attacks has violated its scope boundary and must be immediately halted.

  4. Ignoring temporal dynamics in drift detection. A metric that appears stable when sampled hourly may show significant drift when sampled at minute resolution. Match sampling frequency to the expected drift timescale for each dimension.

  5. Treating the Defensive Posture Assessment as a dashboard metric. The DPA is a formal evidence artifact, not a number on a dashboard. Reducing it to a single score discards the structured information that makes it valuable for Purple Team synthesis.

  6. Neglecting to update baselines. The drift-detector compares current state against a baseline. If the baseline is never updated after legitimate changes, drift detection produces false positives. Implement a controlled baseline update process with audit trail.

Use Cases

Platform Quality Monitoring

The Blue Team monitors the Prismatic Platform's 13 quality domains for drift. When the compilation warning count, Credo violation count, or Dialyzer error count changes, the drift-detector captures the change, the signal-aggregator correlates it with recent code changes, and the blue-commander produces an evidence package for the Quality Floor Guardian.

OSINT Source Reliability Assessment

When OSINT intelligence sources produce conflicting data about the same entity, the Blue Team preserves the contradiction and produces a structured evidence artifact documenting which sources disagree, the confidence levels of each source, and the potential impact on downstream assessments. This evidence feeds into the Prismatic Perimeter security rating calculations.

Authentication Boundary Monitoring

The auth-sentinel monitors authentication patterns across the platform's REST API and LiveView endpoints. When unusual patterns emerge -- spike in failed authentications from a new IP range, unexpected token validation failures, session fixation indicators -- the auth-sentinel produces evidence artifacts that feed into the defensive posture assessment.

Dependency Supply Chain Monitoring

The drift-detector tracks dependency versions across all 115 umbrella applications. When a dependency releases a security advisory, the detector produces evidence documenting which applications are affected, the severity classification, and the OTP supervision tree impact. This evidence enables prioritized remediation.

  • Red Team -- Adversarial counterpart whose findings Blue Team defends against
  • Purple Team -- Synthesis hub mediating the Red-Blue adversarial-defensive loop
  • White Team -- Constructive verification team formally validating Blue defenses
  • Gray Team -- Boundary exploration team surfacing edge cases for Blue monitoring
  • Black Team -- Theoretical threat modeling informing Blue defense design
  • Color Teams -- Full overview of all 6 security teams and their interactions
  • NABLA Infinity -- Epistemic framework grounding all Blue Team evidence
  • Signal Plurality -- Core axiom enforced by the signal-aggregator
  • Contradiction Preservation -- Axiom requiring preservation of conflicting observations
  • Provenance Mandatory -- Axiom requiring traceable evidence chains
  • Trinity Gate -- Verification gate that Blue Team evidence must pass
  • Epistemic Robustness -- Measure of defense resilience to epistemic attack
  • Confidence Scoring -- Uncertainty quantification for Blue Team evidence
  • Agent -- Autonomous entities composing the Blue Team

See Also

  • Architecture -- Platform security architecture overview
  • Technologies -- Technology stack details
  • Capabilities -- Platform defensive capability descriptions
  • OTP -- OTP process model underlying Blue Team agent isolation
  • Supervision Tree -- Hierarchical organization of Blue Team processes

Connect & Contribute

Created by Tomas Korcak (korczis) | Open Source under GHL