import { useQuery } from "@tanstack/react-query"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; import { Ban, Mail, Globe, AlertTriangle } from "lucide-react"; import { securityService } from "@/services"; import type { SuspiciousIP, SuspiciousEmail } from "@/types/security.types"; export default function SuspiciousActivityPage() { const { data: suspicious, isLoading } = useQuery({ queryKey: ["admin", "security", "suspicious"], queryFn: () => securityService.getSuspiciousActivity(), }); return (

Anomalous Activity

High-risk identifiers flagged for potential system abuse.

Suspicious Network Ingress
Shield Active
{isLoading ? (
Interrogating global threats...
) : (suspicious?.suspiciousIPs?.length ?? 0) > 0 ? (
{suspicious?.suspiciousIPs?.map( (ip: SuspiciousIP, index: number) => (

{ip.ipAddress}

{ip.attempts} Flagged Interactions

), )}
) : (
No high-risk network sources.
)}
Flagged Credentials
Monitoring
{isLoading ? (
Screening identity registry...
) : (suspicious?.suspiciousEmails?.length ?? 0) > 0 ? (
{suspicious?.suspiciousEmails?.map( (email: SuspiciousEmail, index: number) => (

{email.email}

{email.attempts} Security Triggers

), )}
) : (
No suspicious identity triggers.
)}

Protocol Awareness

Flagged items above are generated based on heuristic analysis of failed signatures, geofence violations, and credential stuffing patterns. Actions taken here apply globally to the ingress proxy.

); }