AID-E-003.003: Confirmed Malicious Code & Persistence Eviction

Version 1.20261015 · Actionable sub-technique

Evict the exact confirmed malicious deployable code and file-backed persistence artifacts enumerated in a signed incident manifest, including scripts, source or runtime configuration objects, packages, container or VM images, startup code, and file-backed persistence binaries or manifests. Preserve forensic evidence and remove or replace the affected deployable sources across the complete authoritative artifact and runtime-loaded population.

Pillars: infra, app

Lifecycle: improvement, response

Scope boundary

Owns eviction of exact confirmed malicious deployable code, scripts, packages, images, runtime configuration, startup objects, and file-backed persistence artifacts across authoritative sources and the runtime-loaded population. File-integrity monitoring, malware hunting, and candidate scanning remain detection inputs.

AID-E-002: AID-E-003.003 removes malicious deployable code and file-backed persistence; AID-E-002 terminates active processes, jobs, pods, and workloads. Code eviction prevents future loading but does not prove that an in-memory process stopped, while process termination leaves the deployable source intact unless this control removes it.

AID-E-005: AID-E-003.003 removes file-backed code, configuration, and startup persistence; AID-E-005 deletes durable application schedules, queue records, webhook registrations, tool registrations, and agent state. Application records remain owned by AID-E-005 even when malicious code originally created them.

Implementation guidance

AID-E-003.003-G001

Evict confirmed malicious deployable configuration and file-backed startup persistence objects from every authoritative source and loaded runtime.
When this method applies

Use this path for signed incident-manifest entries that are deployable configuration or file-backed startup persistence: application or runtime configuration, service-unit or init definitions, startup scripts, admission or launch manifests, and equivalent file-backed objects that cause malicious code to load. Durable application schedules, queue rows, webhook registrations, and tool registrations are not file-backed persistence for this control and belong to AID-E-005.

Evict from authoritative and loaded populations

A version-pinned adapter selected from trusted configuration exports the exact object and every referenced executable or configuration byte to write-once forensic storage, then re-reads immutable identity, version, path, owner, and digest. It removes or replaces only the signed object in the authoritative source, records a deny for the malicious digest where promotion or admission supports one, rebuilds and signs the clean deployable artifact, and conditionally reconciles every declared target. Host-file changes use no-follow descriptors, locked inode checks, and atomic replacement; deployment changes use immutable image, UID, and resource-version preconditions. Never execute incident-supplied command text or treat deletion from one mutable runtime as eviction.

Independent readback

A separately credentialed verifier enumerates the complete signed source, artifact, deployment, replica, and runtime-loaded population. It requires the malicious configuration or startup digest to be absent, the approved replacement digest and effective values to match, no equivalent startup path to have appeared, and declared clean controls to remain loadable. Missing targets, unavailable runtime introspection, digest drift, or a still-running malicious process does not pass; active runtime termination is handed to AID-E-002.

AID-E-003.003-G002

Evict confirmed malicious code, package, image, and file artifacts from authoritative deployable sources and verify that no runtime can load their digests.
Production implementation

Freeze writes, open the exact artifact with no-follow semantics, compare device/inode/digest, copy its bytes/metadata to immutable forensic storage, and remove it from the authoritative source/package/image rather than only a mutable container. Build and sign the clean replacement, update each route/deployment with conditional rollout, and deny the malicious digest in promotion/admission. If a shell process or socket is active, route that exact runtime to E-002 before or alongside artifact cleanup.

Independent verification

An independent verifier scans the complete signed repository/image/deployment/replica population by digest and route identity, proves the malicious artifact and denylisted image/layer cannot load, replays the captured exploit safely and requires denial/no command execution or outbound shell, and runs a clean functional control. Filename absence alone is insufficient.

Open-source tools

Commercial / hosted tools

Threat mappings

MITRE ATLAS

MAESTRO

OWASP LLM Top 10 2026

OWASP ML Top 10 2023

OWASP Top 10 for Agentic Applications 2026

NIST Adversarial Machine Learning 2025

Cisco Integrated AI Security and Safety Framework

Google Secure AI Framework 2.0 - Risks

Databricks AI Security Framework 3.0

AID-E-003.003: Confirmed Malicious Code & Persistence Eviction | AIDEFEND

Loading interactive view…

A Practical Knowledge Base for AI Security Defenses

Version