UNIX Commands executed by DNA

UNIX Commands executed by DNA

121
Created On 11/10/26 10:55 AM - Last Modified 11/10/26 12:57 PM


Question


What commands are executed during a DNA scan of UNIX systems?

Environment


9.10;10.10;11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;12.1;12.2;12.6;13.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)

Answer


 The following is a list of UNIX commands that are executed by the DNA scan. These were extracted from the logs, so entries that contain /home/tsawyer or /home/labuser may change based on the content of the /etc/passwd file. 

For additional information on the command itself, please consult the documentation for that particular version of UNIX or the man page. 

UNIX Commands: 
------------------------
uname -s 
ls -d /etc/[A-Za-z]*[_-][rv]e[lr]* | grep -v 'lsb\|os\|system' 
cat "/etc/iredmail-release" 
cat "/etc/redhat-release" 
getent group | grep 'domain_users' 
echo $HOSTNAME 
echo $LANG 
echo $PS1 
echo $PS2 
echo $SHELL 
echo $TERM 
echo $USER 
echo $UID 
echo $HOSTTYPE 
echo $SSH_TTY 
stty -a 
test -f "/etc/passwd"; echo $? 
cat "/etc/passwd" 
getent passwd 
dzdo -V 
sesudo >/dev/null 2>&1; echo $? 
sudo >/dev/null 2>&1; echo $? 
cat /proc/cpuinfo | grep processor | wc -l 
sudo test -f "/etc/shadow"; echo $? 
sudo cat "/etc/shadow" 
test -f "/etc/group"; echo $? 
cat "/etc/group" 
sudo test -f "/etc/sudoers"; echo $? 
sudo cat "/etc/sudoers" 
/sbin/ifconfig | grep 'inet' | grep -v '127.0.0.1' 
hostname -s 
sudo lastlog | grep -v '*' 
ssh -V 
sudo test -f "/etc/ssh/sshd_config"; echo $? 
sudo cat "/etc/ssh/sshd_config" 
sudo test -f "/root/.ssh/authorized_keys"; echo $? 
sudo test -f "/etc/abrt/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/run/lsm/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/colord/.ssh/authorized_keys"; echo $? 
sudo test -f "/run/saslauthd/.ssh/authorized_keys"; echo $? 
sudo test -f "/proc/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/chrony/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/geoclue/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/setroubleshoot/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/run/pulse/.ssh/authorized_keys"; echo $? 
sudo test -f "/run/gnome-initial-setup/.ssh/authorized_keys"; echo $? 
sudo test -f "/home/tsawyer/.ssh/authorized_keys"; echo $? ==> Note that this directory may differ based on the passwd file 
sudo test -f "/home/labuser/.ssh/authorized_keys"; echo $? ==> Note that this directory may differ based on the passwd file 
sudo grep -v '^$' /home/tsawyer/.ssh/authorized_keys | awk 'NR==1' > /tmp/dna_tmp_key7 
sudo ssh-keygen -lf "/tmp/dna_tmp_key7" 
rm -f "/tmp/dna_tmp_key7" 
sudo date +%s -r "/home/tsawyer/.ssh/authorized_keys" 
sudo test -f "/etc/syslog.conf"; echo $? 
sudo test -f "/etc/rsyslog.conf"; echo $? 
cat "/etc/rsyslog.conf" 
sudo test -f "/etc/syslog-ng/syslog-ng.conf"; echo $? 
grep 'sshd' "/var/log/secure" 
ps -ef | grep -i com.ibm.ws.runtime.WsServer | grep -v grep 
sudo find /opt/IBM/WebSphere/AppServer 
ps -ef | grep -i weblogic 
sudo find /u01 /u02 /disk01 /disk02 -name domain-registry.xml 2>/dev/null


Additional Information


Details

Q: 
What commands are executed during a DNA scan of UNIX systems?
 
A:
 The following is a list of UNIX commands that are executed by the DNA scan. These were extracted from the logs, so entries that contain /home/tsawyer or /home/labuser may change based on the content of the /etc/passwd file. 
 
For additional information on the command itself, please consult the documentation for that particular version of UNIX or the man page. 
 
UNIX Commands: 
------------------------
uname -s 
ls -d /etc/[A-Za-z]*[_-][rv]e[lr]* | grep -v 'lsb\|os\|system' 
cat "/etc/iredmail-release" 
cat "/etc/redhat-release" 
getent group | grep 'domain_users' 
echo $HOSTNAME 
echo $LANG 
echo $PS1 
echo $PS2 
echo $SHELL 
echo $TERM 
echo $USER 
echo $UID 
echo $HOSTTYPE 
echo $SSH_TTY 
stty -a 
test -f "/etc/passwd"; echo $? 
cat "/etc/passwd" 
getent passwd 
dzdo -V 
sesudo >/dev/null 2>&1; echo $? 
sudo >/dev/null 2>&1; echo $? 
cat /proc/cpuinfo | grep processor | wc -l 
sudo test -f "/etc/shadow"; echo $? 
sudo cat "/etc/shadow" 
test -f "/etc/group"; echo $? 
cat "/etc/group" 
sudo test -f "/etc/sudoers"; echo $? 
sudo cat "/etc/sudoers" 
/sbin/ifconfig | grep 'inet' | grep -v '127.0.0.1' 
hostname -s 
sudo lastlog | grep -v '*' 
ssh -V 
sudo test -f "/etc/ssh/sshd_config"; echo $? 
sudo cat "/etc/ssh/sshd_config" 
sudo test -f "/root/.ssh/authorized_keys"; echo $? 
sudo test -f "/etc/abrt/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/run/lsm/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/colord/.ssh/authorized_keys"; echo $? 
sudo test -f "/run/saslauthd/.ssh/authorized_keys"; echo $? 
sudo test -f "/proc/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/chrony/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/geoclue/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/lib/setroubleshoot/.ssh/authorized_keys"; echo $? 
sudo test -f "/var/run/pulse/.ssh/authorized_keys"; echo $? 
sudo test -f "/run/gnome-initial-setup/.ssh/authorized_keys"; echo $? 
sudo test -f "/home/tsawyer/.ssh/authorized_keys"; echo $? ==> Note that this directory may differ based on the passwd file 
sudo test -f "/home/labuser/.ssh/authorized_keys"; echo $? ==> Note that this directory may differ based on the passwd file 
sudo grep -v '^$' /home/tsawyer/.ssh/authorized_keys | awk 'NR==1' > /tmp/dna_tmp_key7 
sudo ssh-keygen -lf "/tmp/dna_tmp_key7" 
rm -f "/tmp/dna_tmp_key7" 
sudo date +%s -r "/home/tsawyer/.ssh/authorized_keys" 
sudo test -f "/etc/syslog.conf"; echo $? 
sudo test -f "/etc/rsyslog.conf"; echo $? 
cat "/etc/rsyslog.conf" 
sudo test -f "/etc/syslog-ng/syslog-ng.conf"; echo $? 
grep 'sshd' "/var/log/secure" 
ps -ef | grep -i com.ibm.ws.runtime.WsServer | grep -v grep 
sudo find /opt/IBM/WebSphere/AppServer 
ps -ef | grep -i weblogic 
sudo find /u01 /u02 /disk01 /disk02 -name domain-registry.xml 2>/dev/null



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001Fl0CAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail