Threaticon
Toggle sidebar

You're viewing a limited, public preview. Log in for full access.

Log in User Guide
Log in Get started
Detection Strategies DET0020 — Detect Shell Configuration Modification for Persistence via Event-Triggered Execution
DET0020

Detect Shell Configuration Modification for Persistence via Event-Triggered Execution

2 analytic(s) · 1 technique(s) detected

Analytics

2
AN0059 Analytic 0059
Linux

Detects modification of shell startup/logout scripts such as ~/.bashrc, ~/.bash_profile, or /etc/profile, followed by anomalous process execution or network connections upon interactive or remote shell login.

auditd:SYSCALL AUDIT_SYSCALL (open, write, rename, unlink) auditd:EXECVE execution of unexpected binaries during user shell startup NSM:Flow unexpected network activity initiated shortly after shell session starts
[TimeWindow] Defines how soon after shell startup process execution or network activity is considered suspicious.
[TargetUser] Limits detection to specific user accounts or roles such as root or service accounts.
[FilePathRegex] Defines what shell configuration paths are considered relevant (e.g., .bashrc, .bash_logout, etc.)
AN0060 Analytic 0060
macOS

Correlates zsh shell configuration file changes (e.g., ~/.zshrc, ~/.zlogin, /etc/zprofile) with execution of unauthorized binaries or unexpected network activity triggered on Terminal.app launch.

macos:unifiedlog launch of Terminal.app or shell with non-standard environment setup macos:endpointsecurity ES_EVENT_TYPE_NOTIFY_WRITE, targeting .zshrc, .zlogin, .zprofile
[FileTargetList] Customizable list of shell config files considered sensitive for detection.
[PayloadEntropyThreshold] Used to distinguish benign from potentially obfuscated commands written to config files.
[UserContext] Scoping based on user login class, e.g., administrative vs standard users.

Detected Techniques

1

Details

MITRE ID
DET0020
STIX ID
x-mitre-detection-strategy--f09870f8-77d4-4b58-8bda-2b3f2e29c897
Analytics
2
Techniques Detected
1
By Tactic
Privilege Escalation
1
Leaving Threaticon

This link opens an external site that isn't part of the platform.