Synopsis
Enumerates system and user environment variables on Linux hosts.
Description
Enumerates environment variables at the SYSTEM and USER scope on Linux.
SYSTEM-scope variables are collected from /etc/environment, /etc/security/pam_env.conf, /usr/share/pam/security/pam_env.conf and shell scripts under /etc/profile.d/ (plus /etc/profile and /etc/bashrc).
USER-scope variables are collected from each login user's shell profile files (.bashrc, .bash_profile, .profile, .zshrc, .zshenv, .zsh_profile).
Collected data is stored as structured data (environment-variable schema) and written to the Knowledge Base so that downstream plugins (credential exposure, insecure PATH checks) can consume it without re-running commands.
Plugin Details
File Name: enumerate_nix_env_vars.nasl
Agent: unix
Supported Sensors: Nessus Agent, Nessus
Vulnerability Information
Required KB Items: Host/local_checks_enabled