Skip to content

Shell history and log removal

A command resembles clearing shell history or deleting, truncating, or shredding selected logs.

Removing evidence can make unexpected activity harder to investigate and weaken accountability.

After running unfamiliar commands, an agent clears the shell history and removes a related log file.

This is a fictional example, not an event from a customer.

The rule recognizes selected Unix history and log manipulation patterns, including content saved into recognized staged files.

Rule IDEvent categoryTierBase severity
RULE_THREAT_AUDIT_TRAIL_DESTRUCTIONthreat_commandCommunityHIGH

Base severity is the rule default. A finding involving content saved for later execution may have a lower severity. Your loaded rule version and event details determine the finding you see.

Preserve available evidence and compare the cleanup with the task. Review surrounding events; handle accidentally logged secrets through controlled retention and credential rotation procedures.

Approved cleanup in disposable environments or removal of accidentally logged secrets can match. Legitimate log maintenance requires context.

Other log locations, platform-specific event-log tools, logging disabled before capture, or indirect deletion may be missed.

The pattern does not establish motive or prove that evidence was erased. Review the tool result and remaining logs.

A finding describes a pattern in captured activity. Review the original call, its result, and the task context before concluding that harm occurred. Absence of a finding does not establish that an operation is safe.

Browse this category. Find a rule by ID.