@aikidosec/firewall
Version:
Zen by Aikido is an embedded Application Firewall that autonomously protects Node.js apps against common and critical attacks, provides rate limiting, detects malicious traffic (including bots), and more.
18 lines (17 loc) • 646 B
TypeScript
import { Kind } from "../Attack";
import { Source } from "../Source";
export type BlockOutboundConnectionResult = {
operation: string;
hostname: string;
};
export type AttackResult = {
operation: string;
kind: Kind;
source: Source;
pathsToPayload: string[];
metadata: Record<string, string>;
payload: unknown;
};
export type InterceptorResult = AttackResult | BlockOutboundConnectionResult | void;
export declare function isBlockOutboundConnectionResult(result: InterceptorResult): result is BlockOutboundConnectionResult;
export declare function isAttackResult(result: InterceptorResult): result is AttackResult;