nexus-agents - v2.80.0
    Preparing search index...

    Interface FirewallResult

    Output of the firewall pipeline. Aggregates results from each stage.

    interface FirewallResult {
        sanitized: {
            content: string;
            originalLength: number;
            trustTier: "1" | "2" | "3" | "4";
            userRole:
                | "unknown"
                | "owner"
                | "maintainer"
                | "collaborator"
                | "contributor"
                | "member";
            injectionFlags: (
                | "authority_claim"
                | "instruction_pattern"
                | "system_prompt_manipulation"
                | "hidden_content"
                | "urgency_manipulation"
                | "fake_conversation"
                | "base64_encoded"
                | "external_link_instruction"
            )[];
            strippedElements: {
                tag: string;
                reason: string;
                startIndex: number;
                length: number;
            }[];
            wasModified: boolean;
            sanitizedAt: string;
        };
        trust: ClassifyResult;
        reputation?: ReputationAssessment;
        atl: string;
        auditEvents: readonly { id: string; type: string }[];
        durationMs: number;
    }
    Index

    Properties

    sanitized: {
        content: string;
        originalLength: number;
        trustTier: "1" | "2" | "3" | "4";
        userRole:
            | "unknown"
            | "owner"
            | "maintainer"
            | "collaborator"
            | "contributor"
            | "member";
        injectionFlags: (
            | "authority_claim"
            | "instruction_pattern"
            | "system_prompt_manipulation"
            | "hidden_content"
            | "urgency_manipulation"
            | "fake_conversation"
            | "base64_encoded"
            | "external_link_instruction"
        )[];
        strippedElements: {
            tag: string;
            reason: string;
            startIndex: number;
            length: number;
        }[];
        wasModified: boolean;
        sanitizedAt: string;
    }

    Type Declaration

    • content: string

      Sanitized content with dangerous elements removed.

    • originalLength: number

      Original content before sanitization (for audit).

    • trustTier: "1" | "2" | "3" | "4"

      Assigned trust tier based on user role and content analysis.

    • userRole: "unknown" | "owner" | "maintainer" | "collaborator" | "contributor" | "member"

      GitHub user role of the input source.

    • injectionFlags: (
          | "authority_claim"
          | "instruction_pattern"
          | "system_prompt_manipulation"
          | "hidden_content"
          | "urgency_manipulation"
          | "fake_conversation"
          | "base64_encoded"
          | "external_link_instruction"
      )[]

      Injection patterns detected in content.

    • strippedElements: { tag: string; reason: string; startIndex: number; length: number }[]

      Elements stripped during sanitization (audit trail).

    • wasModified: boolean

      Whether any dangerous content was detected and stripped.

    • sanitizedAt: string

      Timestamp of sanitization (ISO 8601).

    atl: string
    auditEvents: readonly { id: string; type: string }[]
    durationMs: number