Agent Armor API Reference
    Preparing search index...

    Interface Threat

    A single detected threat within scanned content.

    interface Threat {
        category: TrapCategory;
        confidence: number;
        description: string;
        detectorId: string;
        evidence: string;
        location?: { length: number; offset: number };
        severity: Severity;
        source: ThreatSource;
        type: TrapType;
    }
    Index
    category: TrapCategory

    Which category from the DeepMind taxonomy

    confidence: number

    How confident the detector is (0-1)

    description: string

    Human-readable description of the threat

    detectorId: string

    Which detector found this

    evidence: string

    The offending content snippet (truncated)

    location?: { length: number; offset: number }

    Byte offset or line number in the original content, if applicable

    severity: Severity

    How dangerous this threat is if exploited

    source: ThreatSource

    Where this threat was detected: pattern (regex), ml (classifier), or custom

    type: TrapType

    Specific trap type within the category