# Interface SanitizationEvent

Input sanitization result.

interface SanitizationEvent {
id: string;
timestamp: string;
component: string;
type: "sanitization";
source: string;
wasModified: boolean;
strippedCount: number;
injectionFlagCount: number;
strippedElements: readonly StrippedElementSummary[];
}

#### Hierarchy

- AuditEventBase
  - SanitizationEvent

- Defined in packages/nexus-agents/src/security/audit-trail.ts:97

##### Index

### Properties

id
timestamp
component
type
source
wasModified
strippedCount
injectionFlagCount
strippedElements

## Properties

### `Readonly` id

id: string

Inherited from AuditEventBase.id

- Defined in packages/nexus-agents/src/security/audit-trail.ts:40

### `Readonly` timestamp

timestamp: string

Inherited from AuditEventBase.timestamp

- Defined in packages/nexus-agents/src/security/audit-trail.ts:41

### `Readonly` component

component: string

Inherited from AuditEventBase.component

- Defined in packages/nexus-agents/src/security/audit-trail.ts:42

### `Readonly` type

type: "sanitization"

- Defined in packages/nexus-agents/src/security/audit-trail.ts:98

### `Readonly` source

source: string

- Defined in packages/nexus-agents/src/security/audit-trail.ts:99

### `Readonly` wasModified

wasModified: boolean

- Defined in packages/nexus-agents/src/security/audit-trail.ts:100

### `Readonly` strippedCount

strippedCount: number

- Defined in packages/nexus-agents/src/security/audit-trail.ts:101

### `Readonly` injectionFlagCount

injectionFlagCount: number

- Defined in packages/nexus-agents/src/security/audit-trail.ts:102

### `Readonly` strippedElements

strippedElements: readonly StrippedElementSummary[]

Per-element tag/reason details, truncated to at most MAX_STRIPPED_ELEMENTS_PER_EVENT entries. Required by CLAUDE.md's Untrusted Input Policy: "Log stripped elements for audit trail."

- Defined in packages/nexus-agents/src/security/audit-trail.ts:108